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