From 39d0d4323d77b1f89bb3feaa18339888567084c0 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 27 Dec 2019 07:21:42 +0000 Subject: unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting. --- Util/ztst-syntax.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Util') diff --git a/Util/ztst-syntax.vim b/Util/ztst-syntax.vim index f0c82d74c..01e4dae31 100644 --- a/Util/ztst-syntax.vim +++ b/Util/ztst-syntax.vim @@ -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 -- cgit 1.4.1