From fde706cb5c6133b1c9f46c79283bfa87cd02abb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Marie=20P=C3=A9drot?= Date: Mon, 6 Nov 2023 10:56:36 +0100 Subject: [PATCH] Adapt w.r.t. coq/coq#17136. --- src/coq_elpi_vernacular.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coq_elpi_vernacular.ml b/src/coq_elpi_vernacular.ml index fe2d0e7e0..c410775fd 100644 --- a/src/coq_elpi_vernacular.ml +++ b/src/coq_elpi_vernacular.ml @@ -266,7 +266,7 @@ let atts2impl loc ~depth state atts q = match Pcoq.parse_string (Pvernac.main_entry None) (Printf.sprintf "#[%s] Qed." txt) |> Option.map (fun x -> x.CAst.v) with | None -> atts | Some { Vernacexpr.attrs ; _ } -> List.map (fun {CAst.v=(name,v)} -> convert_att_r ("elpi."^name,v)) attrs @ atts - | exception Gramlib.Stream.Error msg -> + | exception Gramlib.Grammar.Error msg -> CErrors.user_err Pp.(str"Environment variable COQ_ELPI_ATTRIBUTES contains ill formed value:" ++ spc () ++ str txt ++ cut () ++ str msg) in let state, atts, _ = EU.map_acc (Coq_elpi_builtins.attribute.API.Conversion.embed ~depth) state atts in let atts = ET.mkApp attributesc (EU.list_to_lp_list atts) [] in