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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user