Tweak color attrib configs a bit

This commit is contained in:
FalsePattern 2023-07-29 13:22:07 +02:00
parent 69a58746da
commit dff51b51aa
Signed by: falsepattern
GPG key ID: FDF7126A9E124447
2 changed files with 21 additions and 16 deletions

View file

@ -43,7 +43,7 @@ public enum ZigAttributes {
Operator(OPERATION_SIGN),
Builtin(STATIC_METHOD),
Label(LABEL),
KeywordLiteral(KEYWORD),
KeywordLiteral(Keyword.KEY),
Namespace(CLASS_NAME),
Struct(CLASS_NAME);
public final TextAttributesKey KEY;

View file

@ -31,21 +31,26 @@ import java.util.Map;
public class ZigColorSettingsPage implements ColorSettingsPage {
private static final AttributesDescriptor[] DESCRIPTORS =
new AttributesDescriptor[]{new AttributesDescriptor("Type", ZigAttributes.Type.KEY),
new AttributesDescriptor("Parameter", ZigAttributes.Parameter.KEY),
new AttributesDescriptor("Variable", ZigAttributes.Variable.KEY),
new AttributesDescriptor[]{
new AttributesDescriptor("Builtin", ZigAttributes.Builtin.KEY),
new AttributesDescriptor("Comment", ZigAttributes.Comment.KEY),
new AttributesDescriptor("Enum", ZigAttributes.Enum.KEY),
new AttributesDescriptor("Enum member", ZigAttributes.EnumMember.KEY),
new AttributesDescriptor("Field", ZigAttributes.Field.KEY),
new AttributesDescriptor("Error tag", ZigAttributes.ErrorTag.KEY),
new AttributesDescriptor("Field", ZigAttributes.Field.KEY),
new AttributesDescriptor("Function", ZigAttributes.Function.KEY),
new AttributesDescriptor("Keyword//Regular", ZigAttributes.Keyword.KEY),
new AttributesDescriptor("Keyword//Literal", ZigAttributes.KeywordLiteral.KEY),
new AttributesDescriptor("Comment", ZigAttributes.Comment.KEY),
new AttributesDescriptor("String", ZigAttributes.String.KEY),
new AttributesDescriptor("Label", ZigAttributes.Label.KEY),
new AttributesDescriptor("Namespace", ZigAttributes.Namespace.KEY),
new AttributesDescriptor("Number", ZigAttributes.Number.KEY),
new AttributesDescriptor("Operator", ZigAttributes.Operator.KEY),
new AttributesDescriptor("Builtin", ZigAttributes.Builtin.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
@Override