forked from Isabelle_DOF/Isabelle_DOF
Code cleanup
This commit is contained in:
parent
280feb8653
commit
853158c916
|
@ -2228,13 +2228,18 @@ val _ =
|
||||||
{markdown = true, body = true}
|
{markdown = true, body = true}
|
||||||
(gen_enriched_document_cmd {inline=false} (* declare as macro *) I I);
|
(gen_enriched_document_cmd {inline=false} (* declare as macro *) I I);
|
||||||
|
|
||||||
val _ =
|
|
||||||
Outer_Syntax.command \<^command_keyword>\<open>declare_reference*\<close>
|
|
||||||
|
val _ =
|
||||||
|
let fun create_and_check_docitem (((oid, pos),cid_pos),doc_attrs)
|
||||||
|
= (Value_Command.Docitem_Parser.create_and_check_docitem
|
||||||
|
{is_monitor = false} {is_inline=true}
|
||||||
|
{define = false} oid pos (cid_pos) (doc_attrs))
|
||||||
|
in Outer_Syntax.command \<^command_keyword>\<open>declare_reference*\<close>
|
||||||
"declare document reference"
|
"declare document reference"
|
||||||
(ODL_Meta_Args_Parser.attributes >> (fn (((oid, pos),cid_pos),doc_attrs) =>
|
(ODL_Meta_Args_Parser.attributes
|
||||||
(Toplevel.theory (Value_Command.Docitem_Parser.create_and_check_docitem
|
>> (Toplevel.theory o create_and_check_docitem))
|
||||||
{is_monitor = false} {is_inline=true}
|
end;
|
||||||
{define = false} oid pos (cid_pos) (doc_attrs)))));
|
|
||||||
|
|
||||||
end (* structure Monitor_Command_Parser *)
|
end (* structure Monitor_Command_Parser *)
|
||||||
\<close>
|
\<close>
|
||||||
|
|
Loading…
Reference in New Issue