mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
fixed
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: zenconfig.vim
|
" File: zenconfig.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 18-Feb-2010.
|
" Last Change: 19-Feb-2010.
|
||||||
" Version: 0.1
|
" Version: 0.1
|
||||||
" WebPage: http://github.com/mattn/zenconfig-vim
|
" WebPage: http://github.com/mattn/zenconfig-vim
|
||||||
" Usage:
|
" Usage:
|
||||||
@@ -803,7 +803,7 @@ function! s:toString(...)
|
|||||||
endwhile
|
endwhile
|
||||||
let inner = ''
|
let inner = ''
|
||||||
for child in current['child']
|
for child in current['child']
|
||||||
let inner .= s:ToString(child, type)
|
let inner .= s:toString(child, type)
|
||||||
endfor
|
endfor
|
||||||
if len(inner)
|
if len(inner)
|
||||||
let inner = substitute(inner, "\n", "\n\t", 'g')
|
let inner = substitute(inner, "\n", "\n\t", 'g')
|
||||||
@@ -821,7 +821,7 @@ function! s:toString(...)
|
|||||||
if len(current['child'])
|
if len(current['child'])
|
||||||
let inner = ''
|
let inner = ''
|
||||||
for n in current['child']
|
for n in current['child']
|
||||||
let inner .= s:ToString(n, type)
|
let inner .= s:toString(n, type)
|
||||||
endfor
|
endfor
|
||||||
let inner = substitute(inner, "\n", "\n\t", 'g')
|
let inner = substitute(inner, "\n", "\n\t", 'g')
|
||||||
let str = substitute(str, '\${child}', inner, '')
|
let str = substitute(str, '\${child}', inner, '')
|
||||||
@@ -852,6 +852,6 @@ endfunction
|
|||||||
inoremap <c-,> <c-r>=<sid>expand()<cr><del>
|
inoremap <c-,> <c-r>=<sid>expand()<cr><del>
|
||||||
|
|
||||||
" test
|
" test
|
||||||
echo ZenExpand('html:xt>div#header>div#logo+ul#nav>li.item-$*5>a', '')
|
"echo ZenExpand('html:xt>div#header>div#logo+ul#nav>li.item-$*5>a', '')
|
||||||
echo ZenExpand('cc:ie6>p+blockquote#sample$.so.many.classes*2', '')
|
"echo ZenExpand('cc:ie6>p+blockquote#sample$.so.many.classes*2', '')
|
||||||
echo ZenExpand('tm>if>div.message', '')
|
"echo ZenExpand('tm>if>div.message', '')
|
||||||
|
|||||||
Reference in New Issue
Block a user