From 133600a72f7623eac6ba96a56094c72e3a0c41ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20M=C3=BCller?= Date: Wed, 27 Nov 2024 17:50:15 +0100 Subject: [PATCH] Add location to `RegexLiteral` --- src/compiler/crystal/syntax/parser.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/syntax/parser.cr b/src/compiler/crystal/syntax/parser.cr index da2a6b7a4f42..569bbd4d9409 100644 --- a/src/compiler/crystal/syntax/parser.cr +++ b/src/compiler/crystal/syntax/parser.cr @@ -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