mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3
This commit is contained in:
@@ -2942,7 +2942,7 @@ backref : tNTH_REF
|
||||
| tBACK_REF
|
||||
;
|
||||
|
||||
superclass : term
|
||||
superclass : /* term */
|
||||
{
|
||||
$$ = 0;
|
||||
}
|
||||
@@ -2954,12 +2954,12 @@ superclass : term
|
||||
expr_value term
|
||||
{
|
||||
$$ = $3;
|
||||
}
|
||||
} /*
|
||||
| error term
|
||||
{
|
||||
yyerrok;
|
||||
$$ = 0;
|
||||
}
|
||||
} */
|
||||
;
|
||||
|
||||
f_arglist : '(' f_args rparen
|
||||
|
||||
Reference in New Issue
Block a user