Tweak color attrib configs a bit
This commit is contained in:
parent
69a58746da
commit
dff51b51aa
2 changed files with 21 additions and 16 deletions
|
@ -43,7 +43,7 @@ public enum ZigAttributes {
|
||||||
Operator(OPERATION_SIGN),
|
Operator(OPERATION_SIGN),
|
||||||
Builtin(STATIC_METHOD),
|
Builtin(STATIC_METHOD),
|
||||||
Label(LABEL),
|
Label(LABEL),
|
||||||
KeywordLiteral(KEYWORD),
|
KeywordLiteral(Keyword.KEY),
|
||||||
Namespace(CLASS_NAME),
|
Namespace(CLASS_NAME),
|
||||||
Struct(CLASS_NAME);
|
Struct(CLASS_NAME);
|
||||||
public final TextAttributesKey KEY;
|
public final TextAttributesKey KEY;
|
||||||
|
|
|
@ -31,21 +31,26 @@ import java.util.Map;
|
||||||
public class ZigColorSettingsPage implements ColorSettingsPage {
|
public class ZigColorSettingsPage implements ColorSettingsPage {
|
||||||
|
|
||||||
private static final AttributesDescriptor[] DESCRIPTORS =
|
private static final AttributesDescriptor[] DESCRIPTORS =
|
||||||
new AttributesDescriptor[]{new AttributesDescriptor("Type", ZigAttributes.Type.KEY),
|
new AttributesDescriptor[]{
|
||||||
new AttributesDescriptor("Parameter", ZigAttributes.Parameter.KEY),
|
new AttributesDescriptor("Builtin", ZigAttributes.Builtin.KEY),
|
||||||
new AttributesDescriptor("Variable", ZigAttributes.Variable.KEY),
|
new AttributesDescriptor("Comment", ZigAttributes.Comment.KEY),
|
||||||
new AttributesDescriptor("Enum member", ZigAttributes.EnumMember.KEY),
|
new AttributesDescriptor("Enum", ZigAttributes.Enum.KEY),
|
||||||
new AttributesDescriptor("Field", ZigAttributes.Field.KEY),
|
new AttributesDescriptor("Enum member", ZigAttributes.EnumMember.KEY),
|
||||||
new AttributesDescriptor("Error tag", ZigAttributes.ErrorTag.KEY),
|
new AttributesDescriptor("Error tag", ZigAttributes.ErrorTag.KEY),
|
||||||
new AttributesDescriptor("Function", ZigAttributes.Function.KEY),
|
new AttributesDescriptor("Field", ZigAttributes.Field.KEY),
|
||||||
new AttributesDescriptor("Keyword//Regular", ZigAttributes.Keyword.KEY),
|
new AttributesDescriptor("Function", ZigAttributes.Function.KEY),
|
||||||
new AttributesDescriptor("Keyword//Literal", ZigAttributes.KeywordLiteral.KEY),
|
new AttributesDescriptor("Keyword//Regular", ZigAttributes.Keyword.KEY),
|
||||||
new AttributesDescriptor("Comment", ZigAttributes.Comment.KEY),
|
new AttributesDescriptor("Keyword//Literal", ZigAttributes.KeywordLiteral.KEY),
|
||||||
new AttributesDescriptor("String", ZigAttributes.String.KEY),
|
new AttributesDescriptor("Label", ZigAttributes.Label.KEY),
|
||||||
new AttributesDescriptor("Number", ZigAttributes.Number.KEY),
|
new AttributesDescriptor("Namespace", ZigAttributes.Namespace.KEY),
|
||||||
new AttributesDescriptor("Operator", ZigAttributes.Operator.KEY),
|
new AttributesDescriptor("Number", ZigAttributes.Number.KEY),
|
||||||
new AttributesDescriptor("Builtin", ZigAttributes.Builtin.KEY),
|
new AttributesDescriptor("Operator", ZigAttributes.Operator.KEY),
|
||||||
new AttributesDescriptor("Label", ZigAttributes.Label.KEY),};
|
new AttributesDescriptor("Parameter", ZigAttributes.Parameter.KEY),
|
||||||
|
new AttributesDescriptor("String", ZigAttributes.String.KEY),
|
||||||
|
new AttributesDescriptor("Struct", ZigAttributes.Struct.KEY),
|
||||||
|
new AttributesDescriptor("Type", ZigAttributes.Type.KEY),
|
||||||
|
new AttributesDescriptor("Variable", ZigAttributes.Variable.KEY),
|
||||||
|
};
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue