Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295)
ga_concat(&ga, p);
}
}
- else if (!(p[0] == '"' && p[1] == '\\' && p[2] == ' ')
+ else if (!(p[0] == (in_vim9script() ? '#' : '"')
+ && p[1] == '\\' && p[2] == ' ')
&& !(do_vim9_all && (*p == NUL || vim9_comment_start(p))))
break;
/* drop a # comment or "\ comment line */
'func Test() # comment',
'endfunc',
], 'E488:')
+
+ var lines =<< trim END
+ vim9script
+ syn region Text
+ \ start='foo'
+ #\ comment
+ \ end='bar'
+ END
+ CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
+ syn region Text
+ \ start='foo'
+ "\ comment
+ \ end='bar'
+ END
+ CheckScriptFailure(lines, 'E399:')
enddef
def Test_vim9_comment_gui()
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2925,
/**/
2924,
/**/