diff options
author | dkearns <dougkearns@gmail.com> | 2024-03-05 05:15:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-04 19:15:42 +0100 |
commit | e5c9ba6015735b8b12e35dc5873bfc957dcbb600 (patch) | |
tree | 4e4d57faa0896939d1a125e1e363a85e85f1992a /runtime/syntax/testdir/input | |
parent | 1bdc9435c1a14ca1a30e5b5927ab63f603ec4409 (diff) |
runtime(vim): Update base-syntax, fix escaping :syn and :hi sub-groups (#14137)
* runtime(vim): Update base-syntax, fix escaping :syn and :hi sub-groups
- Remove contained :syntax and :highlight sub-groups from the function
body cluster. These should only match in the respective commands.
- Remove vimSynLine syntax group from several clusters. The definition
of vimSynLine was removed in Vim 5.3.
* runtime(vim): Update syntax generator, use standard Last Change date format
The de facto standard date format is YYYY MMM DD.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/syntax/testdir/input')
-rw-r--r-- | runtime/syntax/testdir/input/vim_ex_syntax.vim (renamed from runtime/syntax/testdir/input/vim_syntax.vim) | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_syntax.vim b/runtime/syntax/testdir/input/vim_ex_syntax.vim index 197d4ac9d9..79437ffff5 100644 --- a/runtime/syntax/testdir/input/vim_syntax.vim +++ b/runtime/syntax/testdir/input/vim_ex_syntax.vim @@ -162,3 +162,16 @@ syn keyword testKeyword \ keyword5 \ keyword6 + +" leaking contained groups + +" Example: runtime/syntax/zsh.vim +" "cluster" should not be highlighted outside of :syntax commands + +function! s:ContainedGroup() + " ... + for cluster in ['markdownHighlight_zsh', 'zsh'] + " ... + endfor + " ... +endfunction |