:“foo #{bar}” ^^^^^^^^^^^^^
‘foo #{bar}` ^^^^^^^^^^^^
foo => bar ^^^^^^^^^^
/(?<foo>foo)/ =~ bar ^^^^^^^^^^^^^^^^^^^^
Ripper
gives back the escaped string content but strips out the common leading whitespace. Prism
gives back the unescaped string content and a location for the escaped string content. Unfortunately these don’t work well together, so here we need to re-derive the common leading whitespace.
Compile a InterpolatedRegularExpressionNode
node
Compile a MatchLastLineNode
node
Dispatch enter and leave events for CallOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for ConstantOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for IndexOperatorWriteNode
nodes and continue walking the tree.
Dispatch enter and leave events for InterpolatedRegularExpressionNode
nodes and continue walking the tree.
Dispatch enter and leave events for MatchLastLineNode
nodes and continue walking the tree.