* parse.y (call_args2): confusion with list_append() and
list_concat() was fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
353650e6b4
commit
da548b67f5
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 1 16:50:59 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (call_args2): confusion with list_append() and
|
||||||
|
list_concat() was fixed.
|
||||||
|
|
||||||
Fri Jun 1 15:01:40 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Jun 1 15:01:40 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* parse.y (yylex): fixed 'print CGI::bar() {}, "\n"' syntax
|
* parse.y (yylex): fixed 'print CGI::bar() {}, "\n"' syntax
|
||||||
|
8
parse.y
8
parse.y
@ -1018,7 +1018,7 @@ call_args : command
|
|||||||
|
|
||||||
call_args2 : arg ',' args opt_block_arg
|
call_args2 : arg ',' args opt_block_arg
|
||||||
{
|
{
|
||||||
$$ = arg_blk_pass(list_append(NEW_LIST($1),$3), $4);
|
$$ = arg_blk_pass(list_concat(NEW_LIST($1),$3), $4);
|
||||||
}
|
}
|
||||||
| arg ',' tSTAR arg opt_block_arg
|
| arg ',' tSTAR arg opt_block_arg
|
||||||
{
|
{
|
||||||
@ -1031,7 +1031,7 @@ call_args2 : arg ',' args opt_block_arg
|
|||||||
{
|
{
|
||||||
value_expr($1);
|
value_expr($1);
|
||||||
value_expr($6);
|
value_expr($6);
|
||||||
$$ = arg_concat(list_append($1,$3), $6);
|
$$ = arg_concat(list_concat($1,$3), $6);
|
||||||
$$ = arg_blk_pass($$, $7);
|
$$ = arg_blk_pass($$, $7);
|
||||||
}
|
}
|
||||||
| assocs opt_block_arg
|
| assocs opt_block_arg
|
||||||
@ -1054,7 +1054,7 @@ call_args2 : arg ',' args opt_block_arg
|
|||||||
{
|
{
|
||||||
value_expr($1);
|
value_expr($1);
|
||||||
value_expr($6);
|
value_expr($6);
|
||||||
$$ = list_append(list_append($1,$3), NEW_HASH($5));
|
$$ = list_append(list_concat($1,$3), NEW_HASH($5));
|
||||||
$$ = arg_blk_pass($$, $6);
|
$$ = arg_blk_pass($$, $6);
|
||||||
}
|
}
|
||||||
| arg ',' assocs ',' tSTAR arg opt_block_arg
|
| arg ',' assocs ',' tSTAR arg opt_block_arg
|
||||||
@ -1068,7 +1068,7 @@ call_args2 : arg ',' args opt_block_arg
|
|||||||
{
|
{
|
||||||
value_expr($1);
|
value_expr($1);
|
||||||
value_expr($8);
|
value_expr($8);
|
||||||
$$ = arg_concat(list_append(list_append(NEW_LIST($1), $3), NEW_HASH($5)), $8);
|
$$ = arg_concat(list_append(list_concat(NEW_LIST($1), $3), NEW_HASH($5)), $8);
|
||||||
$$ = arg_blk_pass($$, $9);
|
$$ = arg_blk_pass($$, $9);
|
||||||
}
|
}
|
||||||
| tSTAR arg opt_block_arg
|
| tSTAR arg opt_block_arg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user