Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
All new code requires tests to ensure against regressions
Description of the Change
This PR adds support for JDK 13+ keywords:
yield
sealed
permits
yield keyword is similar to return, so it is handled as "keyword.control.java". sealed and permits are only for classes and interfaces: sealed keyword is a "storage.modifier.java" and permits is handled similar to extends and implements keywords.
Alternate Designs
No alternative designs were considered.
Benefits
Fixes highlighting of the aforementioned keywords.
Possible Drawbacks
Might potentially break class extends and implements scopes, but that would have to be a corner case not handled by unit tests.
Requirements
Description of the Change
This PR adds support for JDK 13+ keywords:
yield
sealed
permits
yield
keyword is similar toreturn
, so it is handled as "keyword.control.java".sealed
andpermits
are only for classes and interfaces:sealed
keyword is a "storage.modifier.java" andpermits
is handled similar toextends
andimplements
keywords.Alternate Designs
No alternative designs were considered.
Benefits
Fixes highlighting of the aforementioned keywords.
Possible Drawbacks
Might potentially break class
extends
andimplements
scopes, but that would have to be a corner case not handled by unit tests.Applicable Issues
Fixes #230 Fixes #232