File tree 1 file changed +4
-4
lines changed
compiler/src/dotty/tools/dotc/printing 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import dotty.tools.dotc.util.SourceFile
15
15
object SyntaxHighlighting {
16
16
17
17
/** if true, log erroneous positions being highlighted */
18
- private final val debug = false
18
+ private final val debug = true
19
19
20
20
// Keep in sync with SyntaxHighlightingTests
21
21
val NoColor = Console .RESET
@@ -84,11 +84,11 @@ object SyntaxHighlighting {
84
84
highlightPosition(annotation.pos, AnnotationColor )
85
85
val color = if (tree.isInstanceOf [ValOrDefDef ]) ValDefColor else TypeColor
86
86
highlightPosition(tree.namePos, color)
87
- case tree : Ident if tree.isType =>
87
+ case tree : Ident if tree.isType =>
88
88
highlightPosition(tree.pos, TypeColor )
89
- case _ : TypTree =>
89
+ case _ : TypTree =>
90
90
highlightPosition(tree.pos, TypeColor )
91
- case _ : Literal =>
91
+ case _ : Literal =>
92
92
highlightPosition(tree.pos, LiteralColor )
93
93
case _ =>
94
94
}
You can’t perform that action at this time.
0 commit comments