rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments

Home Page:https://rouge.jneen.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java lexer should support modern keywords

sbrannen opened this issue · 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