atom/language-java

Inner annotation class not tokenized after some modifiers

Closed this issue · 2 comments

What looks like now:

image

What should look like:

image

class A {

    @interface Annotation1 {
        String value() default "Annotaion1";
    }

    static @interface Annotation1 {
        String value() default "Annotaion1";
    }

    public @interface Annotation2 {
        String value() default "Annotaion2";
    }

    public static @interface Annotation3 {
        String value() default "Annotaion3";
    }
}

A straight fix is to change this line to 'end': '(?=\\=|;|@interface)',.

Okay, I will have a look. Thanks!

Fixed.