aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChimrod <>2024-01-25 08:10:37 +0100
committerChimrod <>2024-01-25 08:10:37 +0100
commit3b5c4f8cc65a9b781ffdea09ee6b725fb8341d4d (patch)
treee1ddcd0912b1270067b00f8f075c51060c89771f /bin
parent8a02bbbd2bf42e2152faca16b95152744ef416d0 (diff)
Make the option --global effective with qsrc file
Diffstat (limited to 'bin')
-rw-r--r--bin/qsp_parser.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/qsp_parser.ml b/bin/qsp_parser.ml
index 5a34ab2..6d045b8 100644
--- a/bin/qsp_parser.ml
+++ b/bin/qsp_parser.ml
@@ -131,7 +131,9 @@ let () =
| ".qsrc" ->
(* The source file are in UTF-8, and we can use the file line number as
we have only a single location. *)
- (Sedlexing.Utf8.from_channel ic, { parameters with reset_line = false })
+ ( Sedlexing.Utf8.from_channel ic,
+ { parameters with reset_line = parameters.Args.reset_line || false }
+ )
| ".txt" ->
(Sedlexing.Utf16.from_channel ic (Some Little_endian), parameters)
| _ -> raise (Failure "unknown extension")