summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala b/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala
index f07eddcdfe..1afd477db3 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala
@@ -180,7 +180,10 @@ trait NewScanners {
assert(xmlOk)
val headIsRBRACE = if (sepRegions.isEmpty) true else sepRegions.head == RBRACE
val hasNewline = fillNext
- if (headIsRBRACE && ((inLastOfStat(lastCode) && inFirstOfStat(next.code)) || next.code == EOF)) {
+ if (headIsRBRACE && ((inLastOfStat(lastCode) && inFirstOfStat(next.code))
+ /* This need to be commented out, otherwise line
+ continuation in the interpreter will not work
+ || next.code == EOF */ )) {
//if (hasNewline) current.code = NEWLINES
} else {
currentIsNext