Skip to content

Commit bc9dfb9

Browse files
authored
enh(java) add when keyword (#4084)
* Update CHANGES.md * add when as a java keyword
1 parent 9267f50 commit bc9dfb9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Core Grammars:
8282
- enh(css) add `select`, `option`, `optgroup`, `picture` and `source` to list of known tags [Vasily Polovnyov][]
8383
- enh(css) add `inset`, `inset-*`, `border-start-*-radius` and `border-end-*-radius` attributes [Vasily Polovnyov][]
8484
- enh(css) add `text-decoration-skip-ink`, `text-decoration-thickness` and `text-underline-offset` attributes [Vasily Polovnyov][]
85+
- enh(java) add `when` to be recognized as a keyword in Java [Chiel van de Steeg][]
8586

8687
New Grammars:
8788

@@ -140,6 +141,7 @@ Themes:
140141
[Julien Bloino]: https://github.com/jbloino
141142
[Sierra]: https://github.com/casuallyblue
142143
[Vlad Dimov]: https://github.com/DevDimov
144+
[Chiel van de Steeg]: https://github.com/cvdsteeg
143145

144146

145147

src/languages/java.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export default function(hljs) {
7575
'sealed',
7676
'yield',
7777
'permits',
78-
'goto'
78+
'goto',
79+
'when'
7980
];
8081

8182
const BUILT_INS = [

0 commit comments

Comments
 (0)