From c48740e598132261e20260678ff2feb3b398d913 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Mon, 15 Jan 2024 10:45:16 +0100 Subject: Updated the code used to read the location name --- lib/qparser/lexer.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/qparser/lexer.ml b/lib/qparser/lexer.ml index 5741b7a..da8acce 100644 --- a/lib/qparser/lexer.ml +++ b/lib/qparser/lexer.ml @@ -10,7 +10,7 @@ exception LexError of string exception EOF (* Extract the location name from the pattern *) -let location_name = Str.regexp {|.* \(.*\)|} +let location_name = Str.regexp {|# *\(.*\)|} (** Remove all the expression state when we are leaving the expression itself. *) let rec leave_expression buffer = -- cgit v1.2.3