Skip to content

Commit

Permalink
Update lib/prism/translation/parser/compiler.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored Mar 4, 2024
1 parent dff4abb commit dccfd83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/translation/parser/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def visit_call_node(node)
when :!
return visit_block(builder.not_op(token(node.message_loc), token(node.opening_loc), visit(node.receiver), token(node.closing_loc)), block)
when :=~
if (receiver = node.receiver).type == :regular_expression_node
if (receiver = node.receiver).is_a?(RegularExpressionNode)
return builder.match_op(visit(receiver), token(node.message_loc), visit(node.arguments.arguments.first))
end
when :[]
Expand Down

0 comments on commit dccfd83

Please sign in to comment.