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

patch 9.0.0156: giving E1170 only in an expression is confusing

Problem:    Giving E1170 only in an expression is confusing.
Solution:   Give E1170 for any "#{ comment". (closes #10855)
This commit is contained in:
Bram Moolenaar
2022-08-06 18:12:06 +01:00
parent db9b96d844
commit 3f74c0ab32
6 changed files with 24 additions and 14 deletions

View File

@@ -2157,8 +2157,6 @@ newline_skip_comments(char_u *arg)
break;
p = nl;
}
else if (vim9_bad_comment(p))
break;
if (*p != NL)
break;
++p; // skip another NL
@@ -2184,10 +2182,7 @@ 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;
}