Commit 9a4372c 1 parent d30116e commit 9a4372c Copy full SHA for 9a4372c
File tree 1 file changed +6
-3
lines changed
src/main/kotlin/com/github/dinbtechit/vscodetheme/annotators
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.github.dinbtechit.vscodetheme.annotators
3
3
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors
4
4
import com.intellij.openapi.editor.colors.TextAttributesKey
5
5
import com.intellij.psi.PsiElement
6
+ import com.intellij.psi.PsiKeyword
6
7
import com.intellij.psi.PsiTypeElement
7
8
import com.intellij.util.ObjectUtils
8
9
@@ -31,9 +32,11 @@ class JavaAnnotator : BaseAnnotator() {
31
32
else -> {}
32
33
}
33
34
34
- when (element.parent) {
35
- is PsiTypeElement -> type = TYPE_KEYWORD
36
- else -> {}
35
+ if (element !is PsiKeyword ) {
36
+ when (element.parent) {
37
+ is PsiTypeElement -> type = TYPE_KEYWORD
38
+ else -> {}
39
+ }
37
40
}
38
41
39
42
return type
You can’t perform that action at this time.
0 commit comments