src/Pure/Thy/document_antiquotations.ML
changeset 63120 629a4c5e953e
parent 62800 7ac100f86863
child 63679 dc311d55ad8f
equal deleted inserted replaced
63119:547460dc5c1e 63120:629a4c5e953e
   193 
   193 
   194 
   194 
   195 (* URLs *)
   195 (* URLs *)
   196 
   196 
   197 val _ = Theory.setup
   197 val _ = Theory.setup
   198   (Thy_Output.antiquotation @{binding url} (Scan.lift (Parse.position Parse.name))
   198   (Thy_Output.antiquotation @{binding url} (Scan.lift (Parse.position Parse.embedded))
   199     (fn {context = ctxt, ...} => fn (name, pos) =>
   199     (fn {context = ctxt, ...} => fn (name, pos) =>
   200       (Context_Position.reports ctxt [(pos, Markup.language_path), (pos, Markup.url name)];
   200       (Context_Position.reports ctxt [(pos, Markup.language_path), (pos, Markup.url name)];
   201        enclose "\\url{" "}" name)));
   201        enclose "\\url{" "}" name)));
   202 
   202 
   203 
   203