[ruby/prism] (ruby_parser) Match match3 nodes for regular expressions

47cb73ce69
This commit is contained in:
Kevin Newton 2024-07-11 10:23:01 -04:00 committed by git
parent 4c696597b7
commit 3c3be9c6b2

View file

@ -263,6 +263,11 @@ module Prism
when RegularExpressionNode, InterpolatedRegularExpressionNode
return s(node, :match2, visit(node.receiver), visit(node.arguments.arguments.first))
end
case node.arguments.arguments.first
when RegularExpressionNode, InterpolatedRegularExpressionNode
return s(node, :match3, visit(node.arguments.arguments.first), visit(node.receiver))
end
end
end