summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-08-11 16:27:48 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-08-11 16:27:48 +0900
commit2574adab48d0995204ee45b812125b2134c6c8f3 (patch)
tree506ce4a1f9c10faac1a555959da3bc679ff351dd
parente4f32ad9ad96fddb5613178a848fafe5c869f7c9 (diff)
downloadmruby-2574adab48d0995204ee45b812125b2134c6c8f3.tar.gz
mruby-2574adab48d0995204ee45b812125b2134c6c8f3.zip
compiler: allow "class A end" by tweaking the superclass rule like CRuby2.3
-rw-r--r--mrbgems/mruby-compiler/core/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index 338f6b9e3..097d63ac4 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -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