mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04:27 +08:00
fixed issue #1.
This commit is contained in:
6
TUTORIAL
6
TUTORIAL
@@ -143,6 +143,12 @@ Tutorial of zencoding.vim
|
|||||||
hello world
|
hello world
|
||||||
</div> -->
|
</div> -->
|
||||||
---------------------
|
---------------------
|
||||||
|
Type '<c-z>/' in there again.
|
||||||
|
---------------------
|
||||||
|
<div>
|
||||||
|
hello world
|
||||||
|
</div>
|
||||||
|
---------------------
|
||||||
|
|
||||||
12. Make anchor from URL
|
12. Make anchor from URL
|
||||||
|
|
||||||
|
|||||||
@@ -925,7 +925,7 @@ function! s:zen_parseIntoTree(abbr, type)
|
|||||||
endif
|
endif
|
||||||
if tag_name =~ '^{.*}$'
|
if tag_name =~ '^{.*}$'
|
||||||
let current.name = ''
|
let current.name = ''
|
||||||
let current.value = str
|
let current.value = tag_name
|
||||||
else
|
else
|
||||||
let current.value = value
|
let current.value = value
|
||||||
endif
|
endif
|
||||||
@@ -955,7 +955,11 @@ function! s:zen_parseIntoTree(abbr, type)
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if len(current.name)
|
||||||
call add(parent.child, current)
|
call add(parent.child, current)
|
||||||
|
else
|
||||||
|
let parent.value .= current.value
|
||||||
|
endif
|
||||||
let last = current
|
let last = current
|
||||||
|
|
||||||
if block_start =~ '('
|
if block_start =~ '('
|
||||||
@@ -1171,7 +1175,7 @@ function! s:zen_expandAbbr(mode) range
|
|||||||
let leader = substitute(leader, mx, '', '')
|
let leader = substitute(leader, mx, '', '')
|
||||||
endif
|
endif
|
||||||
if leader =~ '\*'
|
if leader =~ '\*'
|
||||||
let query = substitute(leader, '*', '*' . (a:lastline - a:firstline + 1), '') . '{$line$}'
|
let query = substitute(leader, '*', '*' . (a:lastline - a:firstline + 1), '') . '>{$line$}'
|
||||||
let items = s:zen_parseIntoTree(query, type).child
|
let items = s:zen_parseIntoTree(query, type).child
|
||||||
for item in items
|
for item in items
|
||||||
let expand .= s:zen_toString(item, type, 0, filter)
|
let expand .= s:zen_toString(item, type, 0, filter)
|
||||||
|
|||||||
Reference in New Issue
Block a user