mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
957f69d2de
commit
d3546e79ae
2 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,11 @@ Sat Oct 18 14:40:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
* 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 <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (opt_block_arg): allow trailing comma after usual
|
||||
arguments. not after block argument.
|
||||
|
||||
Sat Oct 18 13:30:53 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* string.c (rb_external_str_new): a new function to convert from
|
||||
|
|
4
parse.y
4
parse.y
|
@ -2399,6 +2399,10 @@ opt_block_arg : ',' block_arg
|
|||
{
|
||||
$$ = $2;
|
||||
}
|
||||
| ','
|
||||
{
|
||||
$$ = 0;
|
||||
}
|
||||
| none
|
||||
{
|
||||
$$ = 0;
|
||||
|
|
Loading…
Reference in a new issue