1
0
forked from aniani/vim

patch 8.2.2710: Vim9: not all tests cover script and :def function

Problem:    Vim9: not all tests cover script and :def function.
Solution:   Run tests in both if possible. Fix differences.
This commit is contained in:
Bram Moolenaar
2021-04-04 20:49:50 +02:00
parent 26af8e54ff
commit 90193e6140
6 changed files with 761 additions and 742 deletions

View File

@@ -4106,7 +4106,7 @@ compile_subscript(
ppconst->pp_is_const = FALSE;
*arg = p + 1;
if (may_get_next_line(*arg, arg, cctx) == FAIL)
if (IS_WHITE_OR_NUL(**arg))
{
emsg(_(e_missing_name_after_dot));
return FAIL;
@@ -4785,7 +4785,7 @@ compile_and_or(
if (!IS_WHITE_OR_NUL(**arg) || !IS_WHITE_OR_NUL(p[2]))
{
semsg(_(e_white_space_required_before_and_after_str_at_str),
op, *arg);
op, p);
return FAIL;
}