runtime(vim): Update base syntax, match Vim9 :unlet command

closes: #19290

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2026-02-01 15:03:46 +00:00
committed by Christian Brabandt
parent 079700ee45
commit 2e4c98b6f3
17 changed files with 120 additions and 51 deletions

View File

@@ -208,6 +208,35 @@ foo =<< eval trim END
...
END
# :unlet
unlet foo
unlet foo bar
unlet foo
#\ comment
\ bar
unlet! foo
unlet! foo bar
unlet! foo
#\ comment
\ bar
unlet $FOO
unlet! $FOO
unlet list[3]
unlet list[3:]
unlet dict['two']
unlet dict.two
unlet foo # comment
unlet foo #\ comment
unlet foo | echo "Foo"
unlet foo bar # comment
unlet foo bar #\ comment
unlet foo bar | echo "Foo"
# :for
for foo in expr