From b46410cf051951d3f1e90d1ab928c6736247686b Mon Sep 17 00:00:00 2001 From: mattn Date: Tue, 17 Jul 2012 15:29:51 +0900 Subject: [PATCH] fixed back to parent nest. close #88 --- autoload/zencoding/lang/html.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/zencoding/lang/html.vim b/autoload/zencoding/lang/html.vim index f3fe541..a097397 100644 --- a/autoload/zencoding/lang/html.vim +++ b/autoload/zencoding/lang/html.vim @@ -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