зеркало из https://github.com/github/ruby.git
* parse.y: missing arg_paren event. This patch is contributed by Mitchell N Charity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
dececad56c
Коммит
cc5f78419c
|
@ -1,3 +1,8 @@
|
|||
Sat Jun 11 22:34:44 2005 Minero Aoki <aamine@loveruby.net>
|
||||
|
||||
* parse.y: missing arg_paren event. This patch is contributed by
|
||||
Mitchell N Charity.
|
||||
|
||||
Fri Jun 10 23:55:17 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* eval.c (unknown_node): show more information. [ruby-dev:26196]
|
||||
|
|
4
parse.y
4
parse.y
|
@ -2132,7 +2132,7 @@ paren_args : '(' none ')'
|
|||
$$ = NEW_LIST($2);
|
||||
/*%
|
||||
rb_warn0("parenthesize argument for future version");
|
||||
$$ = arg_add(arg_new(), $2);
|
||||
$$ = dispatch1(arg_paren, arg_add(arg_new(), $2));
|
||||
%*/
|
||||
}
|
||||
| '(' args ',' block_call rparen
|
||||
|
@ -2142,7 +2142,7 @@ paren_args : '(' none ')'
|
|||
$$ = list_append($2, $4);
|
||||
/*%
|
||||
rb_warn0("parenthesize argument for future version");
|
||||
$$ = dispatch1(arg_paren, arg_add(arg_new(), $4));
|
||||
$$ = dispatch1(arg_paren, arg_add($2, $4));
|
||||
%*/
|
||||
}
|
||||
;
|
||||
|
|
Загрузка…
Ссылка в новой задаче