diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-08-11 16:27:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-08-11 16:27:48 +0900 |
| commit | 2574adab48d0995204ee45b812125b2134c6c8f3 (patch) | |
| tree | 506ce4a1f9c10faac1a555959da3bc679ff351dd | |
| parent | e4f32ad9ad96fddb5613178a848fafe5c869f7c9 (diff) | |
| download | mruby-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.y | 6 |
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 |
