mirror of
https://github.com/vim/vim.git
synced 2025-10-09 06:14:17 -04:00
patch 8.2.1218: Vim9: cannot use 'text'->func()
Problem: Vim9: cannot use 'text'->func(). Solution: Recognize string at start of command.
This commit is contained in:
@@ -355,6 +355,15 @@ def Test_vim9script_call()
|
||||
("some")->MyFunc()
|
||||
assert_equal('some', var)
|
||||
|
||||
'asdfasdf'->MyFunc()
|
||||
assert_equal('asdfasdf', var)
|
||||
|
||||
def UseString()
|
||||
'xyork'->MyFunc()
|
||||
enddef
|
||||
UseString()
|
||||
assert_equal('xyork', var)
|
||||
|
||||
MyFunc(
|
||||
'continued'
|
||||
)
|
||||
|
Reference in New Issue
Block a user