summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-04-27 21:31:05 +0000
committerPaul Phillips <paulp@improving.org>2010-04-27 21:31:05 +0000
commit677ca58efb2d759eb674e2e419756afc0e94927d (patch)
treebab3cf3741403058adb93fae689c8ad82bfcebb7 /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parentaf4338c2b2c443fbca53ee937faaef2dfc0748c8 (diff)
downloadscala-677ca58efb2d759eb674e2e419756afc0e94927d.tar.gz
scala-677ca58efb2d759eb674e2e419756afc0e94927d.tar.bz2
scala-677ca58efb2d759eb674e2e419756afc0e94927d.zip
A small error message improvement suggested at ...
A small error message improvement suggested at #3092. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/parser/Parsers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index 1cfee481bc..497cfc398b 100644
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -2630,7 +2630,8 @@ self =>
} else if (isStatSep) {
in.nextToken()
} else {
- syntaxErrorOrIncomplete("illegal start of statement", true)
+ val addendum = if (isModifier) " (no modifiers allowed here)" else ""
+ syntaxErrorOrIncomplete("illegal start of statement" + addendum, true)
}
}
stats.toList