зеркало из https://github.com/github/ruby.git
* parse.y (opt_call_args): allow trailing comma after assoc
argument e.g. 'foo(bar:1,)'. fixed #3456 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2ab094ba4d
Коммит
aab018f8fe
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 6 23:13:19 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* parse.y (opt_call_args): allow trailing comma after assoc
|
||||
argument e.g. 'foo(bar:1,)'. fixed #3456
|
||||
|
||||
Wed Jul 6 22:11:12 2011 Shota Fukumori <sorah@tubusu.net>
|
||||
|
||||
* test/cgi/test_cgi_header.rb(test_cgi_header_nph): Validate date in
|
||||
|
|
8
parse.y
8
parse.y
|
@ -2426,6 +2426,14 @@ opt_call_args : none
|
|||
$$ = arg_add_assocs($1, $3);
|
||||
%*/
|
||||
}
|
||||
| assocs ','
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = NEW_LIST(NEW_HASH($1));
|
||||
/*%
|
||||
$$ = arg_add_assocs(arg_new(), $1);
|
||||
%*/
|
||||
}
|
||||
;
|
||||
|
||||
call_args : command
|
||||
|
|
Загрузка…
Ссылка в новой задаче