runtime(vim): Update base syntax, fix mismtatched :def return type

Anchor the return type separator ':' with a lookbehind as the relevant
nextgroup options use skipwhite.

closes: #20319

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2026-05-25 16:33:27 +00:00
committed by Christian Brabandt
parent 3a90b2ba8e
commit dfdeba16d7
10 changed files with 31 additions and 24 deletions
@@ -124,3 +124,10 @@ enddef
silent! def Foo()
enddef
" Unreported issue (return type colon must follow immediately after closing parameter-list paren)
def Foo()
: echo "not a mismatched return type"
enddef