1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-02-24 23:57:56 +01:00

6 lines
350 B
JavaScript
Raw Normal View History

2021-06-08 07:40:19 +02:00
hljs.registerLanguage("json",(()=>{"use strict";return e=>({name:"JSON",
contains:[{className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01
},{match:/[{}[\],:]/,className:"punctuation",relevance:0},e.QUOTE_STRING_MODE,{
beginKeywords:"true false null"
},e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"})
})());