fixed back to parent nest. close #88

This commit is contained in:
mattn
2012-07-17 15:29:51 +09:00
parent d5a3582b6a
commit b46410cf05

View File

@@ -16,7 +16,7 @@ function! zencoding#lang#html#findTokens(str)
let str = a:str
let [pos, last_pos] = [0, 0]
while 1
let tag = matchstr(str, '<.\{-}>', pos)
let tag = matchstr(str, '<[a-zA-Z].\{-}>', pos)
if len(tag) == 0
break
endif
@@ -247,7 +247,7 @@ function! zencoding#lang#html#parseIntoTree(abbr, type)
endif
let parent = tmp
endfor
if operator =~ '>'
if len(pos) > 0
call remove(pos, -1)
endif
let last = parent