diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-04-22 16:15:03 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2016-04-28 11:00:39 +0200 |
commit | 53bd25f7e2082a787936ae833b14f873a07ff22c (patch) | |
tree | 6ecb2d392eb12a3d82cffc45c5a1b23f3c85c39d /test/test/TestREPL.scala | |
parent | 96fcdd9da51e1febe9e320f774424b5ac3f8ff3d (diff) | |
download | dotty-53bd25f7e2082a787936ae833b14f873a07ff22c.tar.gz dotty-53bd25f7e2082a787936ae833b14f873a07ff22c.tar.bz2 dotty-53bd25f7e2082a787936ae833b14f873a07ff22c.zip |
Initial implementation featuring two different highlighters
One was implemted by hand and the other by using dotty's parser. The one
built by hand is shorter, and behaves correctly.
The scanner one is unfortunately not ready for testing - there are too
many things that are workarounds for it to be a good solution as of now
The code added from Ammonite is licensed under MIT, not sure where to
put the license - but will add it once I know.
Diffstat (limited to 'test/test/TestREPL.scala')
-rw-r--r-- | test/test/TestREPL.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test/TestREPL.scala b/test/test/TestREPL.scala index d01038c43..53fcc0730 100644 --- a/test/test/TestREPL.scala +++ b/test/test/TestREPL.scala @@ -22,7 +22,7 @@ class TestREPL(script: String) extends REPL { override def input(implicit ctx: Context) = new InteractiveReader { val lines = script.lines - def readLine(prompt: String): String = { + def readLine(prompt: String)(implicit ctx: Context): String = { val line = lines.next if (line.startsWith(prompt) || line.startsWith(continuationPrompt)) { output.println(line) @@ -44,4 +44,4 @@ class TestREPL(script: String) extends REPL { assert(false) } } -}
\ No newline at end of file +} |