mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore my version of the colors
This commit is contained in:
@@ -19,15 +19,12 @@ package com.jetbrains.rest;
|
||||
import com.google.common.collect.Maps;
|
||||
import com.intellij.lexer.Lexer;
|
||||
import com.intellij.openapi.editor.DefaultLanguageHighlighterColors;
|
||||
import com.intellij.openapi.editor.SyntaxHighlighterColors;
|
||||
import com.intellij.openapi.editor.colors.TextAttributesKey;
|
||||
import com.intellij.openapi.editor.markup.TextAttributes;
|
||||
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import com.jetbrains.rest.lexer.RestFlexLexer;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -46,20 +43,20 @@ public class RestSyntaxHighlighter extends SyntaxHighlighterBase implements Rest
|
||||
|
||||
public static final TextAttributesKey REST_BOLD = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.BOLD",
|
||||
new TextAttributes(Color.black, null, null, null, Font.BOLD)
|
||||
DefaultLanguageHighlighterColors.IDENTIFIER
|
||||
);
|
||||
public static final TextAttributesKey REST_ITALIC = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.ITALIC",
|
||||
new TextAttributes(Color.black, null, null, null, Font.ITALIC)
|
||||
DefaultLanguageHighlighterColors.IDENTIFIER
|
||||
);
|
||||
public static final TextAttributesKey REST_FIXED = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.FIXED",
|
||||
new TextAttributes(Color.black, new Color(217, 217, 240), null, null, Font.PLAIN)
|
||||
DefaultLanguageHighlighterColors.IDENTIFIER
|
||||
);
|
||||
|
||||
public static final TextAttributesKey REST_INTERPRETED = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.INTERPRETED",
|
||||
DefaultLanguageHighlighterColors.TEMPLATE_LANGUAGE_COLOR
|
||||
DefaultLanguageHighlighterColors.IDENTIFIER
|
||||
);
|
||||
|
||||
public static final TextAttributesKey REST_REF_NAME = TextAttributesKey.createTextAttributesKey(
|
||||
@@ -73,12 +70,12 @@ public class RestSyntaxHighlighter extends SyntaxHighlighterBase implements Rest
|
||||
);
|
||||
public static final TextAttributesKey REST_FIELD = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.FIELD",
|
||||
DefaultLanguageHighlighterColors.INSTANCE_FIELD
|
||||
DefaultLanguageHighlighterColors.KEYWORD
|
||||
);
|
||||
|
||||
public static final TextAttributesKey REST_INLINE = TextAttributesKey.createTextAttributesKey(
|
||||
"REST.INLINE",
|
||||
new TextAttributes(null, new Color(237, 252, 237), null, null, Font.PLAIN)
|
||||
DefaultLanguageHighlighterColors.IDENTIFIER
|
||||
);
|
||||
private static final Map<IElementType, TextAttributesKey> ATTRIBUTES = Maps.newHashMap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user