Skip to content

Commit 01a51c3

Browse files
committed
Avoid highlighting Java source
1 parent 705e10e commit 01a51c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ trait MessageRendering {
6262
}
6363

6464
val syntax =
65-
if (ctx.settings.color.value != "never")
65+
if (ctx.settings.color.value != "never" && !ctx.isJava)
6666
SyntaxHighlighting.highlight(new String(pos.linesSlice)).toCharArray
6767
else pos.linesSlice
6868
val lines = linesFrom(syntax)

0 commit comments

Comments
 (0)