aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/repl/InteractiveReader.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-04-27 12:00:29 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-04-28 11:00:39 +0200
commitd04984596c6abfa27b217b12a42caca26f0c269f (patch)
tree5657a2a1da905954fbab71f49a9cb477f7a690e7 /src/dotty/tools/dotc/repl/InteractiveReader.scala
parent96cedcdcd82148f091989836eb4959b2c3ec3382 (diff)
downloaddotty-d04984596c6abfa27b217b12a42caca26f0c269f.tar.gz
dotty-d04984596c6abfa27b217b12a42caca26f0c269f.tar.bz2
dotty-d04984596c6abfa27b217b12a42caca26f0c269f.zip
Add multiline support using ammonite multilineFilter
Diffstat (limited to 'src/dotty/tools/dotc/repl/InteractiveReader.scala')
-rw-r--r--src/dotty/tools/dotc/repl/InteractiveReader.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/repl/InteractiveReader.scala b/src/dotty/tools/dotc/repl/InteractiveReader.scala
index 6bab0a0c6..6ec6a0463 100644
--- a/src/dotty/tools/dotc/repl/InteractiveReader.scala
+++ b/src/dotty/tools/dotc/repl/InteractiveReader.scala
@@ -6,7 +6,7 @@ import dotc.core.Contexts.Context
/** Reads lines from an input stream */
trait InteractiveReader {
- def readLine(prompt: String)(implicit ctx: Context): String
+ def readLine(prompt: String): String
val interactive: Boolean
}
@@ -16,9 +16,9 @@ object InteractiveReader {
/** Create an interactive reader. Uses JLine if the
* library is available, but otherwise uses a
* SimpleReader. */
- def createDefault(): InteractiveReader = {
+ def createDefault(in: Interpreter)(implicit ctx: Context): InteractiveReader = {
try {
- new AmmoniteReader()
+ new AmmoniteReader(in)
} catch { case e =>
//out.println("jline is not available: " + e) //debug
e.printStackTrace()