0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.0174: no error for using "#{ comment" in a compiled function

Problem:    No error for using "#{ comment" in a compiled function.
Solution:   Make error checking for "#{" consistent. (closes #10855)
This commit is contained in:
Bram Moolenaar
2022-08-08 21:43:11 +01:00
parent e6a3d81e05
commit ad6d9cc679
3 changed files with 9 additions and 1 deletions

View File

@@ -2899,7 +2899,9 @@ compile_def_function(
if (*ea.cmd == '#')
{
// "#" starts a comment
// "#" starts a comment, but "#{" is an error
if (vim9_bad_comment(ea.cmd))
goto erret;
line = (char_u *)"";
continue;
}