diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-11 02:53:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-11 02:53:31 +0000 |
commit | 1a916f8f79de363340517159e7d94b131a3a8bbd (patch) | |
tree | ff1cdd19d8da49467ed8319d3c7996fa6b61e7a6 /parse.y | |
parent | ca93d34d4cae052427f2f0863a5d521328123173 (diff) | |
download | ruby-1a916f8f79de363340517159e7d94b131a3a8bbd.tar.gz |
parse.y: optional superclass
* parse.y (superclass): make superclass rule optional and allow
any contents without a terminator. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -4465,15 +4465,7 @@ backref : tNTH_REF | tBACK_REF ; -superclass : term - { - /*%%%*/ - $$ = 0; - /*% - $$ = Qnil; - %*/ - } - | '<' +superclass : '<' { lex_state = EXPR_BEG; command_start = TRUE; @@ -4482,13 +4474,11 @@ superclass : term { $$ = $3; } - | error term + | /* none */ { /*%%%*/ - yyerrok; $$ = 0; /*% - yyerrok; $$ = Qnil; %*/ } |