Problem: Vim9: cannot use call() without :call.
Solution: Do not skip over "call(". (closes #6689)
CheckScriptFailure(lines, 'E1013:')
enddef
+def Test_call_call()
+ let l = [3, 2, 1]
+ call('reverse', [l])
+ assert_equal([1, 2, 3], l)
+enddef
+
let s:value = ''
def FuncOneDefArg(opt = 'text')
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1425,
/**/
1424,
/**/
cmdmod = save_cmdmod;
// Skip ":call" to get to the function name.
+ p = ea.cmd;
if (checkforcmd(&ea.cmd, "call", 3))
- ea.cmd = skipwhite(ea.cmd);
+ {
+ if (*ea.cmd == '(')
+ // not for "call()"
+ ea.cmd = p;
+ else
+ ea.cmd = skipwhite(ea.cmd);
+ }
if (!starts_with_colon)
{