runtime(vim): Update base syntax, allow Vim9 :echo tail comments

- Match comments after Vim9 :echo and :execute.
- Match comments after Vim9 and legacy :eval.

closes: #18420

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-28 17:56:01 +00:00
committed by Christian Brabandt
parent 38b98bd8e6
commit f4a6acd86e
14 changed files with 151 additions and 24 deletions

View File

@ -51,6 +51,11 @@ execute| echo "Foo"
" trailing comment needs |
execute "Foo" | " comment
def Vim9Context()
# trailing comment allowed
execute "Foo" # comment
enddef
" Issue #9987 (parenthesised argument - not a function call)