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:
20
runtime/syntax/testdir/dumps/vim_ex_augroup_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_augroup_00.dump
Normal 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|
|
20
runtime/syntax/testdir/dumps/vim_ex_augroup_99.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_augroup_99.dump
Normal 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|
|
19
runtime/syntax/testdir/input/vim_ex_augroup.vim
Normal file
19
runtime/syntax/testdir/input/vim_ex_augroup.vim
Normal 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
|
||||
|
Reference in New Issue
Block a user