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

runtime(vim): Update base-syntax, match Vim9 bool/null literal args to :if/:while/:return

Match Vim9 boolean and null literals in expression arguments of :if,
:elseif, :while and :return.

closes: #15684

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2024-09-15 19:21:18 +02:00
committed by Christian Brabandt
parent 0f5effbd1f
commit 4d427d4cab
9 changed files with 77 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
vim9script
# Vim9-script expressions
# Command {expr} arguments
if true
echo true
elseif false
echo false
endif
while true
break
endwhile
def Foo(): bool
return true
enddef