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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user