mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 11:14:26 +08:00
fixed problem that link:css does not become 'link' in php. however it should not be removed in xsl/xml.
This commit is contained in:
12
unittest.vim
12
unittest.vim
@@ -266,6 +266,12 @@ finish
|
|||||||
'type': "html",
|
'type': "html",
|
||||||
'result': "<div>\n\t<!-- #page -->\n\t<div id=\"page\">\n\t\t<!-- .title -->\n\t\t<p class=\"title\"></p>\n\t\t<!-- /.title -->\n\t\t<p></p>\n\t</div>\n\t<!-- /#page -->\n</div>\n",
|
'result': "<div>\n\t<!-- #page -->\n\t<div id=\"page\">\n\t\t<!-- .title -->\n\t\t<p class=\"title\"></p>\n\t\t<!-- /.title -->\n\t\t<p></p>\n\t</div>\n\t<!-- /#page -->\n</div>\n",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': "link:css",
|
||||||
|
'query': "link:css",
|
||||||
|
'type': "html",
|
||||||
|
'result': "<link media=\"all\" rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\n",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -277,12 +283,6 @@ finish
|
|||||||
'type': "css",
|
'type': "css",
|
||||||
'result': "@import url();",
|
'result': "@import url();",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'name': "link:css",
|
|
||||||
'query': "link:css",
|
|
||||||
'type': "html",
|
|
||||||
'result': "<link media=\"all\" rel=\"stylesheet\" href=\"style.css\" type=\"text/css\" />\n",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'name': "fs:n",
|
'name': "fs:n",
|
||||||
'query': "fs:n",
|
'query': "fs:n",
|
||||||
|
|||||||
@@ -864,6 +864,9 @@ function! s:zen_use_filter(filters, filter)
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:zen_is_extends(type, extend)
|
function! s:zen_is_extends(type, extend)
|
||||||
|
if a:type == a:extend
|
||||||
|
return 1
|
||||||
|
endif
|
||||||
if !has_key(s:zen_settings, a:type)
|
if !has_key(s:zen_settings, a:type)
|
||||||
return 0
|
return 0
|
||||||
endif
|
endif
|
||||||
@@ -962,7 +965,7 @@ function! s:zen_parseIntoTree(abbr, type)
|
|||||||
endfor
|
endfor
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
if s:zen_is_extends(type, 'html')
|
if has_key(s:zen_settings.html.default_attributes, current.name)
|
||||||
let current.name = substitute(current.name, ':.*$', '', '')
|
let current.name = substitute(current.name, ':.*$', '', '')
|
||||||
endif
|
endif
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user