Skip to content

Commit

Permalink
[ruby/prism] Update lib/prism/translation/parser/compiler.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored and matzbot committed Mar 4, 2024
1 parent a03f929 commit 85fe8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/translation/parser/compiler.rb
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 85fe8b6

Please sign in to comment.