rouge icon indicating copy to clipboard operation
rouge copied to clipboard

Java lexer should support modern keywords

Open sbrannen opened this issue 2 years ago • 0 comments

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 as class and interface
  • enum: support exists but it should be treated the same as class, interface, and @interface
  • sealed
  • permits
  • record
  • yield
  • when

sbrannen avatar May 07 '23 14:05 sbrannen