1
0
forked from aniani/vim

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>
This commit is contained in:
dkearns
2024-03-04 02:42:47 +11:00
committed by GitHub
parent d9ebd46bd0
commit c4aef9a97b
6 changed files with 94 additions and 23 deletions

View File

@@ -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