compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-08-11 16:27:48 +09:00
parent e4f32ad9ad
commit 2574adab48
+3 -3
View File
@@ -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