зеркало из https://github.com/github/ruby.git
* parse.y (expr): keyword_not can continue across newline.
[ruby-core:20252] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
6e0f413f01
Коммит
8c01ec883a
|
@ -1,3 +1,8 @@
|
|||
Wed Dec 3 22:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (expr): keyword_not can continue across newline.
|
||||
[ruby-core:20252]
|
||||
|
||||
Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* iseq.c (simple_default_value): returns simplest assignment only.
|
||||
|
|
6
parse.y
6
parse.y
|
@ -1174,12 +1174,12 @@ expr : command_call
|
|||
$$ = dispatch3(binary, $1, ripper_intern("or"), $3);
|
||||
%*/
|
||||
}
|
||||
| keyword_not expr
|
||||
| keyword_not opt_nl expr
|
||||
{
|
||||
/*%%%*/
|
||||
$$ = call_uni_op(cond($2), '!');
|
||||
$$ = call_uni_op(cond($3), '!');
|
||||
/*%
|
||||
$$ = dispatch2(unary, ripper_intern("not"), $2);
|
||||
$$ = dispatch2(unary, ripper_intern("not"), $3);
|
||||
%*/
|
||||
}
|
||||
| '!' command_call
|
||||
|
|
Загрузка…
Ссылка в новой задаче