fixed issue #1.

This commit is contained in:
mattn
2010-03-08 19:43:05 +09:00
parent 339be72156
commit 3b18a7fc77
2 changed files with 13 additions and 3 deletions

View File

@@ -143,6 +143,12 @@ Tutorial of zencoding.vim
hello world
</div> -->
---------------------
Type '<c-z>/' in there again.
---------------------
<div>
hello world
</div>
---------------------
12. Make anchor from URL

View File

@@ -925,7 +925,7 @@ function! s:zen_parseIntoTree(abbr, type)
endif
if tag_name =~ '^{.*}$'
let current.name = ''
let current.value = str
let current.value = tag_name
else
let current.value = value
endif
@@ -955,7 +955,11 @@ function! s:zen_parseIntoTree(abbr, type)
endfor
endif
call add(parent.child, current)
if len(current.name)
call add(parent.child, current)
else
let parent.value .= current.value
endif
let last = current
if block_start =~ '('
@@ -1171,7 +1175,7 @@ function! s:zen_expandAbbr(mode) range
let leader = substitute(leader, mx, '', '')
endif
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
for item in items
let expand .= s:zen_toString(item, type, 0, filter)