1
0
forked from aniani/vim

patch 8.2.0480: Vim9: some code is not tested

Problem:    Vim9: some code is not tested.
Solution:   Add more tests.
This commit is contained in:
Bram Moolenaar
2020-03-29 21:38:15 +02:00
parent 2027973b5b
commit 0b37a2f379
3 changed files with 40 additions and 2 deletions

View File

@@ -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