changeset 67132 | 336831647779 |
parent 66191 | d91108ba9474 |
child 75393 | 87ebf5a50283 |
--- a/src/Pure/General/antiquote.scala Mon Dec 04 22:54:31 2017 +0100 +++ b/src/Pure/General/antiquote.scala Mon Dec 04 22:56:46 2017 +0100 @@ -54,4 +54,12 @@ Position.here(Position.Line(next.pos.line))) } } + + def read_antiq_body(input: CharSequence): Option[String] = + { + read(input) match { + case List(Antiq(source)) => Some(source.substring(2, source.length - 1)) + case _ => None + } + } }