We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b67fc commit 393ef42Copy full SHA for 393ef42
compiler/src/dotty/tools/dotc/reporting/MessageRendering.scala
@@ -62,7 +62,7 @@ trait MessageRendering {
62
}
63
64
val syntax =
65
- if (ctx.settings.color.value != "never")
+ if (ctx.settings.color.value != "never" && !ctx.isJava)
66
SyntaxHighlighting.highlight(new String(pos.linesSlice)).toCharArray
67
else pos.linesSlice
68
val lines = linesFrom(syntax)
0 commit comments