Java: Add new keywords
bobbylight opened this issue · comments
Add syntax highlighting for contextual keywords added in more recent versions of Java. Note these are all contextual, but it's probably save to just always highlight them as keywords since our lexers don't have semantic information, and it's probably rare to see these keywords used as say variable names anyway:
- sealed
- non-sealed
- var
- yield
- record
Other, module-specific keywords are less important since they aren't seen in code.
See: https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.9
I have already done this, on my side around two months ago, if you haven't done this yet!
Then, I can open a pull request.
But you also need to add the Text Blocks part...