From 53bd25f7e2082a787936ae833b14f873a07ff22c Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 22 Apr 2016 16:15:03 +0200 Subject: 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. --- test/test/TestREPL.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test') 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 +} -- cgit v1.2.3