summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-08 21:10:01 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-08 21:10:01 +0200
commit5184132ec015f5889a3195d911e609d214f06bed (patch)
tree9b879ab9af52ed54b66511924dec640ecdecc559 /src/eval.c
parent47ed553fd5bebfc36eb8aa81686eeaa5a84eccac (diff)
patch 8.1.1828: not strict enough checking syntax of method invocationv8.1.1828
Problem: Not strict enough checking syntax of method invocation. Solution: Check there is no white space inside ->method(.
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c
index caac2a1da2..0f9c95fa0d 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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);
}