summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-03 13:14:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-03 13:14:19 +0000
commitc0dd4b7c49bbbf646382dc3724aae3032b83b77e (patch)
tree885c926e687cec6ef7ab03642a779208a6799962 /parse.y
parent8e0f8bce1a85e679466cafe39f4798e045759a46 (diff)
downloadruby-c0dd4b7c49bbbf646382dc3724aae3032b83b77e.tar.gz
ruby-c0dd4b7c49bbbf646382dc3724aae3032b83b77e.tar.xz
ruby-c0dd4b7c49bbbf646382dc3724aae3032b83b77e.zip
* parse.y (bv_decls, bvar): fix for block variables.
[ruby-dev:39423] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25209 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 953eaa739..07ee4bc08 100644
--- a/parse.y
+++ b/parse.y
@@ -3403,7 +3403,7 @@ bv_decls : bvar
/*%c%*/
/*%c
{
- $$ = rb_ary_new2($1);
+ $$ = rb_ary_new3(1, $1);
}
%*/
| bv_decls ',' bvar
@@ -3417,10 +3417,10 @@ bv_decls : bvar
bvar : tIDENTIFIER
{
- new_bv($1);
+ new_bv(get_id($1));
/*%%%*/
/*%
- $$ = $1;
+ $$ = get_value($1);
%*/
}
| f_bad_arg