diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-06 18:12:06 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-06 18:12:06 +0100 |
commit | 3f74c0ab32de7ed17dd16d9b06f5455a0bb1c297 (patch) | |
tree | 9e625386219dc1f5503d7e9a6a7e3ae75a9d2e17 /src/eval.c | |
parent | db9b96d84491131460e5876fe21b9bbc58c73ed7 (diff) |
patch 9.0.0156: giving E1170 only in an expression is confusingv9.0.0156
Problem: Giving E1170 only in an expression is confusing.
Solution: Give E1170 for any "#{ comment". (closes #10855)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index 8dfbb8f2a3..42b883e9b0 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; } |