-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson.min.js
30 lines (30 loc) · 950 Bytes
/
json.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*! `json` grammar compiled for Highlight.js 11.7.0 */
(() => {
var e = (() => {
"use strict";
return e => {
const a = ["true", "false", "null"],
n = {
scope: "literal",
beginKeywords: a.join(" ")
};
return {
name: "JSON",
keywords: {
literal: a
},
contains: [{
className: "attr",
begin: /"(\\.|[^\\"\r\n])*"(?=\s*:)/,
relevance: 1.01
}, {
match: /[{}[\],:]/,
className: "punctuation",
relevance: 0
}, e.QUOTE_STRING_MODE, n, e.C_NUMBER_MODE, e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE],
illegal: "\\S"
}
}
})();
hljs.registerLanguage("json", e)
})();