Skip to content

Commit d9c666f

Browse files
committed
end marker now has same color as definition in repl
1 parent d0f9989 commit d9c666f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/src/dotty/tools/dotc/printing/SyntaxHighlighting.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ object SyntaxHighlighting {
107107
case tree: ValOrDefDef =>
108108
highlightAnnotations(tree)
109109
highlightPosition(tree.nameSpan, ValDefColor)
110+
highlightPosition(tree.endSpan, ValDefColor)
110111
case tree: MemberDef /* ModuleDef | TypeDef */ =>
111112
highlightAnnotations(tree)
112113
highlightPosition(tree.nameSpan, TypeColor)
114+
highlightPosition(tree.endSpan, TypeColor)
113115
case tree: Ident if tree.isType =>
114116
highlightPosition(tree.span, TypeColor)
115117
case _: TypeTree =>

0 commit comments

Comments
 (0)