@@ -14,15 +14,13 @@ public class ExpressionLanguageSyntaxHighlighter extends SyntaxHighlighterBase {
14
14
15
15
public static final TextAttributesKey NUMBER = createTextAttributesKey ("NUMBER" , DefaultLanguageHighlighterColors .NUMBER );
16
16
public static final TextAttributesKey STRING = createTextAttributesKey ("STRING" , DefaultLanguageHighlighterColors .STRING );
17
- public static final TextAttributesKey ID = createTextAttributesKey ("ID" , DefaultLanguageHighlighterColors .IDENTIFIER );
18
17
public static final TextAttributesKey IDENTIFIER = createTextAttributesKey ("IDENTIFIER" , DefaultLanguageHighlighterColors .IDENTIFIER );
19
- public static final TextAttributesKey FUNCTION_CALL = createTextAttributesKey ("FUNCTION_CALL " , DefaultLanguageHighlighterColors .FUNCTION_CALL );
18
+ public static final TextAttributesKey KEYWORD = createTextAttributesKey ("KEYWORD " , DefaultLanguageHighlighterColors .KEYWORD );
20
19
21
20
private static final TextAttributesKey [] NUMBER_KEYS = new TextAttributesKey []{NUMBER };
22
21
private static final TextAttributesKey [] STRING_KEYS = new TextAttributesKey []{STRING };
23
- private static final TextAttributesKey [] ID_KEYS = new TextAttributesKey []{ID };
24
22
private static final TextAttributesKey [] IDENTIFIER_KEYS = new TextAttributesKey []{IDENTIFIER };
25
- private static final TextAttributesKey [] FUNCTION_CALL_KEYS = new TextAttributesKey []{FUNCTION_CALL };
23
+ private static final TextAttributesKey [] KEYWORD_KEYS = new TextAttributesKey []{KEYWORD };
26
24
private static final TextAttributesKey [] EMPTY_KEYS = new TextAttributesKey [0 ];
27
25
28
26
@ NotNull
@@ -39,13 +37,21 @@ public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
39
37
} else if (tokenType .equals (ExpressionLanguageTypes .STRING )) {
40
38
return STRING_KEYS ;
41
39
} else if (tokenType .equals (ExpressionLanguageTypes .ID )) {
42
- return ID_KEYS ;
43
- } else if (tokenType .equals (ExpressionLanguageTypes .IDENTIFIER )) {
44
40
return IDENTIFIER_KEYS ;
45
- } else if (tokenType .equals (ExpressionLanguageTypes .CALL_EXPR )) {
46
- return FUNCTION_CALL_KEYS ;
47
- } else {
48
- return EMPTY_KEYS ;
41
+ } else if (tokenType .equals (ExpressionLanguageTypes .TRUE )) {
42
+ return KEYWORD_KEYS ;
43
+ } else if (tokenType .equals (ExpressionLanguageTypes .FALSE )) {
44
+ return KEYWORD_KEYS ;
45
+ } else if (tokenType .equals (ExpressionLanguageTypes .NULL )) {
46
+ return KEYWORD_KEYS ;
47
+ } else if (tokenType .equals (ExpressionLanguageTypes .OP_IN )) {
48
+ return KEYWORD_KEYS ;
49
+ } else if (tokenType .equals (ExpressionLanguageTypes .OP_NOT_IN )) {
50
+ return KEYWORD_KEYS ;
51
+ } else if (tokenType .equals (ExpressionLanguageTypes .OP_MATCHES )) {
52
+ return KEYWORD_KEYS ;
49
53
}
54
+
55
+ return EMPTY_KEYS ;
50
56
}
51
57
}
0 commit comments