summaryrefslogtreecommitdiff
path: root/pyssg.xyz/live/static/hl/languages/json.min.js
diff options
context:
space:
mode:
Diffstat (limited to 'pyssg.xyz/live/static/hl/languages/json.min.js')
-rw-r--r--pyssg.xyz/live/static/hl/languages/json.min.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/pyssg.xyz/live/static/hl/languages/json.min.js b/pyssg.xyz/live/static/hl/languages/json.min.js
new file mode 100644
index 0000000..7b97716
--- /dev/null
+++ b/pyssg.xyz/live/static/hl/languages/json.min.js
@@ -0,0 +1,9 @@
+hljs.registerLanguage("json",(()=>{"use strict";return n=>{const e={
+literal:"true false null"
+},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],a=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],l={
+end:",",endsWithParent:!0,excludeEnd:!0,contains:a,keywords:e},t={begin:/\{/,
+end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,
+contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(l,{begin:/:/
+})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(l)],
+illegal:"\\S"};return a.push(t,s),i.forEach((n=>{a.push(n)})),{name:"JSON",
+contains:a,keywords:e,illegal:"\\S"}}})()); \ No newline at end of file