summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 02:39:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-12-26 02:39:14 +0000
commitcc479b25ba715099ac721ad9d0b1b4237fa2b9f9 (patch)
treeaf9f6addc574d041d1105710ce2699b25fd293ca /parse.y
parent6d8c13bc61c465ab400a12e0a44e9de52f117b7b (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.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 0c80c87ccc..f0b7358a99 100644
--- a/parse.y
+++ b/parse.y
@@ -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
{