aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChimrod <>2024-01-15 17:22:23 +0100
committerChimrod <>2024-01-15 17:22:23 +0100
commited1365aedbc69eea0b9c8338d97ec096542e4c2a (patch)
tree35fe7e6a67801e0857668a9959042061db473148 /lib
parent289f1c91a11bd69a9a1239cba5e6390f6d1e592e (diff)
Ignore the _ character when used as a forced line break
Diffstat (limited to 'lib')
-rw-r--r--lib/qparser/lexer.ml3
1 files changed, 3 insertions, 0 deletions
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