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