1
|
{"version":3,"file":"highlight/json.js?v=d4602e1a371f45adbb11","mappings":"sFA8DAA,EAAOC,QAtDP,SAAcC,GACZ,MAAMC,EAAW,CACfC,QAAS,mBAELC,EAAmB,CACvBH,EAAKI,oBACLJ,EAAKK,sBAEDC,EAAQ,CACZN,EAAKO,kBACLP,EAAKQ,eAEDC,EAAkB,CACtBC,IAAK,IACLC,gBAAgB,EAChBC,YAAY,EACZC,SAAUP,EACVQ,SAAUb,GAENc,EAAS,CACbC,MAAO,KACPN,IAAK,KACLG,SAAU,CACR,CACEI,UAAW,OACXD,MAAO,IACPN,IAAK,IACLG,SAAU,CAACb,EAAKkB,kBAChBC,QAAS,OAEXnB,EAAKoB,QAAQX,EAAiB,CAC5BO,MAAO,OAETK,OAAOlB,GACTgB,QAAS,OAELG,EAAQ,CACZN,MAAO,MACPN,IAAK,MACLG,SAAU,CAACb,EAAKoB,QAAQX,IACxBU,QAAS,OAMX,OAJAb,EAAMiB,KAAKR,EAAQO,GACnBnB,EAAiBqB,SAAQ,SAASC,GAChCnB,EAAMiB,KAAKE,MAEN,CACLC,KAAM,OACNb,SAAUP,EACVQ,SAAUb,EACVkB,QAAS","sources":["webpack:///text/node_modules/highlight.js/lib/languages/json.js"],"sourcesContent":["/*\nLanguage: JSON\nDescription: JSON (JavaScript Object Notation) is a lightweight data-interchange format.\nAuthor: Ivan Sagalaev <maniac@softwaremaniacs.org>\nWebsite: http://www.json.org\nCategory: common, protocols\n*/\n\nfunction json(hljs) {\n const LITERALS = {\n literal: 'true false null'\n };\n const ALLOWED_COMMENTS = [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE\n ];\n const TYPES = [\n hljs.QUOTE_STRING_MODE,\n hljs.C_NUMBER_MODE\n ];\n const VALUE_CONTAINER = {\n end: ',',\n endsWithParent: true,\n excludeEnd: true,\n contains: TYPES,\n keywords: LITERALS\n };\n const OBJECT = {\n begin: /\\{/,\n end: /\\}/,\n contains: [\n {\n className: 'attr',\n begin: /\"/,\n end: /\"/,\n contains: [hljs.BACKSLASH_ESCAPE],\n illegal: '\\\\n'\n },\n hljs.inherit(VALUE_CONTAINER, {\n begin: /:/\n })\n ].concat(ALLOWED_COMMENTS),\n illegal: '\\\\S'\n };\n const ARRAY = {\n begin: '\\\\[',\n 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 name: 'JSON',\n contains: TYPES,\n keywords: LITERALS,\n illegal: '\\\\S'\n };\n}\n\nmodule.exports = json;\n"],"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","name"],"sourceRoot":""}
|