1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/javascript.js"],"names":["module","exports","hljs","IDENT_RE","KEYWORDS","keyword","literal","built_in","NUMBER","className","variants","begin","C_NUMBER_RE","relevance","SUBST","end","keywords","contains","TEMPLATE_STRING","BACKSLASH_ESCAPE","APOS_STRING_MODE","QUOTE_STRING_MODE","REGEXP_MODE","PARAMS_CONTAINS","concat","C_BLOCK_COMMENT_MODE","C_LINE_COMMENT_MODE","aliases","returnBegin","RE_STARTERS_RE","excludeBegin","excludeEnd","skip","subLanguage","beginKeywords","inherit","TITLE_MODE","illegal","METHOD_GUARD","UNDERSCORE_TITLE_MODE"],"mappings":"4EAAAA,EAAAC,QAAA,SAAAC,GACA,IAAAC,EAAA,2BACAC,EAAA,CACAC,QACA,mOAMAC,QACA,yCACAC,SACA,2gBASAC,EAAA,CACAC,UAAA,SACAC,SAAA,CACA,CAAOC,MAAA,mBACP,CAAOA,MAAA,oBACP,CAAOA,MAAAT,EAAAU,cAEPC,UAAA,GAEAC,EAAA,CACAL,UAAA,QACAE,MAAA,SAAkBI,IAAA,MAClBC,SAAAZ,EACAa,SAAA,IAEAC,EAAA,CACAT,UAAA,SACAE,MAAA,IAAAI,IAAA,IACAE,SAAA,CACAf,EAAAiB,iBACAL,IAGAA,EAAAG,SAAA,CACAf,EAAAkB,iBACAlB,EAAAmB,kBACAH,EACAV,EACAN,EAAAoB,aAEA,IAAAC,EAAAT,EAAAG,SAAAO,OAAA,CACAtB,EAAAuB,qBACAvB,EAAAwB,sBAGA,OACAC,QAAA,aACAX,SAAAZ,EACAa,SAAA,CACA,CACAR,UAAA,OACAI,UAAA,GACAF,MAAA,gCAEA,CACAF,UAAA,OACAE,MAAA,MAAAI,IAAA,KAEAb,EAAAkB,iBACAlB,EAAAmB,kBACAH,EACAhB,EAAAwB,oBACAxB,EAAAuB,qBACAjB,EACA,CACAG,MAAA,UAAkBE,UAAA,EAClBI,SAAA,CACA,CACAN,MAAAR,EAAA,QAAAyB,aAAA,EACAf,UAAA,EACAI,SAAA,EAAwBR,UAAA,OAAAE,MAAAR,EAAAU,UAAA,OAIxB,CACAF,MAAA,IAAAT,EAAA2B,eAAA,kCACAb,SAAA,oBACAC,SAAA,CACAf,EAAAwB,oBACAxB,EAAAuB,qBACAvB,EAAAoB,YACA,CACAb,UAAA,WACAE,MAAA,cAAAR,EAAA,UAAAyB,aAAA,EACAb,IAAA,SACAE,SAAA,CACA,CACAR,UAAA,SACAC,SAAA,CACA,CACAC,MAAAR,GAEA,CACAQ,MAAA,WAEA,CACAA,MAAA,KAAAI,IAAA,KACAe,cAAA,EAAAC,YAAA,EACAf,SAAAZ,EACAa,SAAAM,OAMA,CACAd,UAAA,GACAE,MAAA,KACAI,IAAA,MACAiB,MAAA,GAEA,CACArB,MAAA,IAAAI,IAAA,+CACAkB,YAAA,MACAhB,SAAA,CACA,CAAeN,MAAA,4BAAAqB,MAAA,GACf,CACArB,MAAA,sBAAAI,IAAA,+CAAAiB,MAAA,EACAf,SAAA,CACA,CAAmBN,MAAA,4BAAAqB,MAAA,GACnB,YAMAnB,UAAA,GAEA,CACAJ,UAAA,WACAyB,cAAA,WAAAnB,IAAA,KAA2CgB,YAAA,EAC3Cd,SAAA,CACAf,EAAAiC,QAAAjC,EAAAkC,WAAA,CAAyCzB,MAAAR,IACzC,CACAM,UAAA,SACAE,MAAA,KAAAI,IAAA,KACAe,cAAA,EACAC,YAAA,EACAd,SAAAM,IAGAc,QAAA,QAEA,CACA1B,MAAA,UAEAT,EAAAoC,aACA,CACA7B,UAAA,QACAyB,cAAA,QAAAnB,IAAA,QAAyCgB,YAAA,EACzCM,QAAA,WACApB,SAAA,CACA,CAAWiB,cAAA,WACXhC,EAAAqC,wBAGA,CACAL,cAAA,sBAAAnB,IAAA,KAAsDgB,YAAA,IAGtDM,QAAA","file":"highlight/javascript.js?v=609004da60b15e817f29","sourcesContent":["module.exports = function(hljs) {\n var IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\n var KEYWORDS = {\n keyword:\n 'in of if for while finally var new function do return void else break catch ' +\n 'instanceof with throw case default try this switch continue typeof delete ' +\n 'let yield const export super debugger as async await static ' +\n // ECMAScript 6 modules import\n 'import from as'\n ,\n literal:\n 'true false null undefined NaN Infinity',\n built_in:\n 'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +\n 'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +\n 'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +\n 'TypeError URIError Number Math Date String RegExp Array Float32Array ' +\n 'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' +\n 'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' +\n 'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' +\n 'Promise'\n };\n var NUMBER = {\n className: 'number',\n variants: [\n { begin: '\\\\b(0[bB][01]+)' },\n { begin: '\\\\b(0[oO][0-7]+)' },\n { begin: hljs.C_NUMBER_RE }\n ],\n relevance: 0\n };\n var SUBST = {\n className: 'subst',\n begin: '\\\\$\\\\{', end: '\\\\}',\n keywords: KEYWORDS,\n contains: [] // defined later\n };\n var TEMPLATE_STRING = {\n className: 'string',\n begin: '`', end: '`',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST\n ]\n };\n SUBST.contains = [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n TEMPLATE_STRING,\n NUMBER,\n hljs.REGEXP_MODE\n ];\n var PARAMS_CONTAINS = SUBST.contains.concat([\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.C_LINE_COMMENT_MODE\n ]);\n\n return {\n aliases: ['js', 'jsx'],\n keywords: KEYWORDS,\n contains: [\n {\n className: 'meta',\n relevance: 10,\n begin: /^\\s*['\"]use (strict|asm)['\"]/\n },\n {\n className: 'meta',\n begin: /^#!/, end: /$/\n },\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n TEMPLATE_STRING,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n NUMBER,\n { // object attr container\n begin: /[{,]\\s*/, relevance: 0,\n contains: [\n {\n begin: IDENT_RE + '\\\\s*:', returnBegin: true,\n relevance: 0,\n contains: [{className: 'attr', begin: IDENT_RE, relevance: 0}]\n }\n ]\n },\n { // \"value\" container\n begin: '(' + hljs.RE_STARTERS_RE + '|\\\\b(case|return|throw)\\\\b)\\\\s*',\n keywords: 'return throw case',\n contains: [\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.REGEXP_MODE,\n {\n className: 'function',\n begin: '(\\\\(.*?\\\\)|' + IDENT_RE + ')\\\\s*=>', returnBegin: true,\n end: '\\\\s*=>',\n contains: [\n {\n className: 'params',\n variants: [\n {\n begin: IDENT_RE\n },\n {\n begin: /\\(\\s*\\)/,\n },\n {\n begin: /\\(/, end: /\\)/,\n excludeBegin: true, excludeEnd: true,\n keywords: KEYWORDS,\n contains: PARAMS_CONTAINS\n }\n ]\n }\n ]\n },\n {\n className: '',\n begin: /\\s/,\n end: /\\s*/,\n skip: true,\n },\n { // E4X / JSX\n begin: /</, end: /(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>/,\n subLanguage: 'xml',\n contains: [\n { begin: /<[A-Za-z0-9\\\\._:-]+\\s*\\/>/, skip: true },\n {\n begin: /<[A-Za-z0-9\\\\._:-]+/, end: /(\\/[A-Za-z0-9\\\\._:-]+|[A-Za-z0-9\\\\._:-]+\\/)>/, skip: true,\n contains: [\n { begin: /<[A-Za-z0-9\\\\._:-]+\\s*\\/>/, skip: true },\n 'self'\n ]\n }\n ]\n }\n ],\n relevance: 0\n },\n {\n className: 'function',\n beginKeywords: 'function', end: /\\{/, excludeEnd: true,\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE}),\n {\n className: 'params',\n begin: /\\(/, end: /\\)/,\n excludeBegin: true,\n excludeEnd: true,\n contains: PARAMS_CONTAINS\n }\n ],\n illegal: /\\[|%/\n },\n {\n begin: /\\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`\n },\n hljs.METHOD_GUARD,\n { // ES6 class\n className: 'class',\n beginKeywords: 'class', end: /[{;=]/, excludeEnd: true,\n illegal: /[:\"\\[\\]]/,\n contains: [\n {beginKeywords: 'extends'},\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n {\n beginKeywords: 'constructor get set', end: /\\{/, excludeEnd: true\n }\n ],\n illegal: /#(?!!)/\n };\n};"],"sourceRoot":""}
|