diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-26 02:39:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-26 02:39:14 +0000 |
commit | cc479b25ba715099ac721ad9d0b1b4237fa2b9f9 (patch) | |
tree | af9f6addc574d041d1105710ce2699b25fd293ca /parse.y | |
parent | 6d8c13bc61c465ab400a12e0a44e9de52f117b7b (diff) |
* parse.y (stmt): missing ripper rule. i.e., `a::B ||= c 1'.
http://twitter.com/#!/wannabe53/status/18797576396472321
http://twitter.com/#!/wannabe53/status/18798416150663168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1159,8 +1159,14 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem } | primary_value tCOLON2 tCONSTANT tOP_ASGN command_call { + /*%%%*/ yyerror("constant re-assignment"); $$ = 0; + /*% + $$ = dispatch2(const_path_field, $1, $3); + $$ = dispatch3(opassign, $$, $4, $5); + $$ = dispatch1(assign_error, $$); + %*/ } | primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call { |