Skip to content

Commit 0a8bd2d

Browse files
committed
Revert "Also highlight non-string after showing them"
This reverts commit 5fe9269, which triggers failures in PatmatTests.
1 parent 0e6095b commit 0a8bd2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler/src/dotty/tools/dotc/printing/Formatting.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ object Formatting {
8080
hl.show
8181
case hb: HighlightBuffer =>
8282
hb.toString
83-
case _ =>
84-
SyntaxHighlighting.highlight(super.showArg(arg))
83+
case str: String =>
84+
SyntaxHighlighting.highlight(str)
85+
case _ => super.showArg(arg)
8586
}
8687
}
8788

0 commit comments

Comments
 (0)