mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-12-28 16:15:02 +01:00
45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload
This commit is contained in:
parent
3511169731
commit
a06143bb30
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-01-28 Daniel Shahaf <danielsh@apache.org>
|
||||
|
||||
* 45345: Util/ztst-syntax.vim: internal: ztst.vim: Fix
|
||||
highlighting of zsh comments in test payload
|
||||
|
||||
2020-01-26 Daniel Shahaf <danielsh@apache.org>
|
||||
|
||||
* unposted: Src/init.c: internal: Add some comments and fix
|
||||
|
|
|
@ -25,7 +25,13 @@ syn clear
|
|||
|
||||
syn include @zsh syntax/zsh.vim
|
||||
|
||||
syn match ztstPayload /^\s\+\zs.*/ contains=@zsh
|
||||
" Note that we don't do /^\s\zs.*/ here. If we did that, lines that start
|
||||
" with " #" (a space and a hash sign) would not be highlighted as comments,
|
||||
" because zshComment's patterns won't match unless the '#' is preceded by
|
||||
" a space or start-of-line. See:
|
||||
"
|
||||
" https://github.com/chrisbra/vim-zsh/issues/21#issuecomment-577738791
|
||||
syn match ztstPayload /^\s.*/ contains=@zsh
|
||||
|
||||
syn match ztstExitCode /^\d\+\|^-/ nextgroup=ztstFlags
|
||||
syn match ztstFlags /[.dDqf]*:/ contained nextgroup=ztstTestName contains=ztstColon
|
||||
|
|
Loading…
Reference in a new issue