From d3546e79ae255351808141321ef79d56e755bdca Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 18 Oct 2008 11:49:39 +0000 Subject: * parse.y (opt_block_arg): allow trailing comma after usual arguments. not after block argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ parse.y | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index cccae44df3..54b0a5a870 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,11 @@ Sat Oct 18 14:40:32 2008 Yukihiro Matsumoto * numeric.c (num_sadded): remove newly defined singleton method that should not exist after exception handling. [ruby-dev:36569] +Sat Oct 18 14:27:49 2008 Yukihiro Matsumoto + + * parse.y (opt_block_arg): allow trailing comma after usual + arguments. not after block argument. + Sat Oct 18 13:30:53 2008 Yukihiro Matsumoto * string.c (rb_external_str_new): a new function to convert from diff --git a/parse.y b/parse.y index 58283dceb2..da63620f49 100644 --- a/parse.y +++ b/parse.y @@ -2399,6 +2399,10 @@ opt_block_arg : ',' block_arg { $$ = $2; } + | ',' + { + $$ = 0; + } | none { $$ = 0; -- cgit v1.2.3