0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

runtime(vim): Update base syntax, improve function call highlighting

- Match more function calls.
- Contain function call syntax groups.
- Improve differentiation between Ex commands and builtin functions with
  the same name.  Remove special cases.  Command modifiers are not
  currently well differentiated from functions.

closes: #17712

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-07-10 20:50:06 +02:00
committed by Christian Brabandt
parent ea528a9482
commit 6ac2e4aa0a
59 changed files with 1324 additions and 89 deletions

View File

@@ -1,4 +1,5 @@
" Vim :match, :2match and :3match commands
" Vim :match command
match FooGroup /Foo/
match
@@ -13,7 +14,7 @@ match none
3match none
" Differentiate map() from :map
" Differentiate match() from :match
call match(haystack, 'needle')
call match (haystack, 'needle')
@@ -25,8 +26,11 @@ function Foo()
endfunction
def Foo()
# command
match FooGroup /Foo/
# function
match(haystack, 'needle')
# Error: bad :match command - trailing characters
match (haystack, 'needle')
enddef