1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/python.js"],"names":["module","exports","hljs","KEYWORDS","keyword","built_in","literal","PROMPT","className","begin","SUBST","end","keywords","illegal","LITERAL_BRACKET","relevance","STRING","contains","BACKSLASH_ESCAPE","variants","APOS_STRING_MODE","QUOTE_STRING_MODE","NUMBER","BINARY_NUMBER_RE","C_NUMBER_RE","PARAMS","HASH_COMMENT_MODE","aliases","beginKeywords","UNDERSCORE_TITLE_MODE","endsWithParent"],"mappings":"qFAAAA,EAAOC,QAAU,SAASC,GACxB,IAAIC,EAAW,CACbC,QACE,8LAGFC,SACE,0BACFC,QAAS,mBAEPC,EAAS,CACXC,UAAW,OAASC,MAAO,kBAEzBC,EAAQ,CACVF,UAAW,QACXC,MAAO,KAAME,IAAK,KAClBC,SAAUT,EACVU,QAAS,KAEPC,EAAkB,CACpBL,MAAO,OACPM,UAAW,GAETC,EAAS,CACXR,UAAW,SACXS,SAAU,CAACf,EAAKgB,kBAChBC,SAAU,CACR,CACEV,MAAO,cAAeE,IAAK,MAC3BM,SAAU,CAACf,EAAKgB,iBAAkBX,GAClCQ,UAAW,IAEb,CACEN,MAAO,cAAeE,IAAK,MAC3BM,SAAU,CAACf,EAAKgB,iBAAkBX,GAClCQ,UAAW,IAEb,CACEN,MAAO,eAAgBE,IAAK,MAC5BM,SAAU,CAACf,EAAKgB,iBAAkBX,EAAQO,EAAiBJ,IAE7D,CACED,MAAO,eAAgBE,IAAK,MAC5BM,SAAU,CAACf,EAAKgB,iBAAkBX,EAAQO,EAAiBJ,IAE7D,CACED,MAAO,YAAaE,IAAK,IACzBI,UAAW,IAEb,CACEN,MAAO,YAAaE,IAAK,IACzBI,UAAW,IAEb,CACEN,MAAO,UAAWE,IAAK,KAEzB,CACEF,MAAO,UAAWE,IAAK,KAEzB,CACEF,MAAO,aAAcE,IAAK,IAC1BM,SAAU,CAACf,EAAKgB,iBAAkBJ,EAAiBJ,IAErD,CACED,MAAO,aAAcE,IAAK,IAC1BM,SAAU,CAACf,EAAKgB,iBAAkBJ,EAAiBJ,IAErDR,EAAKkB,iBACLlB,EAAKmB,oBAGLC,EAAS,CACXd,UAAW,SAAUO,UAAW,EAChCI,SAAU,CACR,CAACV,MAAOP,EAAKqB,iBAAmB,WAChC,CAACd,MAAO,wBACR,CAACA,MAAOP,EAAKsB,YAAc,aAG3BC,EAAS,CACXjB,UAAW,SACXC,MAAO,KAAME,IAAK,KAClBM,SAAU,CAAC,OAAQV,EAAQe,EAAQN,EAAQd,EAAKwB,oBAGlD,OADAhB,EAAMO,SAAW,CAACD,EAAQM,EAAQf,GAC3B,CACLoB,QAAS,CAAC,KAAM,MAAO,WACvBf,SAAUT,EACVU,QAAS,iBACTI,SAAU,CACRV,EACAe,EAGA,CAAEM,cAAe,KAAMb,UAAW,GAClCC,EACAd,EAAKwB,kBACL,CACEP,SAAU,CACR,CAACX,UAAW,WAAYoB,cAAe,OACvC,CAACpB,UAAW,QAASoB,cAAe,UAEtCjB,IAAK,IACLE,QAAS,YACTI,SAAU,CACRf,EAAK2B,sBACLJ,EACA,CACEhB,MAAO,KAAMqB,gBAAgB,EAC7BlB,SAAU,UAIhB,CACEJ,UAAW,OACXC,MAAO,WAAYE,IAAK,KAE1B,CACEF,MAAO","file":"highlight/python.js?v=f17b2d07aa5bbe2c96e5","sourcesContent":["module.exports = function(hljs) {\n var KEYWORDS = {\n keyword:\n 'and elif is global as in if from raise for except finally print import pass return ' +\n 'exec else break not with class assert yield try while continue del or def lambda ' +\n 'async await nonlocal|10',\n built_in:\n 'Ellipsis NotImplemented',\n literal: 'False None True'\n };\n var PROMPT = {\n className: 'meta', begin: /^(>>>|\\.\\.\\.) /\n };\n var SUBST = {\n className: 'subst',\n begin: /\\{/, end: /\\}/,\n keywords: KEYWORDS,\n illegal: /#/\n };\n var LITERAL_BRACKET = {\n begin: /\\{\\{/,\n relevance: 0\n };\n var STRING = {\n className: 'string',\n contains: [hljs.BACKSLASH_ESCAPE],\n variants: [\n {\n begin: /(u|b)?r?'''/, end: /'''/,\n contains: [hljs.BACKSLASH_ESCAPE, PROMPT],\n relevance: 10\n },\n {\n begin: /(u|b)?r?\"\"\"/, end: /\"\"\"/,\n contains: [hljs.BACKSLASH_ESCAPE, PROMPT],\n relevance: 10\n },\n {\n begin: /(fr|rf|f)'''/, end: /'''/,\n contains: [hljs.BACKSLASH_ESCAPE, PROMPT, LITERAL_BRACKET, SUBST]\n },\n {\n begin: /(fr|rf|f)\"\"\"/, end: /\"\"\"/,\n contains: [hljs.BACKSLASH_ESCAPE, PROMPT, LITERAL_BRACKET, SUBST]\n },\n {\n begin: /(u|r|ur)'/, end: /'/,\n relevance: 10\n },\n {\n begin: /(u|r|ur)\"/, end: /\"/,\n relevance: 10\n },\n {\n begin: /(b|br)'/, end: /'/\n },\n {\n begin: /(b|br)\"/, end: /\"/\n },\n {\n begin: /(fr|rf|f)'/, end: /'/,\n contains: [hljs.BACKSLASH_ESCAPE, LITERAL_BRACKET, SUBST]\n },\n {\n begin: /(fr|rf|f)\"/, end: /\"/,\n contains: [hljs.BACKSLASH_ESCAPE, LITERAL_BRACKET, SUBST]\n },\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE\n ]\n };\n var NUMBER = {\n className: 'number', relevance: 0,\n variants: [\n {begin: hljs.BINARY_NUMBER_RE + '[lLjJ]?'},\n {begin: '\\\\b(0o[0-7]+)[lLjJ]?'},\n {begin: hljs.C_NUMBER_RE + '[lLjJ]?'}\n ]\n };\n var PARAMS = {\n className: 'params',\n begin: /\\(/, end: /\\)/,\n contains: ['self', PROMPT, NUMBER, STRING, hljs.HASH_COMMENT_MODE]\n };\n SUBST.contains = [STRING, NUMBER, PROMPT];\n return {\n aliases: ['py', 'gyp', 'ipython'],\n keywords: KEYWORDS,\n illegal: /(<\\/|->|\\?)|=>/,\n contains: [\n PROMPT,\n NUMBER,\n // eat \"if\" prior to string so that it won't accidentally be\n // labeled as an f-string as in:\n { beginKeywords: \"if\", relevance: 0 },\n STRING,\n hljs.HASH_COMMENT_MODE,\n {\n variants: [\n {className: 'function', beginKeywords: 'def'},\n {className: 'class', beginKeywords: 'class'}\n ],\n end: /:/,\n illegal: /[${=;\\n,]/,\n contains: [\n hljs.UNDERSCORE_TITLE_MODE,\n PARAMS,\n {\n begin: /->/, endsWithParent: true,\n keywords: 'None'\n }\n ]\n },\n {\n className: 'meta',\n begin: /^[\\t ]*@/, end: /$/\n },\n {\n begin: /\\b(print|exec)\\(/ // don’t highlight keywords-turned-functions in Python 3\n }\n ]\n };\n};"],"sourceRoot":""}
|