src/Pure/Isar/outer_syntax.scala
changeset 57911 dcb758188aa6
parent 57910 a50837b637dc
child 58503 ea22f2380871
--- a/src/Pure/Isar/outer_syntax.scala	Tue Aug 12 14:15:58 2014 +0200
+++ b/src/Pure/Isar/outer_syntax.scala	Tue Aug 12 15:31:24 2014 +0200
@@ -163,7 +163,7 @@
       val kind =
         if (!span.isEmpty && span.head.is_command && !span.exists(_.is_error)) {
           val name = span.head.source
-          val pos = Position.Range(Text.Range(0, Symbol.iterator(name).length))
+          val pos = Position.Range(Text.Range(0, Symbol.iterator(name).length) + 1)
           Command_Span.Command_Span(name, pos)
         }
         else if (span.forall(_.is_improper)) Command_Span.Ignored_Span