Fix for KT-19134 IntelliJ Color Scheme editor - allow changing color of colons and double colons (#1314)

This commit is contained in:
Toshiaki Kameyama
2017-10-09 18:02:02 +09:00
committed by Dmitry Jemerov
parent d609579e55
commit 0bda2732e5
4 changed files with 9 additions and 0 deletions
@@ -65,6 +65,8 @@ options.kotlin.attribute.descriptor.string.escape=String//Escape in string and t
options.kotlin.attribute.descriptor.closure.braces=Braces and Operators//Lambda expression braces and arrow
options.kotlin.attribute.descriptor.safe.access=Braces and Operators//Safe access dot
options.kotlin.attribute.descriptor.arrow=Braces and Operators//Arrow
options.kotlin.attribute.descriptor.colon=Braces and Operators//Colon
options.kotlin.attribute.descriptor.double.colon=Braces and Operators//Double colon
options.kotlin.attribute.descriptor.kdoc.comment=Comments//KDoc//KDoc comment
options.kotlin.attribute.descriptor.kdoc.tag=Comments//KDoc//KDoc tag
options.kotlin.attribute.descriptor.kdoc.value=Comments//KDoc//Link in KDoc tag
@@ -70,6 +70,8 @@ public class KotlinHighlighter extends SyntaxHighlighterBase {
keys1.put(KtTokens.RBRACKET, KotlinHighlightingColors.BRACKETS);
keys1.put(KtTokens.COMMA, KotlinHighlightingColors.COMMA);
keys1.put(KtTokens.SEMICOLON, KotlinHighlightingColors.SEMICOLON);
keys1.put(KtTokens.COLON, KotlinHighlightingColors.COLON);
keys1.put(KtTokens.COLONCOLON, KotlinHighlightingColors.DOUBLE_COLON);
keys1.put(KtTokens.DOT, KotlinHighlightingColors.DOT);
keys1.put(KtTokens.ARROW, KotlinHighlightingColors.ARROW);
@@ -38,6 +38,8 @@ public class KotlinHighlightingColors {
public static final TextAttributesKey FUNCTION_LITERAL_BRACES_AND_ARROW = createTextAttributesKey("KOTLIN_FUNCTION_LITERAL_BRACES_AND_ARROW");
public static final TextAttributesKey COMMA = createTextAttributesKey("KOTLIN_COMMA", DefaultLanguageHighlighterColors.COMMA);
public static final TextAttributesKey SEMICOLON = createTextAttributesKey("KOTLIN_SEMICOLON", DefaultLanguageHighlighterColors.SEMICOLON);
public static final TextAttributesKey COLON = createTextAttributesKey("KOTLIN_COLON");
public static final TextAttributesKey DOUBLE_COLON = createTextAttributesKey("KOTLIN_DOUBLE_COLON");
public static final TextAttributesKey DOT = createTextAttributesKey("KOTLIN_DOT", DefaultLanguageHighlighterColors.DOT);
public static final TextAttributesKey SAFE_ACCESS = createTextAttributesKey("KOTLIN_SAFE_ACCESS", DefaultLanguageHighlighterColors.DOT);
public static final TextAttributesKey ARROW = createTextAttributesKey("KOTLIN_ARROW", PARENTHESIS);