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.
-color:never
1 parent ada17fc commit aaba401Copy full SHA for aaba401
compiler/src/dotty/tools/repl/ReplDriver.scala
@@ -286,7 +286,12 @@ class ReplDriver(settings: Array[String],
286
.foreach { sym =>
287
// FIXME syntax highlighting on comment is currently not working
288
// out.println(SyntaxHighlighting.highlight("// defined " + sym.showUser))
289
- out.println(SyntaxHighlighting.CommentColor + "// defined " + sym.showUser + SyntaxHighlighting.NoColor)
+ val message = "// defined " + sym.showUser
290
+ if (ctx.settings.color.value != "never") {
291
+ println(SyntaxHighlighting.CommentColor + message + SyntaxHighlighting.NoColor)
292
+ } else {
293
+ println(message)
294
+ }
295
}
296
297
0 commit comments