src/Pure/Isar/token.ML
changeset 78098 2cd7e5518d0d
parent 78090 79ad3181071b
child 78690 e10ef4f9c848
--- a/src/Pure/Isar/token.ML	Tue May 23 19:12:21 2023 +0200
+++ b/src/Pure/Isar/token.ML	Tue May 23 20:11:15 2023 +0200
@@ -558,6 +558,10 @@
 
 (* pretty *)
 
+fun pretty_keyword3 tok =
+  let val props = Position.properties_of (pos_of tok)
+  in Pretty.mark_str (Markup.properties props Markup.keyword3, unparse tok) end;
+
 fun pretty_value ctxt tok =
   (case get_value tok of
     SOME (Literal markup) =>
@@ -568,6 +572,8 @@
   | SOME (Term t) => Syntax.pretty_term ctxt t
   | SOME (Fact (_, ths)) =>
       Pretty.enclose "(" ")" (Pretty.breaks (map (Pretty.cartouche o Thm.pretty_thm ctxt) ths))
+  | SOME (Attribute _) => pretty_keyword3 tok
+  | SOME (Declaration _) => pretty_keyword3 tok
   | _ => Pretty.marks_str (markups Keyword.empty_keywords tok, unparse tok));