json.min.js 492 B

12345678
  1. /*! `json` grammar compiled for Highlight.js 11.7.0 */
  2. var hljsGrammar=(()=>{"use strict";return e=>{
  3. const a=["true","false","null"],r={scope:"literal",beginKeywords:a.join(" ")}
  4. ;return{name:"JSON",keywords:{literal:a},contains:[{className:"attr",
  5. begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},{match:/[{}[\],:]/,
  6. className:"punctuation",relevance:0
  7. },e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],
  8. illegal:"\\S"}}})();export default hljsGrammar;