File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/dotty/tools/dotc/printing Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ object SyntaxHighlighting {
38
38
private def typeDef (str : String ) = TypeColor + str + NoColor
39
39
private def literal (str : String ) = LiteralColor + str + NoColor
40
40
private def valDef (str : String ) = ValDefColor + str + NoColor
41
+ private def operator (str : String ) = TypeColor + str + NoColor
41
42
private def annotation (str : String ) =
42
43
if (str.trim == " @" ) str else AnnotationColor + str + NoColor
43
44
private val tripleQs = Console .RED_B + " ???" + NoColor
@@ -113,13 +114,13 @@ object SyntaxHighlighting {
113
114
}
114
115
} else newBuf += '/'
115
116
case '=' =>
116
- append('=' , _ == " =>" , keyword )
117
+ append('=' , _ == " =>" , operator )
117
118
case '<' =>
118
- append('<' , { x => x == " <-" || x == " <:" || x == " <%" }, keyword )
119
+ append('<' , { x => x == " <-" || x == " <:" || x == " <%" }, operator )
119
120
case '>' =>
120
- append('>' , { x => x == " >:" }, keyword )
121
+ append('>' , { x => x == " >:" }, operator )
121
122
case '#' =>
122
- if (prev != ' ' && prev != '.' ) newBuf append keyword (" #" )
123
+ if (prev != ' ' && prev != '.' ) newBuf append operator (" #" )
123
124
else newBuf += n
124
125
prev = '#'
125
126
case '@' =>
You can’t perform that action at this time.
0 commit comments