1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/json.js"],"names":["module","exports","hljs","LITERALS","literal","ALLOWED_COMMENTS","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","TYPES","QUOTE_STRING_MODE","C_NUMBER_MODE","VALUE_CONTAINER","end","endsWithParent","excludeEnd","contains","keywords","OBJECT","begin","className","BACKSLASH_ESCAPE","illegal","inherit","concat","ARRAY","push","forEach","rule"],"mappings":"oFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAW,CAACC,QAAS,mBACrBC,EAAmB,CACrBH,EAAKI,oBACLJ,EAAKK,sBAEHC,EAAQ,CACVN,EAAKO,kBACLP,EAAKQ,eAEHC,EAAkB,CACpBC,IAAK,IAAKC,gBAAgB,EAAMC,YAAY,EAC5CC,SAAUP,EACVQ,SAAUb,GAERc,EAAS,CACXC,MAAO,IAAKN,IAAK,IACjBG,SAAU,CACR,CACEI,UAAW,OACXD,MAAO,IAAKN,IAAK,IACjBG,SAAU,CAACb,EAAKkB,kBAChBC,QAAS,OAEXnB,EAAKoB,QAAQX,EAAiB,CAACO,MAAO,OACtCK,OAAOlB,GACTgB,QAAS,OAEPG,EAAQ,CACVN,MAAO,MAAON,IAAK,MACnBG,SAAU,CAACb,EAAKoB,QAAQX,IACxBU,QAAS,OAMX,OAJAb,EAAMiB,KAAKR,EAAQO,GACnBnB,EAAiBqB,SAAQ,SAASC,GAChCnB,EAAMiB,KAAKE,MAEN,CACLZ,SAAUP,EACVQ,SAAUb,EACVkB,QAAS","file":"highlight/json.js?v=c2c76af7b0216600a695","sourcesContent":["module.exports = function(hljs) {\n var LITERALS = {literal: 'true false null'};\n var ALLOWED_COMMENTS = [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ]\n var TYPES = [\n hljs.QUOTE_STRING_MODE,\n hljs.C_NUMBER_MODE\n ];\n var VALUE_CONTAINER = {\n end: ',', endsWithParent: true, excludeEnd: true,\n contains: TYPES,\n keywords: LITERALS\n };\n var OBJECT = {\n begin: '{', end: '}',\n contains: [\n {\n className: 'attr',\n begin: /\"/, end: /\"/,\n contains: [hljs.BACKSLASH_ESCAPE],\n illegal: '\\\\n',\n },\n hljs.inherit(VALUE_CONTAINER, {begin: /:/})\n ].concat(ALLOWED_COMMENTS),\n illegal: '\\\\S'\n };\n var ARRAY = {\n begin: '\\\\[', end: '\\\\]',\n contains: [hljs.inherit(VALUE_CONTAINER)], // inherit is a workaround for a bug that makes shared modes with endsWithParent compile only the ending of one of the parents\n illegal: '\\\\S'\n };\n TYPES.push(OBJECT, ARRAY);\n ALLOWED_COMMENTS.forEach(function(rule) {\n TYPES.push(rule)\n })\n return {\n contains: TYPES,\n keywords: LITERALS,\n illegal: '\\\\S'\n };\n};"],"sourceRoot":""}
|