mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
put space after variable like [st :]
This commit is contained in:
@@ -375,14 +375,14 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
let last.pos += 1
|
let last.pos += 1
|
||||||
endif
|
endif
|
||||||
elseif len(n)
|
elseif len(n)
|
||||||
let start = 0
|
let st = 0
|
||||||
for nc in range(len(last.child))
|
for nc in range(len(last.child))
|
||||||
if last.child[nc].block
|
if last.child[nc].block
|
||||||
let start = nc
|
let st = nc
|
||||||
break
|
break
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
let cl = last.child[start:]
|
let cl = last.child[st :]
|
||||||
let cls = []
|
let cls = []
|
||||||
for c in range(n[1:])
|
for c in range(n[1:])
|
||||||
for cc in cl
|
for cc in cl
|
||||||
@@ -394,8 +394,8 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
endfor
|
endfor
|
||||||
let cls += deepcopy(cl)
|
let cls += deepcopy(cl)
|
||||||
endfor
|
endfor
|
||||||
if start > 0
|
if st > 0
|
||||||
let last.child = last.child[:start-1] + cls
|
let last.child = last.child[:st-1] + cls
|
||||||
else
|
else
|
||||||
let last.child = cls
|
let last.child = cls
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user