# HG changeset patch # User wenzelm # Date 1535224543 -7200 # Node ID f6c88cb715db09ce3e14f804cc1dd4905538e4bd # Parent 5467858e9419482a8453c7e1e70497f93becae4c more uniform cartouche syntax; more documentation; diff -r 5467858e9419 -r f6c88cb715db src/Doc/Isar_Ref/Document_Preparation.thy --- a/src/Doc/Isar_Ref/Document_Preparation.thy Sat Aug 25 20:48:16 2018 +0200 +++ b/src/Doc/Isar_Ref/Document_Preparation.thy Sat Aug 25 21:15:43 2018 +0200 @@ -94,6 +94,7 @@ @{antiquotation_def typ} & : & \antiquotation\ \\ @{antiquotation_def type} & : & \antiquotation\ \\ @{antiquotation_def class} & : & \antiquotation\ \\ + @{antiquotation_def locale} & : & \antiquotation\ \\ @{antiquotation_def "text"} & : & \antiquotation\ \\ @{antiquotation_def goals} & : & \antiquotation\ \\ @{antiquotation_def subgoals} & : & \antiquotation\ \\ @@ -180,6 +181,7 @@ @@{antiquotation typ} options @{syntax type} | @@{antiquotation type} options @{syntax embedded} | @@{antiquotation class} options @{syntax embedded} | + @@{antiquotation locale} options @{syntax embedded} | (@@{antiquotation command} | @@{antiquotation method} | @@{antiquotation attribute}) options @{syntax name} ; @@ -252,6 +254,8 @@ \<^descr> \@{class c}\ prints a class \c\. + \<^descr> \@{locale c}\ prints a locale \c\. + \<^descr> \@{command name}\, \@{method name}\, \@{attribute name}\ print checked entities of the Isar language. diff -r 5467858e9419 -r f6c88cb715db src/Pure/Thy/document_antiquotations.ML --- a/src/Pure/Thy/document_antiquotations.ML Sat Aug 25 20:48:16 2018 +0200 +++ b/src/Pure/Thy/document_antiquotations.ML Sat Aug 25 21:15:43 2018 +0200 @@ -80,7 +80,7 @@ basic_entity \<^binding>\const\ (Args.const {proper = true, strict = false}) pretty_const #> basic_entity \<^binding>\abbrev\ (Scan.lift Args.embedded_inner_syntax) pretty_abbrev #> basic_entity \<^binding>\typ\ Args.typ_abbrev Syntax.pretty_typ #> - basic_entity \<^binding>\locale\ (Scan.lift (Parse.position Args.name)) pretty_locale #> + basic_entity \<^binding>\locale\ (Scan.lift (Parse.position Args.embedded)) pretty_locale #> basic_entity \<^binding>\class\ (Scan.lift Args.embedded_inner_syntax) pretty_class #> basic_entity \<^binding>\type\ (Scan.lift Args.embedded) pretty_type #> basic_entity \<^binding>\theory\ (Scan.lift (Parse.position Args.embedded)) pretty_theory #>