We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06cc54e + 2a3d9db commit a0bb8daCopy full SHA for a0bb8da
lib/syntax_tree/node.rb
@@ -5115,7 +5115,7 @@ def call(q, node)
5115
else
5116
# Otherwise, we're going to check the conditional for certain cases.
5117
case node
5118
- in predicate: Assign | Command | CommandCall | MAssign | OpAssign
+ in predicate: Assign | Command | CommandCall | MAssign | Not | OpAssign
5119
false
5120
in {
5121
statements: { body: [truthy] },
test/fixtures/if.rb
@@ -35,3 +35,9 @@
35
%
36
if foo {}
37
end
38
+%
39
+if not a
40
+ b
41
+else
42
+ c
43
+end
0 commit comments