1
0
forked from aniani/vim

patch 8.2.1110: Vim9: line continuation does not work in function arguments

Problem:    Vim9: line continuation does not work in function arguments.
Solution:   Pass "evalarg" to get_func_tv().  Fix seeing double quoted string
            as comment.
This commit is contained in:
Bram Moolenaar
2020-07-01 17:28:33 +02:00
parent 086eb18ba1
commit e6b5324e3a
10 changed files with 80 additions and 32 deletions

View File

@@ -1099,6 +1099,13 @@ def Test_expr7_dict_vim9script()
END
CheckScriptSuccess(lines)
lines =<< trim END
vim9script
let d = { "one": "one", "two": "two", }
assert_equal({'one': 'one', 'two': 'two'}, d)
END
CheckScriptSuccess(lines)
lines =<< trim END
vim9script
let d = #{one: 1,

View File

@@ -353,6 +353,22 @@ def Test_vim9script_call()
assert_equal('text', var)
("some")->MyFunc()
assert_equal('some', var)
MyFunc(
'continued'
)
assert_equal('continued',
var
)
call MyFunc(
'more'
..
'lines'
)
assert_equal(
'morelines',
var)
END
writefile(lines, 'Xcall.vim')
source Xcall.vim