clarified markup: more uniform;
authorwenzelm
Fri, 23 Aug 2024 14:56:33 +0200
changeset 80744 515a6659cb7b
parent 80743 94e64d8ac668
child 80745 57754091318e
clarified markup: more uniform;
src/Pure/Isar/proof_context.ML
src/Pure/Syntax/syntax_phases.ML
--- a/src/Pure/Isar/proof_context.ML	Fri Aug 23 14:41:45 2024 +0200
+++ b/src/Pure/Isar/proof_context.ML	Fri Aug 23 14:56:33 2024 +0200
@@ -570,8 +570,7 @@
           let
             val reports = ps
               |> filter (Context_Position.is_reported ctxt)
-              |> map (fn pos =>
-                (pos, Markup.name x (if Name.is_skolem x then Markup.skolem else Markup.free)));
+              |> map (fn pos => (pos, Markup.name x (Variable.markup ctxt x)));
           in (Free (x, infer_type ctxt (x, dummyT)), reports) end
       | (_, SOME d) =>
           let
--- a/src/Pure/Syntax/syntax_phases.ML	Fri Aug 23 14:41:45 2024 +0200
+++ b/src/Pure/Syntax/syntax_phases.ML	Fri Aug 23 14:56:33 2024 +0200
@@ -708,7 +708,7 @@
     val m1 =
       if Variable.is_fixed ctxt x orelse Syntax.is_pretty_global ctxt
       then Markup.fixed x else Markup.intensify;
-    val m2 = if Name.is_skolem x then Markup.skolem else Markup.free;
+    val m2 = Variable.markup ctxt x;
   in [m1, m2] end;
 
 fun markup ctxt c =