mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
runtime(vim): Update base-syntax, improve function definition highlighting (#14203)
Improve function definition highlighting. - Match bang and function modifiers - abort etc. - Only match valid scope modifiers. - Match listing commands. - Don't match ex commands in function names. - Split function syntax groups into :func and :def subgroups. - Match Vim9-script parameter and return types. - Limit legacy-script and Vim9-script comments to :func and :def definitions, respectively. 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_function_fold_08.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_function_fold_08.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
|++0#0000e05#a8a8a8255|-@1| @1|3| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|)|-@46
|
||||
| +0#0000000#ffffff0@74
|
||||
@75
|
||||
|"+0#0000e05&| |p|a|r|a|m|e|t|e|r|s| +0#0000000&@62
|
||||
@75
|
||||
>++0#0000e05#a8a8a8255|-@1| @1|3| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|x|,| |y|,| |z|,| |.@2|)|-@34
|
||||
| +0#0000000#ffffff0@74
|
||||
|++0#0000e05#a8a8a8255|-@1| @1|7| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|-@47
|
||||
| +0#0000000#ffffff0@74
|
||||
|++0#0000e05#a8a8a8255|-@1| @1|3| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|x|,| |y| |=| |4|2|,| |z| |=| |"|z|e|d|"|)|-@26
|
||||
| +0#0000000#ffffff0@74
|
||||
|++0#0000e05#a8a8a8255|-@1| @1|6| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|-@47
|
||||
| +0#0000000#ffffff0@74
|
||||
@75
|
||||
|"+0#0000e05&| |c|o|m@1|e|n|t|s| +0#0000000&@64
|
||||
@75
|
||||
|++0#0000e05#a8a8a8255|-@1| @1|5| |l|i|n|e|s|:| |f|u|n|c|t|i|o|n| |F|o@1|(|)|-@46
|
||||
| +0#0000000#ffffff0@74
|
||||
@75
|
||||
@57|1|4|5|,|3|-|1| @6|9|5|%|
|
Reference in New Issue
Block a user