fix finding tokens.

This commit is contained in:
mattn
2012-05-30 09:05:46 +09:00
parent 24a0418274
commit b18d8ce9ab

View File

@@ -15,7 +15,7 @@ function! zencoding#html#findTokens(str)
endif
if token =~ '^\s'
let token = matchstr(token, '^\s*\zs.*')
let last_pos = stridx(str, token)
let last_pos = stridx(str, token, pos)
endif
let pos = stridx(str, token, pos) + len(token)
endwhile