Skip to content

Commit

Permalink
enh(java) Add goto keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinsjoy authored Jan 12, 2024
1 parent ab2a7fb commit 200c09c
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 @@ -26,6 +26,7 @@ Core Grammars:
- enh(swift) add package keyword [Bradley Mackey][]
- fix(swift) ensure keyword attributes highlight correctly [Bradley Mackey][]
- fix(types) fix interface LanguageDetail > keywords [Patrick Chiu]
- enh(java) add `goto` to be recognized as a keyword in Java [Alvin Joy][]

New Grammars:

Expand Down Expand Up @@ -59,6 +60,7 @@ Themes:
[CY Fung]: https://github.com/cyfung1031
[Vitaly Barilko]: https://github.com/Diversus23
[Patrick Chiu]: https://github.com/patrick-kw-chiu
[Alvin Joy]: https://github.com/alvinsjoy


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

const BUILT_INS = [
Expand Down

0 comments on commit 200c09c

Please sign in to comment.