mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1378: cannot put space between function name and paren
Problem: Cannot put space between function name and paren. Solution: Allow this for backwards compatibility.
This commit is contained in:
@@ -3198,9 +3198,12 @@ eval7(
|
||||
{
|
||||
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)
|
||||
|
Reference in New Issue
Block a user