0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

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,20 @@
>"+0#0000e05#ffffff0| |V|i|m| |:|a|u|g|r|o|u|p| |c|o|m@1|a|n|d| +0#0000000&@52
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|f|o@1| @63
@2|a+0#af5f00255&|u|t|o|c|m|d| +0#0000000&|B+0#00e0003&|u|f|R|e|a|d| +0#0000000&|*| |e+0#af5f00255&|c|h|o|m|s|g| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@41
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @63
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|f|o@1| ||| |a+0#af5f00255&|u|t|o|c|m|d|!| +0#0000000&||| |a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @38
|a+0#af5f00255&|u|g|r|o|u|p|!| +0#0000000&|f|o@1| @62
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| @54
@2|a+0#af5f00255&|u|t|o|c|m|d| +0#0000000&|B+0#00e0003&|u|f|R|e|a|d| +0#0000000&|*| |e+0#af5f00255&|c|h|o|m|s|g| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@41
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @63
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| ||| |a+0#af5f00255&|u|t|o|c|m|d|!| +0#0000000&||| |a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @29
|a+0#af5f00255&|u|g|r|o|u|p|!| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| @53
@75
|"+0#0000e05&| |l|i|s|t| |g|r|o|u|p|s| +0#0000000&@61
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&@67
@75
@57|1|,|1| @10|A|l@1|

View File

@@ -0,0 +1,20 @@
|"+0#0000e05#ffffff0| |V|i|m| |:|a|u|g|r|o|u|p| |c|o|m@1|a|n|d| +0#0000000&@52
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|f|o@1| @63
@2|a+0#af5f00255&|u|t|o|c|m|d| +0#0000000&|B+0#00e0003&|u|f|R|e|a|d| +0#0000000&|*| |e+0#af5f00255&|c|h|o|m|s|g| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@41
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @63
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|f|o@1| ||| |a+0#af5f00255&|u|t|o|c|m|d|!| +0#0000000&||| |a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @38
|a+0#af5f00255&|u|g|r|o|u|p|!| +0#0000000&|f|o@1| @62
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| @54
@2|a+0#af5f00255&|u|t|o|c|m|d| +0#0000000&|B+0#00e0003&|u|f|R|e|a|d| +0#0000000&|*| |e+0#af5f00255&|c|h|o|m|s|g| +0#0000000&|"+0#e000002&|F|o@1|"| +0#0000000&@41
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @63
@75
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| ||| |a+0#af5f00255&|u|t|o|c|m|d|!| +0#0000000&||| |a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&|E|N|D| @29
|a+0#af5f00255&|u|g|r|o|u|p|!| +0#0000000&|!|@|#|$|%|^|&|*|(|)|_|+| @53
@75
|"+0#0000e05&| |l|i|s|t| |g|r|o|u|p|s| +0#0000000&@61
|a+0#af5f00255&|u|g|r|o|u|p| +0#0000000&@67
> @74
@57|1|9|,|0|-|1| @7|A|l@1|

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