src/Pure/Isar/outer_syntax.scala
changeset 58753 960bf499ca5d
parent 58748 8f92f17d8781
child 58853 f8715e7c1be6
     1.1 --- a/src/Pure/Isar/outer_syntax.scala	Tue Oct 21 20:19:14 2014 +0200
     1.2 +++ b/src/Pure/Isar/outer_syntax.scala	Tue Oct 21 20:44:17 2014 +0200
     1.3 @@ -192,8 +192,8 @@
     1.4            if (tok.is_command) {
     1.5              if (command_kind(tok, Keyword.theory_goal)) (2, 1)
     1.6              else if (command_kind(tok, Keyword.theory)) (1, 0)
     1.7 -            else if (command_kind(tok, Keyword.proof_goal) || tok.source == "{") (y + 2, y + 1)
     1.8 -            else if (command_kind(tok, Keyword.qed) || tok.source == "}") (y + 1, y - 1)
     1.9 +            else if (command_kind(tok, Keyword.proof_goal) || tok.is_begin_block) (y + 2, y + 1)
    1.10 +            else if (command_kind(tok, Keyword.qed) || tok.is_end_block) (y + 1, y - 1)
    1.11              else if (command_kind(tok, Keyword.qed_global)) (1, 0)
    1.12              else (x, y)
    1.13            }