mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
[ruby/prism] (ruby_parser) Match match3 nodes for regular expressions
47cb73ce69
This commit is contained in:
parent
4c696597b7
commit
3c3be9c6b2
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue