Skip to content

Commit

Permalink
enh(java) add when keyword (#4084)
Browse files Browse the repository at this point in the history
* Update CHANGES.md

* add when as a java keyword
  • Loading branch information
cvdsteeg committed Jul 28, 2024
1 parent 9267f50 commit bc9dfb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Core Grammars:
- enh(css) add `select`, `option`, `optgroup`, `picture` and `source` to list of known tags [Vasily Polovnyov][]
- enh(css) add `inset`, `inset-*`, `border-start-*-radius` and `border-end-*-radius` attributes [Vasily Polovnyov][]
- enh(css) add `text-decoration-skip-ink`, `text-decoration-thickness` and `text-underline-offset` attributes [Vasily Polovnyov][]
- enh(java) add `when` to be recognized as a keyword in Java [Chiel van de Steeg][]

New Grammars:

Expand Down Expand Up @@ -140,6 +141,7 @@ Themes:
[Julien Bloino]: https://github.com/jbloino
[Sierra]: https://github.com/casuallyblue
[Vlad Dimov]: https://github.com/DevDimov
[Chiel van de Steeg]: https://github.com/cvdsteeg



Expand Down
3 changes: 2 additions & 1 deletion src/languages/java.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ export default function(hljs) {
'sealed',
'yield',
'permits',
'goto'
'goto',
'when'
];

const BUILT_INS = [
Expand Down

0 comments on commit bc9dfb9

Please sign in to comment.