rouge
rouge copied to clipboard
Java lexer should support modern keywords
Name of the lexer
Java
Additional context
Keywords and features added since Java 5 should be supported by the Java lexer.
There may be more missing, but it appears support for the following needs to be added.
@interface: should be treated the same asclassandinterface- See
public @interface CsvToPersonexample in the JUnit 5 User Guide.
- See
enum: support exists but it should be treated the same asclass,interface, and@interfacesealedpermitsrecordyieldwhen