Added settings for highlighting KDoc parts.

This commit is contained in:
Evgeny Gerashchenko
2012-03-29 21:42:01 +04:00
parent 7e4cfb5f3e
commit 537b2733dc
2 changed files with 18 additions and 0 deletions
@@ -119,6 +119,9 @@ public class JetColorSettingsPage implements ColorSettingsPage {
new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.line.comment"), JetHighlightingColors.LINE_COMMENT),
new AttributesDescriptor(OptionsBundle.message("options.java.attribute.descriptor.block.comment"), JetHighlightingColors.BLOCK_COMMENT),
new AttributesDescriptor("KDoc comment", JetHighlightingColors.DOC_COMMENT),
new AttributesDescriptor("KDoc tag", JetHighlightingColors.DOC_COMMENT_TAG),
new AttributesDescriptor("KDoc tag value", JetHighlightingColors.DOC_COMMENT_TAG_VALUE),
new AttributesDescriptor("KDoc markup", JetHighlightingColors.DOC_COMMENT_MARKUP),
new AttributesDescriptor("Wrapped into ref", JetHighlightingColors.WRAPPED_INTO_REF),
@@ -121,6 +121,21 @@ public class JetHighlightingColors {
SyntaxHighlighterColors.DOC_COMMENT.getDefaultAttributes()
);
public static final TextAttributesKey DOC_COMMENT_TAG = TextAttributesKey.createTextAttributesKey(
"KOTLIN_DOC_COMMENT_TAG",
SyntaxHighlighterColors.DOC_COMMENT_TAG.getDefaultAttributes()
);
public static final TextAttributesKey DOC_COMMENT_TAG_VALUE = TextAttributesKey.createTextAttributesKey(
"KOTLIN_DOC_COMMENT_TAG_VALUE",
CodeInsightColors.DOC_COMMENT_TAG_VALUE.getDefaultAttributes()
);
public static final TextAttributesKey DOC_COMMENT_MARKUP = TextAttributesKey.createTextAttributesKey(
"KOTLIN_DOC_COMMENT_MARKUP",
SyntaxHighlighterColors.DOC_COMMENT_MARKUP.getDefaultAttributes()
);
// TODO review: is it needed?
public static final TextAttributesKey WRAPPED_INTO_REF = TextAttributesKey.createTextAttributesKey(
"KOTLIN_WRAPPED_INTO_REF",