@@ -14,15 +14,13 @@ public class ExpressionLanguageSyntaxHighlighter extends SyntaxHighlighterBase {
1414
1515 public static final TextAttributesKey NUMBER = createTextAttributesKey ("NUMBER" , DefaultLanguageHighlighterColors .NUMBER );
1616 public static final TextAttributesKey STRING = createTextAttributesKey ("STRING" , DefaultLanguageHighlighterColors .STRING );
17- public static final TextAttributesKey ID = createTextAttributesKey ("ID" , DefaultLanguageHighlighterColors .IDENTIFIER );
1817 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 );
2019
2120 private static final TextAttributesKey [] NUMBER_KEYS = new TextAttributesKey []{NUMBER };
2221 private static final TextAttributesKey [] STRING_KEYS = new TextAttributesKey []{STRING };
23- private static final TextAttributesKey [] ID_KEYS = new TextAttributesKey []{ID };
2422 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 };
2624 private static final TextAttributesKey [] EMPTY_KEYS = new TextAttributesKey [0 ];
2725
2826 @ NotNull
@@ -39,13 +37,21 @@ public TextAttributesKey[] getTokenHighlights(IElementType tokenType) {
3937 } else if (tokenType .equals (ExpressionLanguageTypes .STRING )) {
4038 return STRING_KEYS ;
4139 } else if (tokenType .equals (ExpressionLanguageTypes .ID )) {
42- return ID_KEYS ;
43- } else if (tokenType .equals (ExpressionLanguageTypes .IDENTIFIER )) {
4440 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 ;
4953 }
54+
55+ return EMPTY_KEYS ;
5056 }
5157}
0 commit comments