From 96792348fa71f5df08a8ca26db001f76f15d73b1 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 21 Nov 2007 15:38:20 +0000 Subject: Fixed #162. --- src/compiler/scala/tools/nsc/ast/parser/NewScanners.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3