aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/reporting/ConsoleReporter.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-09-16 22:28:27 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-10-10 13:25:34 +0200
commit787a2ceec02fe07fbb9efee673d3abb7cac2969e (patch)
treee64a077eea45b0298aca88fdfdd459cf9e1a9e83 /src/dotty/tools/dotc/reporting/ConsoleReporter.scala
parent5c243778279d8b258d7b1d34dd5146dff07eb437 (diff)
downloaddotty-787a2ceec02fe07fbb9efee673d3abb7cac2969e.tar.gz
dotty-787a2ceec02fe07fbb9efee673d3abb7cac2969e.tar.bz2
dotty-787a2ceec02fe07fbb9efee673d3abb7cac2969e.zip
Add modifiers to highlighting
Diffstat (limited to 'src/dotty/tools/dotc/reporting/ConsoleReporter.scala')
-rw-r--r--src/dotty/tools/dotc/reporting/ConsoleReporter.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala
index a00813328..b532d05c2 100644
--- a/src/dotty/tools/dotc/reporting/ConsoleReporter.scala
+++ b/src/dotty/tools/dotc/reporting/ConsoleReporter.scala
@@ -37,7 +37,7 @@ class ConsoleReporter(
/** Prints the message with the given position indication. */
def printMessageAndPos(msg: String, pos: SourcePosition, kind: String = "")(implicit ctx: Context): Unit = {
val posStr = if (pos.exists) s"$pos: " else ""
- printMessage(posStr + kind + msg)
+ printMessage(s"${posStr}$kind: $msg")
if (pos.exists) {
printSourceLine(pos)
printColumnMarker(pos)