Skip to content

Commit f035aab

Browse files
authoredOct 30, 2022
(java) add permits keyword (#3649)
1 parent abcb53d commit f035aab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
 

‎CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ Grammars:
1414
- fix(bash) recognize the `((` keyword [Nick Chambers][]
1515
- fix(nix) support escaped dollar signs in strings [h7x4][]
1616
- enh(cmake) support bracket comments [Hirse][]
17+
- enh(java) add permits keyword to java [MBoegers][]
1718

1819
[Josh Goebel]: https://github.com/joshgoebel
1920
[Josh Temple]: https://github.com/joshtemple
2021
[nathnolt]: https://github.com/nathnolt
2122
[Nick Chambers]: https://github.com/uplime
2223
[h7x4]: https://github.com/h7x4
2324
[Hirse]: https://github.com/Hirse
25+
[MBoegers]: https://github.com/MBoegers
2426

2527

2628
## Version 11.6.0

‎src/languages/java.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ export default function(hljs) {
7272
'requires',
7373
'exports',
7474
'do',
75-
'sealed'
75+
'sealed',
76+
'permits'
7677
];
7778

7879
const BUILT_INS = [

‎test/markup/java/titles.expect.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
}
1111

12-
<span class="hljs-keyword">sealed</span> <span class="hljs-keyword">interface</span> <span class="hljs-title class_">Command</span> permits LoginCommand {
12+
<span class="hljs-keyword">sealed</span> <span class="hljs-keyword">interface</span> <span class="hljs-title class_">Command</span> <span class="hljs-keyword">permits</span> LoginCommand {
1313
<span class="hljs-keyword">void</span> <span class="hljs-title function_">run</span><span class="hljs-params">()</span>;
1414
}
1515

0 commit comments

Comments
 (0)