Commands start on lines beginning with "scala>" and each successive line which begins with the continuation string is appended to that command.
Commands start on lines beginning with "scala>" and each successive line which begins with the continuation string is appended to that command. Everything else is discarded. When the end of the transcript is spotted, all the commands are replayed.
(pasted: StringAdd).self
(pasted: StringFormat).self
(pasted: ArrowAssoc[Pasted]).x
(Since version 2.10.0) Use leftOfArrow
instead
(pasted: Ensuring[Pasted]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
If it looks like they're pasting in a scala interpreter transcript, remove all the formatting we inserted so we can make some sense of it.
Most of the interesting code in here is due to my goal of "paste idempotence" i.e. the transcript resulting from pasting a transcript should itself be pasteable and should achieve the same result.