mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
runtime(vim): Update base syntax, improve :@ highlighting
- Highlight :@ as a normal Ex command rather than something special. - Fix erroneous matching of the Ex command as a register variable. closes: #18624 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
00e8452191
commit
842c7788a5
@@ -3,8 +3,6 @@
|
||||
@75
|
||||
@75
|
||||
|#+0#0000e05&| |S|T|A|R|T| |N|O|T| |M|A|T|C|H|E|D| +0#0000000&@55
|
||||
|:|@| @72
|
||||
|:|@+0#e000e06&@1| +0#0000000&@71
|
||||
|:|N|e|x|t| @69
|
||||
|:|X| @72
|
||||
|#+0#0000e05&| |E|N|D| |N|O|T| |M|A|T|C|H|E|D| +0#0000000&@57
|
||||
@@ -14,6 +12,8 @@
|
||||
|:| |h+0#af5f00255&|e|l|p| +0#0000000&@68
|
||||
@1|:+0#af5f00255&| +0#0000000&|h+0#00e0e07&|e|l|p| +0#0000000&|#+0#0000e05&| |F+0#0000001#ffff4012|I|X|M|E| +0#0000000#ffffff0@59
|
||||
@75
|
||||
|:|@+0#af5f00255&| +0#0000000&@72
|
||||
@75
|
||||
|:|a+0#af5f00255&|b@1|r|e|v|i|a|t|e| +0#0000000&@63
|
||||
|:|a+0#af5f00255&|b|c|l|e|a|r| +0#0000000&@66
|
||||
|:|a+0#af5f00255&|b|o|v|e|l|e|f|t| +0#0000000&@64
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|:+0&#ffffff0| |h+0#af5f00255&|e|l|p| +0#0000000&@68
|
||||
@1|:+0#af5f00255&| +0#0000000&|h+0#00e0e07&|e|l|p| +0#0000000&|#+0#0000e05&| |F+0#0000001#ffff4012|I|X|M|E| +0#0000000#ffffff0@59
|
||||
| +0&#ffffff0@74
|
||||
|:|@+0#af5f00255&| +0#0000000&@72
|
||||
@75
|
||||
|:|a+0#af5f00255&|b@1|r|e|v|i|a|t|e| +0#0000000&@63
|
||||
|:|a+0#af5f00255&|b|c|l|e|a|r| +0#0000000&@66
|
||||
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_at_00.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_at_00.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
>"+0#0000e05#ffffff0| |V|i|m| |:|@| |c|o|m@1|a|n|d| +0#0000000&@58
|
||||
@75
|
||||
@75
|
||||
|@+0#af5f00255&|0+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|1+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|2+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|3+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|4+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|5+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|6+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|7+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|8+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|9+0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
|@+0#af5f00255&|a+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|k+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|z+0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
|@+0#af5f00255&|"+0#e000e06&| +0#0000000&@72
|
||||
@57|1|,|1| @10|T|o|p|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_at_01.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_at_01.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@74
|
||||
|@+0#af5f00255&|a+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|k+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|z+0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
>@+0#af5f00255&|"+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|.+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|=+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|*+0#e000e06&| +0#0000000&@72
|
||||
|@+0#af5f00255&|++0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
|@+0#af5f00255&|:+0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
|"+0#0000e05&| |r|e|p|e|a|t|s| +0#0000000&@65
|
||||
|@+0#af5f00255&| +0#0000000&@73
|
||||
|@+0#af5f00255&|@+0#e000e06&| +0#0000000&@72
|
||||
@75
|
||||
|@+0#af5f00255&|a+0#e000e06&| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@59
|
||||
|@+0#af5f00255&|a+0#e000e06&| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@62
|
||||
@57|1|9|,|1| @9|2|7|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_at_02.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_at_02.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
|@+0#af5f00255#ffffff0|a+0#e000e06&| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@62
|
||||
@75
|
||||
@75
|
||||
|d+0#af5f00255&|e|f| +0#0000000&|V|i|m|9|C|o|n|t|e|x|t|(+0#e000e06&|)| +0#0000000&@57
|
||||
@2|:|@+0#af5f00255&|0+0#e000e06&| +0#0000000&@69
|
||||
@2>:|@+0#af5f00255&|1+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|2+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|3+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|4+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|5+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|6+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|7+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|8+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|9+0#e000e06&| +0#0000000&@69
|
||||
@75
|
||||
@2|:|@+0#af5f00255&|a+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|k+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|z+0#e000e06&| +0#0000000&@69
|
||||
@75
|
||||
@57|3|7|,|3| @9|6|5|%|
|
||||
20
runtime/syntax/testdir/dumps/vim_ex_at_03.dump
Normal file
20
runtime/syntax/testdir/dumps/vim_ex_at_03.dump
Normal file
@@ -0,0 +1,20 @@
|
||||
| +0&#ffffff0@74
|
||||
@2|:|@+0#af5f00255&|"+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|.+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|=+0#e000e06&| +0#0000000&@69
|
||||
@2|:|@+0#af5f00255&|*+0#e000e06&| +0#0000000&@69
|
||||
@2>:|@+0#af5f00255&|++0#e000e06&| +0#0000000&@69
|
||||
@75
|
||||
@2|:|@+0#af5f00255&|:+0#e000e06&| +0#0000000&@69
|
||||
@75
|
||||
@2|#+0#0000e05&| |r|e|p|e|a|t|s| +0#0000000&@63
|
||||
@2|:|@+0#af5f00255&| +0#0000000&@70
|
||||
@2|:|@+0#af5f00255&|@+0#e000e06&| +0#0000000&@69
|
||||
@75
|
||||
@2|:|@+0#af5f00255&|a+0#e000e06&| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@56
|
||||
@2|:|@+0#af5f00255&|a+0#e000e06&| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@59
|
||||
|e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68
|
||||
@75
|
||||
|~+0#4040ff13&| @73
|
||||
|~| @73
|
||||
| +0#0000000&@56|5@1|,|3| @9|B|o|t|
|
||||
@@ -2,8 +2,6 @@
|
||||
@75
|
||||
@75
|
||||
|"+0#0000e05&| |S|T|A|R|T| |N|O|T| |M|A|T|C|H|E|D| +0#0000000&@55
|
||||
|:|@| @72
|
||||
|:|@+0#e000e06&@1| +0#0000000&@71
|
||||
|:|N|e|x|t| @69
|
||||
|:|P|r|i|n|t| @68
|
||||
|:|X| @72
|
||||
@@ -14,6 +12,8 @@
|
||||
|:| |h+0#af5f00255&|e|l|p| +0#0000000&@68
|
||||
@1|:+0#af5f00255&| +0#0000000&|h+0#00e0e07&|e|l|p| +0#0000000&|#| |F|I|X|M|E| @59
|
||||
@75
|
||||
|:|@+0#af5f00255&| +0#0000000&@72
|
||||
@75
|
||||
|:+0#af5f00255&|a|p@1|e|n|d| +0#0000000&@67
|
||||
| +0#e000002&@3|t|e|x|t| +0#0000000&@66
|
||||
|.+0#af5f00255&| +0#0000000&@73
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|:+0&#ffffff0| |h+0#af5f00255&|e|l|p| +0#0000000&@68
|
||||
@1|:+0#af5f00255&| +0#0000000&|h+0#00e0e07&|e|l|p| +0#0000000&|#| |F|I|X|M|E| @59
|
||||
| +0&#ffffff0@74
|
||||
|:|@+0#af5f00255&| +0#0000000&@72
|
||||
@75
|
||||
|:+0#af5f00255&|a|p@1|e|n|d| +0#0000000&@67
|
||||
| +0#e000002&@3|t|e|x|t| +0#0000000&@66
|
||||
|
||||
@@ -3,8 +3,6 @@ vim9script
|
||||
|
||||
|
||||
# START NOT MATCHED
|
||||
:@
|
||||
:@@
|
||||
:Next
|
||||
:X
|
||||
# END NOT MATCHED
|
||||
@@ -14,6 +12,8 @@ vim9script
|
||||
: help
|
||||
: help # FIXME
|
||||
|
||||
:@
|
||||
|
||||
:abbreviate
|
||||
:abclear
|
||||
:aboveleft
|
||||
|
||||
66
runtime/syntax/testdir/input/vim_ex_at.vim
Normal file
66
runtime/syntax/testdir/input/vim_ex_at.vim
Normal file
@@ -0,0 +1,66 @@
|
||||
" Vim :@ command
|
||||
|
||||
|
||||
@0
|
||||
@1
|
||||
@2
|
||||
@3
|
||||
@4
|
||||
@5
|
||||
@6
|
||||
@7
|
||||
@8
|
||||
@9
|
||||
|
||||
@a
|
||||
@k
|
||||
@z
|
||||
|
||||
@"
|
||||
@.
|
||||
@=
|
||||
@*
|
||||
@+
|
||||
|
||||
@:
|
||||
|
||||
" repeats
|
||||
@
|
||||
@@
|
||||
|
||||
@a | echo "..."
|
||||
@a " comment
|
||||
|
||||
|
||||
def Vim9Context()
|
||||
:@0
|
||||
:@1
|
||||
:@2
|
||||
:@3
|
||||
:@4
|
||||
:@5
|
||||
:@6
|
||||
:@7
|
||||
:@8
|
||||
:@9
|
||||
|
||||
:@a
|
||||
:@k
|
||||
:@z
|
||||
|
||||
:@"
|
||||
:@.
|
||||
:@=
|
||||
:@*
|
||||
:@+
|
||||
|
||||
:@:
|
||||
|
||||
# repeats
|
||||
:@
|
||||
:@@
|
||||
|
||||
:@a | echo "..."
|
||||
:@a # comment
|
||||
enddef
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
|
||||
|
||||
" START NOT MATCHED
|
||||
:@
|
||||
:@@
|
||||
:Next
|
||||
:Print
|
||||
:X
|
||||
@@ -14,6 +12,8 @@
|
||||
: help
|
||||
: help # FIXME
|
||||
|
||||
:@
|
||||
|
||||
:append
|
||||
text
|
||||
.
|
||||
|
||||
Reference in New Issue
Block a user