mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-09 23:05:48 +08:00
Guard attributes
This commit is contained in:
1 parent
2f0bd7d02e
commit
6577e0e687
1 file changed
+5
-1
@@ -34,7 +34,11 @@ function! emmet#lang#html#findTokens(str)
|
||||
endif
|
||||
let pos = stridx(str, token, pos) + len(token)
|
||||
endwhile
|
||||
return a:str[last_pos :-1]
|
||||
let str = a:str[last_pos :-1]
|
||||
if str =~ '^\w\+="[^"]*$'
|
||||
return ''
|
||||
endif
|
||||
return str
|
||||
endfunction
|
||||
|
||||
function! emmet#lang#html#parseIntoTree(abbr, type)
|
||||
|
||||
Reference in new issue
Block a user