mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.0298: Vim9 script: cannot start command with a string constant
Problem: Vim9 script: cannot start command with a string constant. Solution: Recognize expression starting with '('.
This commit is contained in:
@@ -370,6 +370,11 @@ def Test_vim9script_call()
|
||||
assert_equal(#{a: 1, b: 2}, dictvar)
|
||||
#{a: 3, b: 4}->DictFunc()
|
||||
assert_equal(#{a: 3, b: 4}, dictvar)
|
||||
|
||||
('text')->MyFunc()
|
||||
assert_equal('text', var)
|
||||
("some")->MyFunc()
|
||||
assert_equal('some', var)
|
||||
END
|
||||
writefile(lines, 'Xcall.vim')
|
||||
source Xcall.vim
|
||||
|
Reference in New Issue
Block a user