mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-16 02:51:27 +08:00
guard to endless loop.
This commit is contained in:
1 parent
cf8c5b35f7
commit
c3ffd8727e
1 file changed
+3
-1
@@ -8,7 +8,9 @@ function! zencoding#html#findTokens(str)
|
||||
let str = a:str
|
||||
while len(str) > 0
|
||||
let token = matchstr(str, s:mx.'\s*$')
|
||||
if token =~ '^\s'
|
||||
if token == ''
|
||||
break
|
||||
elseif token =~ '^\s'
|
||||
let token = substitute(token, '^\s*', '', '')
|
||||
let str = str[0 : -len(token)-1]
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user