Problem: Cannot put space between function name and paren.
Solution: Allow this for backwards compatibility.
{
int flags = evalarg == NULL ? 0 : evalarg->eval_flags;
- if (**arg == '(')
+ if ((in_vim9script() ? **arg : *skipwhite(*arg)) == '(')
+ {
// "name(..." recursive!
+ *arg = skipwhite(*arg);
ret = eval_func(arg, evalarg, s, len, rettv, flags, NULL);
+ }
else if (flags & EVAL_CONSTANT)
ret = FAIL;
else if (evaluate)
call assert_fails("let v = -{}", 'E728:')
endfunc
+func Test_white_in_function_call()
+ let text = substitute ( 'some text' , 't' , 'T' , 'g' )
+ call assert_equal('some TexT', text)
+endfunc
+
" Test for float value comparison
func Test_float_compare()
CheckFeature float
assert_equal([0, 1, 2], --3->range())
call CheckDefFailure(["let x = 'yes'->Echo"], 'E107:')
+ call CheckScriptFailure([
+ "vim9script",
+ "let x = substitute ('x', 'x', 'x', 'x')"
+ ], 'E121:')
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1378,
/**/
1377,
/**/