Skip to content

Commit 7045c43

Browse files
committed
Prove semantic tokens for bools and null
1 parent a242db5 commit 7045c43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/kotlin/org/javacs/kt/semantictokens/SemanticTokens.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ private fun elementToken(element: PsiElement, bindingContext: BindingContext): S
170170
val tokenType = when (element.type) {
171171
PsiType.INT, PsiType.LONG, PsiType.DOUBLE -> SemanticTokenType.NUMBER
172172
PsiType.CHAR -> SemanticTokenType.STRING
173+
PsiType.BOOLEAN, PsiType.NULL -> SemanticTokenType.KEYWORD
173174
else -> return null
174175
}
175176
SemanticToken(elementRange, tokenType)

0 commit comments

Comments
 (0)