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 88bdbd4 commit 9c85db2Copy full SHA for 9c85db2
compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala
@@ -402,6 +402,8 @@ object SyntaxHighlighting {
402
val treeHighlighter = new UntypedTreeTraverser {
403
def traverse(tree: Tree)(implicit ctx: Context): Unit = {
404
tree match {
405
+ case id: Ident if id.isType =>
406
+ highlightPosition(id.pos, TypeColor)
407
case tpe : TypeDef =>
408
highlightPosition(tpe.namePos, TypeColor)
409
case _ : TypTree =>
0 commit comments