From 537b2733dcb981838619b7dd878187579dab1539 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Thu, 29 Mar 2012 21:42:01 +0400 Subject: [PATCH] Added settings for highlighting KDoc parts. --- .../plugin/highlighter/JetColorSettingsPage.java | 3 +++ .../plugin/highlighter/JetHighlightingColors.java | 15 +++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/JetColorSettingsPage.java b/idea/src/org/jetbrains/jet/plugin/highlighter/JetColorSettingsPage.java index 3e7ac7a0088..5b7ed79569f 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/JetColorSettingsPage.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/JetColorSettingsPage.java @@ -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), diff --git a/idea/src/org/jetbrains/jet/plugin/highlighter/JetHighlightingColors.java b/idea/src/org/jetbrains/jet/plugin/highlighter/JetHighlightingColors.java index 34030dad8cd..26377385413 100644 --- a/idea/src/org/jetbrains/jet/plugin/highlighter/JetHighlightingColors.java +++ b/idea/src/org/jetbrains/jet/plugin/highlighter/JetHighlightingColors.java @@ -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",