java.tmbundle icon indicating copy to clipboard operation
java.tmbundle copied to clipboard

Java enum with values coloring is off

Open aeschli opened this issue 10 years ago • 0 comments

From @Matthijs-Wessels on December 22, 2015 23:24

The coloring of java enums if off when you add values. The strings in the below example will be colored as if it's code (i.e. 'Banana', 'Apple', 'Co' and 'Nut' are blue; and 'co' is white

public enum Fuit {
    Banana ("Banana"),
    Apple ("Apple"),
    Coconut ("Co co Nut");

    public final String text;

    private Option(final String text) {
        this.text = text;
    }
}

Copied from original issue: Microsoft/vscode#1594

aeschli avatar Jan 11 '16 15:01 aeschli