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
17
17
object SyntaxHighlighting {
18
18
19
19
/** if true, log erroneous positions being highlighted */
20
- private final val debug = false
20
+ private final val debug = true
21
21
22
22
// Keep in sync with SyntaxHighlightingTests
23
23
val NoColor = Console .RESET
@@ -85,11 +85,11 @@ object SyntaxHighlighting {
85
85
highlightPosition(annotation.pos, AnnotationColor )
86
86
val color = if (tree.isInstanceOf [ValOrDefDef ]) ValDefColor else TypeColor
87
87
highlightPosition(tree.namePos, color)
88
- case tree : Ident if tree.isType =>
88
+ case tree : Ident if tree.isType =>
89
89
highlightPosition(tree.pos, TypeColor )
90
- case _ : TypTree =>
90
+ case _ : TypTree =>
91
91
highlightPosition(tree.pos, TypeColor )
92
- case _ : Literal =>
92
+ case _ : Literal =>
93
93
highlightPosition(tree.pos, LiteralColor )
94
94
case _ =>
95
95
}
You can’t perform that action at this time.
0 commit comments