mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
skip to the next line and reset column after =end
This commit is contained in:
@@ -4206,6 +4206,9 @@ parser_yylex(parser_state *p)
|
||||
}
|
||||
c = nextc(p);
|
||||
} while (!(c < 0 || isspace(c)));
|
||||
if (c != '\n') skip(p, '\n');
|
||||
p->lineno++;
|
||||
p->column = 0;
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -309,6 +309,6 @@ this is a comment that has extra after =begin and =end with spaces after it
|
||||
=end
|
||||
=begin this is a comment
|
||||
this is a comment that has extra after =begin and =end with tabs after it
|
||||
=end
|
||||
=end xxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user