1
0
forked from aniani/vim

patch 8.2.2256: Vim9: cannot use function( after line break in :def function

Problem:    Vim9: cannot use function( after line break in :def function.
Solution:   Check for "(" after "function". (closes #7581)
This commit is contained in:
Bram Moolenaar
2020-12-31 18:28:18 +01:00
parent 1779ff4842
commit adc8e44645
3 changed files with 29 additions and 1 deletions

View File

@@ -260,6 +260,11 @@ def Test_nested_function()
CheckScriptSuccess(lines)
enddef
def Test_not_nested_function()
echo printf('%d',
function('len')('xxx'))
enddef
func Test_call_default_args_from_func()
call MyDefaultArgs()->assert_equal('string')
call MyDefaultArgs('one')->assert_equal('one')