mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-05-17 13:59:40 +08:00
fixed back to parent nest. close #88
This commit is contained in:
@@ -16,7 +16,7 @@ function! zencoding#lang#html#findTokens(str)
|
|||||||
let str = a:str
|
let str = a:str
|
||||||
let [pos, last_pos] = [0, 0]
|
let [pos, last_pos] = [0, 0]
|
||||||
while 1
|
while 1
|
||||||
let tag = matchstr(str, '<.\{-}>', pos)
|
let tag = matchstr(str, '<[a-zA-Z].\{-}>', pos)
|
||||||
if len(tag) == 0
|
if len(tag) == 0
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
@@ -247,7 +247,7 @@ function! zencoding#lang#html#parseIntoTree(abbr, type)
|
|||||||
endif
|
endif
|
||||||
let parent = tmp
|
let parent = tmp
|
||||||
endfor
|
endfor
|
||||||
if operator =~ '>'
|
if len(pos) > 0
|
||||||
call remove(pos, -1)
|
call remove(pos, -1)
|
||||||
endif
|
endif
|
||||||
let last = parent
|
let last = parent
|
||||||
|
|||||||
Reference in New Issue
Block a user