forked from VimPlug/emmet-vim
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",
|
||||
'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",
|
||||
'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",
|
||||
'query': "fs:n",
|
||||
|
||||
@@ -864,6 +864,9 @@ function! s:zen_use_filter(filters, filter)
|
||||
endfunction
|
||||
|
||||
function! s:zen_is_extends(type, extend)
|
||||
if a:type == a:extend
|
||||
return 1
|
||||
endif
|
||||
if !has_key(s:zen_settings, a:type)
|
||||
return 0
|
||||
endif
|
||||
@@ -962,7 +965,7 @@ function! s:zen_parseIntoTree(abbr, type)
|
||||
endfor
|
||||
endfor
|
||||
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, ':.*$', '', '')
|
||||
endif
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user