prefer abstract command kind (in contrast to 367f4512e65c);
authorwenzelm
Thu, 03 Nov 2022 12:52:06 +0100
changeset 76409 87c163ad642e
parent 76408 2768a6d71570
child 76410 687fb18e805c
prefer abstract command kind (in contrast to 367f4512e65c);
src/Pure/Thy/document_output.ML
--- a/src/Pure/Thy/document_output.ML	Thu Nov 03 12:50:53 2022 +0100
+++ b/src/Pure/Thy/document_output.ML	Thu Nov 03 12:52:06 2022 +0100
@@ -296,7 +296,8 @@
     fn cmd_name => fn state => fn state' => fn active_tag =>
       let
         val keyword_tags =
-          if cmd_name = "end" andalso Toplevel.is_end_theory state' then ["theory"]
+          if Keyword.is_theory_end keywords cmd_name andalso Toplevel.is_end_theory state'
+          then ["theory"]
           else Keyword.command_tags keywords cmd_name;
         val command_tags =
           the_list (AList.lookup (op =) document_tags_command cmd_name) @