File tree Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Expand file tree Collapse file tree 4 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ Grammars:
14
14
- fix(cpp) fix ` xor_eq ` keyword highlighting. [ Denis Kovalchuk] [ ]
15
15
- enh(c,cpp) highlight type modifiers as type (#3316 ) [ Josh Goebel] [ ]
16
16
- enh(css/less/stylus/scss) add support for CSS Grid properties [ monochromer] [ ]
17
+ - enh(java) add support for Java Text Block (#3322 ) [ Teletha] [ ]
17
18
- enh(scala) add missing ` do ` and ` then ` keyword (#3323 ) [ Nicolas Stucki] [ ]
18
19
19
20
[ Austin Schick ] : https://github.com/austin-schick
20
21
[ Josh Goebel ] : https://github.com/joshgoebel
21
22
[ Denis Kovalchuk ] : https://github.com/deniskovalchuk
22
23
[ monochromer ] : https://github.com/monochromer
24
+ [ Teletha ] : https://github.com/teletha
23
25
[ Nicolas Stucki ] : https://github.com/nicolasstucki
24
26
25
27
Original file line number Diff line number Diff line change @@ -160,6 +160,12 @@ export default function(hljs) {
160
160
} ,
161
161
hljs . C_LINE_COMMENT_MODE ,
162
162
hljs . C_BLOCK_COMMENT_MODE ,
163
+ {
164
+ begin : / " " " / ,
165
+ end : / " " " / ,
166
+ className : "string" ,
167
+ contains : [ hljs . BACKSLASH_ESCAPE ]
168
+ } ,
163
169
hljs . APOS_STRING_MODE ,
164
170
hljs . QUOTE_STRING_MODE ,
165
171
{
Original file line number Diff line number Diff line change
1
+ <span class="hljs-type">String</span> <span class="hljs-variable">json</span> <span class="hljs-operator">=</span> <span class="hljs-string">"""
2
+ {
3
+ "key": "value"
4
+ }
5
+ """</span>;
Original file line number Diff line number Diff line change
1
+ String json = """
2
+ {
3
+ "key": "value"
4
+ }
5
+ """;
You can’t perform that action at this time.
0 commit comments