Skip to content

Java annotation default string value Highlighting is broken #63

@ErikBrendel

Description

@ErikBrendel

As can be seen on GitHub, for example here: https://github.com/junit-team/junit4/blob/r4.12/src/main/java/org/junit/runners/Parameterized.java#L192

After String name() default "{index}";, nearly everything is highlighted as being a string, which is false. The code in question is valid (see e.g. https://docs.oracle.com/javase/tutorial/java/annotations/declaring.html). It seems to me that the syntax highlighting rules for Java are wrong in this case. Can you have a look into that?

Image:
Screenshot_20211105-194251

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions