find autoload/zencoding/lang/xxx.vim

This commit is contained in:
mattn
2012-05-30 19:07:53 +09:00
parent 98f716c4d1
commit c8ec156876
3 changed files with 9 additions and 11 deletions

View File

@@ -8,6 +8,9 @@ let s:mx = '\([+>]\|<\+\)\{-}\s*\((*\)\{-}\s*\([@#.]\{-}[a-zA-Z\!][a-zA-Z0-9:_\!
function! zencoding#lang#html#findTokens(str)
let str = a:str
let [pos, last_pos] = [0, 0]
while str =~ '<.\{-}>'
let str = substitute(str, '^.*<.\{-}>', '', '')
endwhile
while len(str) > 0
let token = matchstr(str, s:mx, pos)
if token == ''