Skip to content

Commit

Permalink
Fix call to Prism::StringNode in multiline eval parsing
Browse files Browse the repository at this point in the history
This fixes the spec language/regexp/back-references_spec.rb
  • Loading branch information
herwinw committed Oct 12, 2024
1 parent 7fc3ed3 commit 8056c2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/natalie/compiler/macro_expander.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ def macro_eval(expr:, current_path:, locals:, **)
node = Prism::StringNode.new(
nil,
nil,
node.location,
0,
node.opening_loc,
node.opening_loc,
node.closing_loc,
node.parts.map(&:unescaped).join,
node.location,
)
end
if node.type == :string_node
Expand Down

0 comments on commit 8056c2a

Please sign in to comment.