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 685a0ed commit 84c217cCopy full SHA for 84c217c
compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala
@@ -398,6 +398,8 @@ object SyntaxHighlighting {
398
val treeHighlighter = new UntypedTreeTraverser {
399
def traverse(tree: Tree)(implicit ctx: Context): Unit = {
400
tree match {
401
+ case id: Ident if id.isType =>
402
+ highlightPosition(id.pos, TypeColor)
403
case tpe : TypeDef =>
404
highlightPosition(tpe.namePos, TypeColor)
405
case _ : TypTree =>
0 commit comments