0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.1.1828: not strict enough checking syntax of method invocation

Problem:    Not strict enough checking syntax of method invocation.
Solution:   Check there is no white space inside ->method(.
This commit is contained in:
Bram Moolenaar
2019-08-08 21:10:01 +02:00
parent 47ed553fd5
commit 5184132ec0
4 changed files with 29 additions and 4 deletions

View File

@@ -4862,6 +4862,12 @@ eval_method(
semsg(_(e_missingparen), name);
ret = FAIL;
}
else if (VIM_ISWHITE((*arg)[-1]))
{
if (verbose)
semsg(_("E274: No white space allowed before parenthesis"));
ret = FAIL;
}
else
ret = eval_func(arg, name, len, rettv, evaluate, &base);
}