mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-08 11:34:46 +08:00
colorfull
This commit is contained in:
@@ -3,13 +3,14 @@ so zencoding.vim
|
|||||||
unlet! testgroups
|
unlet! testgroups
|
||||||
let testgroups = eval(join(filter(split(substitute(join(readfile(expand('<sfile>')), "\n"), '.*\nfinish\n', '', ''), '\n', 1), "v:val !~ '^\"'")))
|
let testgroups = eval(join(filter(split(substitute(join(readfile(expand('<sfile>')), "\n"), '.*\nfinish\n', '', ''), '\n', 1), "v:val !~ '^\"'")))
|
||||||
for testgroup in testgroups
|
for testgroup in testgroups
|
||||||
echohl Visual | echon "[" testgroup.category."]\n" | echohl None
|
echohl MatchParen | echon "[" testgroup.category."]\n" | echohl None
|
||||||
let tests = testgroup.tests
|
let tests = testgroup.tests
|
||||||
let start = reltime()
|
let start = reltime()
|
||||||
for n in range(len(tests))
|
for n in range(len(tests))
|
||||||
let testtitle = tests[n].name
|
let testtitle = tests[n].name
|
||||||
let testtitle = len(testtitle) < 57 ? (testtitle.repeat(' ', 57-len(testtitle))) : strpart(testtitle, 0, 57)
|
let testtitle = len(testtitle) < 57 ? (testtitle.repeat(' ', 57-len(testtitle))) : strpart(testtitle, 0, 57)
|
||||||
echon "testing #".printf("%03d", n+1)": ".testtitle." ... "
|
echohl ModeMsg | echon "testing #".printf("%03d", n+1)
|
||||||
|
echohl None | echon ": ".testtitle." ... "
|
||||||
unlet! res | let res = ZenExpand(tests[n].query, '', 0)
|
unlet! res | let res = ZenExpand(tests[n].query, '', 0)
|
||||||
if res == tests[n].result
|
if res == tests[n].result
|
||||||
echohl Title | echon "ok\n" | echohl None
|
echohl Title | echon "ok\n" | echohl None
|
||||||
|
|||||||
Reference in New Issue
Block a user