From 787a2ceec02fe07fbb9efee673d3abb7cac2969e Mon Sep 17 00:00:00 2001 From: Felix Mulder Date: Fri, 16 Sep 2016 22:28:27 +0200 Subject: Add modifiers to highlighting --- src/dotty/tools/dotc/reporting/ConsoleReporter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/reporting/ConsoleReporter.scala') 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) -- cgit v1.2.3