summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 022d94741..2d82b7b61 100644
--- a/parse.y
+++ b/parse.y
@@ -2613,6 +2613,14 @@ primary : literal
$$ = dispatch1(defined, $5);
%*/
}
+ | keyword_not '(' expr rparen
+ {
+ /*%%%*/
+ $$ = call_uni_op(cond($3), '!');
+ /*%
+ $$ = dispatch2(unary, ripper_intern("not"), $3);
+ %*/
+ }
| operation brace_block
{
/*%%%*/