src/Pure/General/antiquote.scala
changeset 75420 73a2f3fe0e8c
parent 75393 87ebf5a50283
child 77011 3e48f8c6afc9
equal deleted inserted replaced
75419:be5aa2c9c9ad 75420:73a2f3fe0e8c
    42 
    42 
    43 
    43 
    44   /* read */
    44   /* read */
    45 
    45 
    46   def read(input: CharSequence): List[Antiquote] = {
    46   def read(input: CharSequence): List[Antiquote] = {
    47     Parsers.parseAll(Parsers.rep(Parsers.antiquote), Scan.char_reader(input)) match {
    47     val result = Parsers.parseAll(Parsers.rep(Parsers.antiquote), Scan.char_reader(input))
       
    48     (result : @unchecked) match {
    48       case Parsers.Success(xs, _) => xs
    49       case Parsers.Success(xs, _) => xs
    49       case Parsers.NoSuccess(_, next) =>
    50       case Parsers.NoSuccess(_, next) =>
    50         error("Malformed quotation/antiquotation source" +
    51         error("Malformed quotation/antiquotation source" +
    51           Position.here(Position.Line(next.pos.line)))
    52           Position.here(Position.Line(next.pos.line)))
    52     }
    53     }