summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 08:45:58 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-24 08:45:58 +0000
commitb0d830174499044035053c9760e77b88fca8b427 (patch)
tree2eb540aa77704f50acd1260a603a049d76d11b33
parent45c7ead6ae07a05e9d0301ab40a37fba4a2e33ac (diff)
* parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--parse.y14
2 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index cf0d06fc9a..d0fe5286fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Feb 24 17:45:48 2007 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
+
Sat Feb 24 16:52:55 2007 Minero Aoki <aamine@loveruby.net>
* bootstraptest/runner.rb: fix syntax error.
diff --git a/parse.y b/parse.y
index 08fefe3f52..93ded14d6b 100644
--- a/parse.y
+++ b/parse.y
@@ -4153,11 +4153,19 @@ f_norm_arg : tCONSTANT
f_arg : f_norm_arg
{
+ /*%%%*/
$$ = 1;
+ /*%
+ $$ = rb_ary_new();
+ %*/
}
| f_arg ',' f_norm_arg
{
+ /*%%%*/
$$ = $1 + 1;
+ /*%
+ rb_ary_push($$, $3);
+ %*/
}
;
@@ -4273,7 +4281,11 @@ opt_f_block_arg : ',' f_block_arg
}
| none
{
- $$ = 0 ;
+ /*%%%*/
+ $$ = 0;
+ /*%
+ $$ = Qundef;
+ %*/
}
;