Skip to content

Commit

Permalink
Adapt w.r.t. coq/coq#17136.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedrot committed Nov 6, 2023
1 parent 7075a45 commit fde706c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coq_elpi_vernacular.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fde706c

Please sign in to comment.