File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/PowerShellEditorServices/Services/TextDocument/Handlers Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,11 @@ private static SemanticTokenType MapSemanticTokenType(Token token)
108
108
return SemanticTokenType . Operator ;
109
109
}
110
110
111
+ if ( ( token . TokenFlags & TokenFlags . AttributeName ) != 0 )
112
+ {
113
+ return SemanticTokenType . Decorator ;
114
+ }
115
+
111
116
if ( ( token . TokenFlags & TokenFlags . TypeName ) != 0 )
112
117
{
113
118
return SemanticTokenType . Type ;
@@ -142,8 +147,8 @@ private static SemanticTokenType MapSemanticTokenType(Token token)
142
147
case TokenKind . Number :
143
148
return SemanticTokenType . Number ;
144
149
145
- case TokenKind . Generic :
146
- return SemanticTokenType . Function ;
150
+ case TokenKind . Label :
151
+ return SemanticTokenType . Label ;
147
152
}
148
153
149
154
return null ;
You can’t perform that action at this time.
0 commit comments