summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-05 02:36:58 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-05 02:36:58 +0000
commita2643fb4c457cf208c3625c831d6cab715059f03 (patch)
tree72c3c0f403662bfe3d7a45b37cb1a2981b043641 /parse.y
parent0c769b714072a8d2aa9b31d1e96cdfaea64f75a5 (diff)
merges r25209 from trunk into ruby_1_9_1.
-- * parse.y (bv_decls, bvar): fix for block variables. [ruby-dev:39423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@26003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 7dd2c50b4c..b27875a3d8 100644
--- a/parse.y
+++ b/parse.y
@@ -3441,7 +3441,7 @@ bv_decls : bvar
/*%c%*/
/*%c
{
- $$ = rb_ary_new2($1);
+ $$ = rb_ary_new3(1, $1);
}
%*/
| bv_decls ',' bvar
@@ -3455,10 +3455,10 @@ bv_decls : bvar
bvar : tIDENTIFIER
{
- new_bv($1);
+ new_bv(get_id($1));
/*%%%*/
/*%
- $$ = $1;
+ $$ = get_value($1);
%*/
}
| f_bad_arg