clarified indentation;
authorwenzelm
Mon, 11 Jul 2016 16:36:48 +0200
changeset 63442 f6b5124b7023
parent 63441 4c3fa4dba79f
child 63443 c037248d54e8
clarified indentation;
src/Tools/jEdit/src/text_structure.scala
--- a/src/Tools/jEdit/src/text_structure.scala	Mon Jul 11 16:36:29 2016 +0200
+++ b/src/Tools/jEdit/src/text_structure.scala	Mon Jul 11 16:36:48 2016 +0200
@@ -109,7 +109,8 @@
             head_token(current_line) match {
               case None => indent_structure + indent_extra
               case Some(tok) =>
-                if (keywords.is_command(tok, Keyword.theory)) indent_begin
+                if (keywords.is_before_command(tok) ||
+                    keywords.is_command(tok, Keyword.theory)) indent_begin
                 else if (tok.is_command) indent_structure + indent_begin - indent_offset(tok)
                 else {
                   prev_command match {