forked from VimPlug/emmet-vim
fix finding tokens.
This commit is contained in:
@@ -17,7 +17,7 @@ function! zencoding#html#findTokens(str)
|
|||||||
let token = matchstr(token, '^\s*\zs.*')
|
let token = matchstr(token, '^\s*\zs.*')
|
||||||
let last_pos = stridx(str, token)
|
let last_pos = stridx(str, token)
|
||||||
endif
|
endif
|
||||||
let pos = stridx(str, token) + len(token)
|
let pos = stridx(str, token, pos) + len(token)
|
||||||
endwhile
|
endwhile
|
||||||
return a:str[last_pos :-1]
|
return a:str[last_pos :-1]
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user