summaryrefslogtreecommitdiffstats
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
commit98a9949e2b5c5a74b70ddc7b16065a13464c831c (patch)
tree1f1ffbab52aeaeb31fbf320a01b24a779833f186 /parse.y
parent5123afe6145b5d967fcce725b3821ad97cf8fd83 (diff)
downloadruby-98a9949e2b5c5a74b70ddc7b16065a13464c831c.tar.gz
ruby-98a9949e2b5c5a74b70ddc7b16065a13464c831c.tar.xz
ruby-98a9949e2b5c5a74b70ddc7b16065a13464c831c.zip
* 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: http://svn.ruby-lang.org/repos/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 637d9ebb8..3416daba5 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));
%*/
}
;