1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-31 20:36:03 +02:00

unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.

This commit is contained in:
Daniel Shahaf 2019-12-27 07:21:42 +00:00
parent b066ce22d0
commit 39d0d4323d
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2020-01-07 Daniel Shahaf <danielsh@apache.org>
* unposted: Util/ztst-syntax.vim: internal: ztst.vim: Use
:syn-sync to work around (#x) and "`\\\\\\\\`" confusing the
highlighting.
* unposted: Util/zyodl.vim: internal: zyodl.vim: Support glob
qualifiers in example()'s

View File

@ -58,6 +58,16 @@ syn match ztstComment /^#.*/
" harness to the test files.
syn keyword ztstSpecialVariable ZTST_unimplemented ZTST_skip ZTST_testdir ZTST_fd ZTST_srcdir containedin=@zsh
"" Sync
" The following is sufficient for our modest line-based format, and helps
" sidestep problems resulting from test cases that use syntax constructs
" that confuse us and/or syntax/zsh.vim. If we outgrow it, we should sync
" on empty lines instead.
"
" If you run into syntax highlighting issues, just scroll the line that throws
" the syntax highlighting off off the top of the screen.
syn sync maxlines=1
"" Highlight groups:
hi def link ztstExitCode Number
hi def link ztstFlags Normal