summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2007-11-21 15:38:20 +0000
committerMartin Odersky <odersky@gmail.com>2007-11-21 15:38:20 +0000
commit96792348fa71f5df08a8ca26db001f76f15d73b1 (patch)
tree8d6cc443eb4ec0f75d02a79069a26499a393c7a9 /src/compiler
parente32400681a1370b5279afdae3a5501311a6bc340 (diff)
downloadscala-96792348fa71f5df08a8ca26db001f76f15d73b1.tar.gz
scala-96792348fa71f5df08a8ca26db001f76f15d73b1.tar.bz2
scala-96792348fa71f5df08a8ca26db001f76f15d73b1.zip
Fixed #162.
Diffstat (limited to 'src/compiler')
-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