mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-29 16:25:35 +01:00
unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "\\\\\\\\
" confusing the highlighting.
This commit is contained in:
parent
b066ce22d0
commit
39d0d4323d
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue