summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 13:54:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-03 13:54:42 +0000
commit8c01ec883afec88ca496c9f63fd6c98cbc76c5dd (patch)
tree560f8ac9fa6ba592880bc51066bab85fc241040b /parse.y
parent6e0f413f0188e48fa68d392dcb946b693a57da13 (diff)
* 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
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 44000df50a..63f5e3c929 100644
--- a/parse.y
+++ b/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