File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import java.util.Arrays
1717object SyntaxHighlighting {
1818
1919 /** if true, log erroneous positions being highlighted */
20- private final val debug = false
20+ private final val debug = true
2121
2222 // Keep in sync with SyntaxHighlightingTests
2323 val NoColor = Console .RESET
@@ -85,11 +85,11 @@ object SyntaxHighlighting {
8585 highlightPosition(annotation.pos, AnnotationColor )
8686 val color = if (tree.isInstanceOf [ValOrDefDef ]) ValDefColor else TypeColor
8787 highlightPosition(tree.namePos, color)
88- case tree : Ident if tree.isType =>
88+ case tree : Ident if tree.isType =>
8989 highlightPosition(tree.pos, TypeColor )
90- case _ : TypTree =>
90+ case _ : TypTree =>
9191 highlightPosition(tree.pos, TypeColor )
92- case _ : Literal =>
92+ case _ : Literal =>
9393 highlightPosition(tree.pos, LiteralColor )
9494 case _ =>
9595 }
You can’t perform that action at this time.
0 commit comments