From ed1365aedbc69eea0b9c8338d97ec096542e4c2a Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Mon, 15 Jan 2024 17:22:23 +0100 Subject: Ignore the _ character when used as a forced line break --- lib/qparser/lexer.ml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/qparser/lexer.ml b/lib/qparser/lexer.ml index da8acce..30d151b 100644 --- a/lib/qparser/lexer.ml +++ b/lib/qparser/lexer.ml @@ -198,6 +198,9 @@ let rec parse_token : Lexbuf.t -> token = Lexbuf.start buffer; LOCATION_START ident + | '_', Star space, eol, Star space -> + (* The _ character can be used to break lines *) + parse_token buffer | '-', Plus '-', Star (Sub (any, ('\r' | '\n'))) -> leave_expression buffer; LOCATION_END -- cgit v1.2.3