Skip to content

Commit

Permalink
[ruby/prism] Fix my RipperCompat logic mistake from expansion for ste…
Browse files Browse the repository at this point in the history
…ep flow analysis

ruby/prism@f71a390c12
  • Loading branch information
nixme authored and matzbot committed Feb 24, 2024
1 parent 935d4fa commit ca8a626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prism/ripper_compat.rb
Expand Up @@ -109,7 +109,7 @@ def parse
# Visit a CallNode node.
def visit_call_node(node)
message = node.message
if message && message.match?(/^[[:alpha:]_]/) && node.opening_loc.nil? && node.arguments && node.arguments.arguments && node.arguments.arguments.length == 1
if message && !message.match?(/^[[:alpha:]_]/) && node.opening_loc.nil? && node.arguments && node.arguments.arguments && node.arguments.arguments.length == 1
left = visit(node.receiver)
right = visit(node.arguments.arguments.first)

Expand Down

0 comments on commit ca8a626

Please sign in to comment.