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 63e491a commit 7670223Copy full SHA for 7670223
compiler/src/dotty/tools/dotc/printing/Formatting.scala
@@ -86,7 +86,8 @@ object Formatting {
86
case hb: HighlightBuffer =>
87
hb.toString
88
case str: String if ctx.settings.color.value != "never" =>
89
- new String(SyntaxHighlighting(str).toArray)
+ if (str.matches(".*\u001b\\[.*?m.*")) str // was already colored by some other printer
90
+ else new String(SyntaxHighlighting(str).toArray)
91
case _ => super.showArg(arg)
92
}
93
0 commit comments