aboutsummaryrefslogtreecommitdiff
path: root/test/syntax.ml
diff options
context:
space:
mode:
Diffstat (limited to 'test/syntax.ml')
-rw-r--r--test/syntax.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/syntax.ml b/test/syntax.ml
index 47f1a25..87fe2ab 100644
--- a/test/syntax.ml
+++ b/test/syntax.ml
@@ -27,7 +27,8 @@ let parse : string -> (S.pos location, Qsp_syntax.Report.t) result =
let lexing =
Sedlexing.Latin1.from_string content |> Qparser.Lexbuf.from_lexbuf
in
- Qparser.Analyzer.parse (module Parser) lexing
+ let context = Parser.initialize () in
+ Qparser.Analyzer.parse (module Parser) lexing context
|> Result.map (fun (location, _report) ->
(* Uncatched excteptions here, but we are in the tests…
If it’s fail here I have an error in the code. *)