mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 19:44:47 +08:00
fix test.
This commit is contained in:
@@ -83,7 +83,6 @@ function! s:test(...)
|
|||||||
for testgroup in testgroups
|
for testgroup in testgroups
|
||||||
if len(type) > 0 && testgroup.type != type | continue | endif
|
if len(type) > 0 && testgroup.type != type | continue | endif
|
||||||
call s:show_type(testgroup.type)
|
call s:show_type(testgroup.type)
|
||||||
let type = testgroup.type
|
|
||||||
for category in testgroup.categories
|
for category in testgroup.categories
|
||||||
if len(name) > 0 && substitute(category.name,' ','_','g') != name | continue | endif
|
if len(name) > 0 && substitute(category.name,' ','_','g') != name | continue | endif
|
||||||
call s:show_category(category.name)
|
call s:show_category(category.name)
|
||||||
@@ -99,7 +98,7 @@ function! s:test(...)
|
|||||||
endif
|
endif
|
||||||
if stridx(query, '$$$$') != -1
|
if stridx(query, '$$$$') != -1
|
||||||
silent! 1new
|
silent! 1new
|
||||||
silent! exe "setlocal ft=".type
|
silent! exe "setlocal ft=".testgroup.type
|
||||||
silent! let key = matchstr(query, '.*\$\$\$\$\zs.*\ze\$\$\$\$')
|
silent! let key = matchstr(query, '.*\$\$\$\$\zs.*\ze\$\$\$\$')
|
||||||
if len(key) > 0
|
if len(key) > 0
|
||||||
exe printf('let key = "%s"', key)
|
exe printf('let key = "%s"', key)
|
||||||
@@ -118,7 +117,7 @@ function! s:test(...)
|
|||||||
call s:show_title(n+1, query)
|
call s:show_title(n+1, query)
|
||||||
else
|
else
|
||||||
call s:show_title(n+1, query)
|
call s:show_title(n+1, query)
|
||||||
unlet! res | let res = zencoding#ExpandWord(query, type, 0)
|
unlet! res | let res = zencoding#ExpandWord(query, testgroup.type, 0)
|
||||||
endif
|
endif
|
||||||
if stridx(result, '$$$$') != -1
|
if stridx(result, '$$$$') != -1
|
||||||
if res ==# result
|
if res ==# result
|
||||||
|
|||||||
Reference in New Issue
Block a user