mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Accept =begin and =end with spaces after
This commit is contained in:
+7
-2
@@ -4189,8 +4189,13 @@ parser_yylex(parser_state *p)
|
||||
|
||||
case '=':
|
||||
if (p->column == 1) {
|
||||
if (peeks(p, "begin\n")) {
|
||||
skips(p, "\n=end\n");
|
||||
if (peeks(p, "begin ") || peeks(p, "begin\n")) {
|
||||
if (skips(p, "\n=end ")) {
|
||||
goto retry;
|
||||
}
|
||||
if (skips(p, "\n=end\n")) {
|
||||
goto retry;
|
||||
}
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user