diff options
author | dkearns <dougkearns@gmail.com> | 2024-03-04 02:42:47 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-03 16:42:47 +0100 |
commit | c4aef9a97b3673a12de7a131d239e7f49d11f630 (patch) | |
tree | 06c439ef4a31e257585867dc222377e96277eeb8 /runtime/syntax/testdir/input | |
parent | d9ebd46bd090c598adc82e683b4462909f2d4ea5 (diff) |
runtime(vim): Update base-syntax, improve :augroup highlighting (#14125)
- Explicitly match the bang and group name in :aug! {name}.
- Allow any characters in a group name.
- Match default group switch marker, END.
- Match :aug without arguments (list command).
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_augroup.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/syntax/testdir/input/vim_ex_augroup.vim b/runtime/syntax/testdir/input/vim_ex_augroup.vim new file mode 100644 index 0000000000..2dae59dda5 --- /dev/null +++ b/runtime/syntax/testdir/input/vim_ex_augroup.vim @@ -0,0 +1,19 @@ +" Vim :augroup command + +augroup foo + autocmd BufRead * echomsg "Foo" +augroup END + +augroup foo | autocmd! | augroup END +augroup! foo + +augroup !@#$%^&*()_+ + autocmd BufRead * echomsg "Foo" +augroup END + +augroup !@#$%^&*()_+ | autocmd! | augroup END +augroup! !@#$%^&*()_+ + +" list groups +augroup + |