forked from VimPlug/emmet-vim
Guard attributes
This commit is contained in:
@@ -34,7 +34,11 @@ function! emmet#lang#html#findTokens(str)
|
|||||||
endif
|
endif
|
||||||
let pos = stridx(str, token, pos) + len(token)
|
let pos = stridx(str, token, pos) + len(token)
|
||||||
endwhile
|
endwhile
|
||||||
return a:str[last_pos :-1]
|
let str = a:str[last_pos :-1]
|
||||||
|
if str =~ '^\w\+="[^"]*$'
|
||||||
|
return ''
|
||||||
|
endif
|
||||||
|
return str
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! emmet#lang#html#parseIntoTree(abbr, type)
|
function! emmet#lang#html#parseIntoTree(abbr, type)
|
||||||
|
|||||||
Reference in New Issue
Block a user