aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-05 13:29:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-05 13:29:01 +0000
commit768e6c1328a77295d1c5b6c53175b511ec073ee6 (patch)
tree1f1ffbab52aeaeb31fbf320a01b24a779833f186 /parse.y
parentdf27d91fc4de9215d6af58de191b2c105ef88678 (diff)
downloadruby-768e6c1328a77295d1c5b6c53175b511ec073ee6.tar.gz
* parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
nothing. fixed: [ruby-dev:26952] * ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y10
1 files changed, 5 insertions, 5 deletions
diff --git a/parse.y b/parse.y
index 637d9ebb84..3416daba5e 100644
--- a/parse.y
+++ b/parse.y
@@ -921,7 +921,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
$$ = NEW_OP_ASGN1($1, $5, args);
fixpos($$, $1);
/*%
- $$ = dispatch2(aref_field, $1, $3);
+ $$ = dispatch2(aref_field, $1, escape_Qundef($3));
$$ = dispatch3(opassign, $$, $5, $6);
%*/
}
@@ -1341,7 +1341,7 @@ mlhs_node : variable
/*%%%*/
$$ = aryset($1, $3);
/*%
- $$ = dispatch2(aref_field, $1, $3);
+ $$ = dispatch2(aref_field, $1, escape_Qundef($3));
%*/
}
| primary_value '.' tIDENTIFIER
@@ -1415,7 +1415,7 @@ lhs : variable
/*%%%*/
$$ = aryset($1, $3);
/*%
- $$ = dispatch2(aref_field, $1, $3);
+ $$ = dispatch2(aref_field, $1, escape_Qundef($3));
%*/
}
| primary_value '.' tIDENTIFIER
@@ -1676,7 +1676,7 @@ arg : lhs '=' arg
$$ = NEW_OP_ASGN1($1, $5, args);
fixpos($$, $1);
/*%
- $1 = dispatch2(aref_field, $1, $3);
+ $1 = dispatch2(aref_field, $1, escape_Qundef($3));
$$ = dispatch3(opassign, $1, $5, $6);
%*/
}
@@ -3364,7 +3364,7 @@ method_call : operation paren_args
$$ = NEW_CALL($1, tAREF, $3);
fixpos($$, $1);
/*%
- $$ = dispatch2(aref, $1, $3);
+ $$ = dispatch2(aref, $1, escape_Qundef($3));
%*/
}
;