Skip to content

Commit 908ed90

Browse files
committed
Also highlight non-string after showing them
1 parent 4aa00a7 commit 908ed90

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

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

0 commit comments

Comments
 (0)