summaryrefslogtreecommitdiffstats
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-29 21:38:15 +0200
committerBram Moolenaar <Bram@vim.org>2020-03-29 21:38:15 +0200
commit0b37a2f379f36d097e7fa90a3e86da6a29ed2aaa (patch)
treeaa08a41d322d8f44d39794bf5200a3d5b4fb90be /src/vim9compile.c
parent2027973b5be693577bea0731b50ea4904d19ea8b (diff)
patch 8.2.0480: Vim9: some code is not testedv8.2.0480
Problem: Vim9: some code is not tested. Solution: Add more tests.
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 584618c0e1..9d66e5ed15 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2622,11 +2622,14 @@ compile_subscript(
else
{
// method call: list->method()
- for (p = *arg; eval_isnamec1(*p); ++p)
+ p = *arg;
+ if (ASCII_ISALPHA(*p) && p[1] == ':')
+ p += 2;
+ for ( ; eval_isnamec1(*p); ++p)
;
if (*p != '(')
{
- semsg(_(e_missing_paren), arg);
+ semsg(_(e_missing_paren), *arg);
return FAIL;
}
// TODO: base value may not be the first argument