Skip to content

Commit

Permalink
Add location to RegexLiteral (#15235)
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota authored Dec 1, 2024
1 parent 4cf5748 commit a6a0f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/crystal/syntax/parser.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ module Crystal
raise "invalid regex: #{regex_error}", location
end

result = RegexLiteral.new(result, options)
result = RegexLiteral.new(result, options).at(location)
else
# no special treatment
end
Expand Down

0 comments on commit a6a0f9e

Please sign in to comment.