src/Pure/General/antiquote.scala
changeset 61481 078ec7b710ab
parent 61471 9d4c08af61b8
child 61491 97261e6c1d42
equal deleted inserted replaced
61479:eec2c9aee907 61481:078ec7b710ab
    40 
    40 
    41     val antiq: Parser[String] =
    41     val antiq: Parser[String] =
    42       "@{" ~ rep(antiq_body) ~ "}" ^^ { case x ~ y ~ z => x + y.mkString + z }
    42       "@{" ~ rep(antiq_body) ~ "}" ^^ { case x ~ y ~ z => x + y.mkString + z }
    43 
    43 
    44     val antiquote: Parser[Antiquote] =
    44     val antiquote: Parser[Antiquote] =
    45       control ^^ (x => Control(x)) | (antiq ^^ (x => Antiq(x)) | txt ^^ (x => Text(x)))
    45       txt ^^ (x => Text(x)) | (control ^^ (x => Control(x)) | antiq ^^ (x => Antiq(x)))
    46   }
    46   }
    47 
    47 
    48 
    48 
    49   /* read */
    49   /* read */
    50 
    50