tuned outline;
authorwenzelm
Fri, 07 Nov 2014 23:35:13 +0100
changeset 58938 0c45680b7d9d
parent 58937 49e8115f70d8
child 58939 994fe0ba8335
tuned outline;
src/Pure/Isar/outer_syntax.scala
--- a/src/Pure/Isar/outer_syntax.scala	Fri Nov 07 22:33:54 2014 +0100
+++ b/src/Pure/Isar/outer_syntax.scala	Fri Nov 07 23:35:13 2014 +0100
@@ -251,7 +251,7 @@
       case "subsubsection" => Some(3)
       case _ =>
         keywords.command_kind(command.name) match {
-          case Some(kind) if Keyword.theory(kind) => Some(4)
+          case Some(kind) if Keyword.theory(kind) && kind != Keyword.THY_END => Some(4)
           case _ => None
         }
     }