0
0
mirror of https://github.com/vim/vim.git synced 2025-10-22 08:34:29 -04:00

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

@@ -0,0 +1,36 @@
vim9script
# Vim9 :echo commands
# VIM_TEST_SETUP hi link vimVar Identifier
echo # comment
echo "Foo" # comment
echo foo[0] # comment
echo Foo() # comment
echo "Foo" | # comment
def Foo()
echo # comment
echo "Foo" # comment
echo foo[0] # comment
echo Foo() # comment
echo "Foo" | # comment
enddef
echo "4"
# comment
.. "2" # comment
echo "4" ..
# comment
"2" # comment
echo "4" # comment
# comment
.. "2" # comment
echo "4" .. # comment
# comment
"2" # comment