src/Pure/Isar/outer_parse.scala
changeset 34268 b149b7083236
parent 34266 bfe8d6998734
child 34311 f0a6f02ad705
--- a/src/Pure/Isar/outer_parse.scala	Tue Jan 05 16:29:03 2010 +0100
+++ b/src/Pure/Isar/outer_parse.scala	Tue Jan 05 16:29:31 2010 +0100
@@ -68,17 +68,6 @@
     def tags: Parser[List[String]] = rep(keyword("%") ~> tag_name)
 
 
-    /* command spans */
-
-    def command_span: Parser[List[Elem]] =
-    {
-      val whitespace = token("white space", tok => tok.is_space || tok.is_comment)
-      val command = token("command keyword", _.is_command)
-      val body = not(rep(whitespace) ~ (command | eof)) ~> not_eof
-      command ~ rep(body) ^^ { case x ~ ys => x :: ys } | rep1(whitespace) | rep1(body)
-    }
-
-
     /* wrappers */
 
     def parse[T](p: Parser[T], in: Outer_Lex.Reader): ParseResult[T] = p(in)