0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.1418: Vim9: invalid error for missing white space

Problem:    Vim9: invalid error for missing white space after function.
Solution:   Do not skip over white space. (closes #6679)
This commit is contained in:
Bram Moolenaar
2020-08-10 22:40:56 +02:00
parent efb6482949
commit 8294d49937
3 changed files with 14 additions and 2 deletions

View File

@@ -686,7 +686,10 @@ get_func_tv(
while (--argcount >= 0)
clear_tv(&argvars[argcount]);
*arg = skipwhite(argp);
if (in_vim9script())
*arg = argp;
else
*arg = skipwhite(argp);
return ret;
}
@@ -4097,6 +4100,7 @@ ex_call(exarg_T *eap)
if (!failed || eap->cstack->cs_trylevel > 0)
{
// Check for trailing illegal characters and a following command.
arg = skipwhite(arg);
if (!ends_excmd2(eap->arg, arg))
{
if (!failed)