runtime(vim): Update base syntax, fix indented Vim9 :redir highlighting

Include post operator whitespace in the Vim9 variable assignment
lookahead so that "redir =>" doesn't match as an assignment.

fixes: #18319
closes: #18323

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-09-18 19:28:18 +00:00
committed by Christian Brabandt
parent 5bf41e7418
commit 57d243e27d
7 changed files with 79 additions and 14 deletions

View File

@ -44,3 +44,28 @@ redir =>> var
redir END
" Issue #18319 (redir command not highlighted in some cases)
def Vim9Context()
var foo: string
if true
redir => foo
smile
redir END
endif
echo foo
command Foo {
redir => foo
echo "hello from cmd"
redir END
}
redir => foo
echom "hello global"
redir END
enddef