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 2a4a1c1 commit cb90ed2Copy full SHA for cb90ed2
compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala
@@ -80,8 +80,8 @@ object SyntaxHighlighting {
80
case IDENTIFIER if name == nme.??? =>
81
highlightRange(start, end, Console.RED_B)
82
83
- case IDENTIFIER if name.head.isUpper =>
84
- highlightRange(start, end, TypeColor)
+ case IDENTIFIER if name.head.isUpper && name.exists(!_.isUpper) =>
+ highlightRange(start, end, KeywordColor)
85
86
case _ =>
87
}
compiler/test-resources/repl/i18383
@@ -11,4 +11,4 @@ scala> class Foo { import scala.util.*; println("foo") }
11
// defined class Foo
12
13
scala> { import scala.util.*; "foo" }
14
-val res0: String = foo
+val res0: String = "foo"
0 commit comments