Problem: Empty and comment lines in a class cause an error.
Solution: Skip empty and comment lines. (closes #11734)
this.lnum: number
this.col: number
+ # make a nicely formatted string
def ToString(): string
return $'({this.lnum}, {this.col})'
enddef
this.lnum: number = 1
this.col: number = 1
+ # constructor with only the line number
def new(lnum: number)
this.lnum = lnum
enddef
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1083,
/**/
1082,
/**/
break;
char_u *line = skipwhite(theline);
+ // Skip empty and comment lines.
+ if (*line == NUL)
+ continue;
+ if (*line == '#')
+ {
+ if (vim9_bad_comment(line))
+ break;
+ continue;
+ }
+
char_u *p = line;
if (checkforcmd(&p, "endclass", 4))
{