0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0150: error for using #{ in an expression is a bit confusing

Problem:    Error for using #{ in an expression is a bit confusing.
Solution:   Mention that this error is only given for an expression.
            Avoid giving the error more than once. (closes #10855)
This commit is contained in:
Bram Moolenaar
2022-08-06 11:35:28 +01:00
parent 5ac4b1a24e
commit 25f40af9d2
5 changed files with 13 additions and 4 deletions

View File

@@ -2157,6 +2157,8 @@ newline_skip_comments(char_u *arg)
break;
p = nl;
}
else if (vim9_bad_comment(p))
break;
if (*p != NL)
break;
++p; // skip another NL
@@ -2182,7 +2184,10 @@ getline_peek_skip_comments(evalarg_T *evalarg)
break;
p = skipwhite(next);
if (*p != NUL && !vim9_comment_start(p))
{
(void)vim9_bad_comment(p);
return next;
}
if (eval_next_line(NULL, evalarg) == NULL)
break;
}