src/HOL/Tools/Ctr_Sugar/ctr_sugar.ML
changeset 73761 ef1a18e20ace
parent 72450 24bd1316eaae
child 74114 700e5bd59c7d
equal deleted inserted replaced
73760:f4be1b0d7a51 73761:ef1a18e20ace
  1198 (* document antiquotations *)
  1198 (* document antiquotations *)
  1199 
  1199 
  1200 local
  1200 local
  1201 
  1201 
  1202 fun antiquote_setup binding co =
  1202 fun antiquote_setup binding co =
  1203   Thy_Output.antiquotation_pretty_source_embedded binding
  1203   Document_Output.antiquotation_pretty_source_embedded binding
  1204     ((Scan.ahead (Scan.lift Parse.not_eof) >> Token.pos_of) --
  1204     ((Scan.ahead (Scan.lift Parse.not_eof) >> Token.pos_of) --
  1205       Args.type_name {proper = true, strict = true})
  1205       Args.type_name {proper = true, strict = true})
  1206     (fn ctxt => fn (pos, type_name) =>
  1206     (fn ctxt => fn (pos, type_name) =>
  1207       let
  1207       let
  1208         fun err () =
  1208         fun err () =