Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java 14 switch expression keyword yield #3650

Merged
merged 3 commits into from
Oct 30, 2022

Conversation

MBoegers
Copy link
Contributor

@MBoegers MBoegers commented Oct 25, 2022

Java 14 introduced with JEP 361: Switch Expressions a new keyword yield.

Resolves #3647

Changes

yield is now a keyword, a new test for switches are added

Checklist

  • Added markup tests, see test/markup/java/switch.expect.txt
  • Updated the changelog at CHANGES.md

@MBoegers MBoegers mentioned this pull request Oct 25, 2022
2 tasks
src/languages/java.js Outdated Show resolved Hide resolved
@joshgoebel joshgoebel merged commit bc88ed5 into highlightjs:main Oct 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(java) switch expression keywords
2 participants