1
0
forked from aniani/vim

runtime(vim): Update base-syntax, improve :map highlighting

Match :map ( RHS properly.

Only match ! after :map, :noremap, :unmap and :mapclear.

closes: #15297

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-07-18 20:45:19 +02:00
committed by Christian Brabandt
parent 1165f7850b
commit 99984fc58a
126 changed files with 786 additions and 561 deletions

View File

@@ -11,3 +11,22 @@ match none
3match FooGroup /Foo/
3match
3match none
" Differentiate map() from :map
call match(haystack, 'needle')
call match (haystack, 'needle')
function Foo()
match FooGroup /Foo/
call match(haystack, 'needle')
call match (haystack, 'needle')
endfunction
def Foo()
match FooGroup /Foo/
match(haystack, 'needle')
# Error: bad :match command - trailing characters
match (haystack, 'needle')
enddef