1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/actionscript.js"],"names":["module","exports","hljs","AS3_REST_ARG_MODE","className","begin","end","relevance","name","aliases","keywords","keyword","literal","contains","APOS_STRING_MODE","QUOTE_STRING_MODE","C_LINE_COMMENT_MODE","C_BLOCK_COMMENT_MODE","C_NUMBER_MODE","beginKeywords","TITLE_MODE","excludeEnd","illegal","METHOD_GUARD"],"mappings":"kGAsFAA,EAAOC,QA/EP,SAAsBC,GACpB,IAGMC,EAAoB,CACxBC,UAAW,WACXC,MAAO,SACPC,IANe,2BAOfC,UAAW,IAGb,MAAO,CACLC,KAAM,eACNC,QAAS,CAAC,MACVC,SAAU,CACRC,QAAS,mUAKTC,QAAS,6BAEXC,SAAU,CACRX,EAAKY,iBACLZ,EAAKa,kBACLb,EAAKc,oBACLd,EAAKe,qBACLf,EAAKgB,cACL,CACEd,UAAW,QACXe,cAAe,UACfb,IAAK,KACLO,SAAU,CAACX,EAAKkB,aAElB,CACEhB,UAAW,QACXe,cAAe,kBACfb,IAAK,KACLe,YAAY,EACZR,SAAU,CACR,CAAEM,cAAe,sBACjBjB,EAAKkB,aAGT,CACEhB,UAAW,OACXe,cAAe,iBACfb,IAAK,IACLI,SAAU,CAAE,eAAgB,mBAE9B,CACEN,UAAW,WACXe,cAAe,WACfb,IAAK,OACLe,YAAY,EACZC,QAAS,MACTT,SAAU,CACRX,EAAKkB,WACL,CACEhB,UAAW,SACXC,MAAO,MACPC,IAAK,MACLO,SAAU,CACRX,EAAKY,iBACLZ,EAAKa,kBACLb,EAAKc,oBACLd,EAAKe,qBACLd,IAGJ,CAAEE,MAAO,yCAGbH,EAAKqB,cAEPD,QAAS","file":"highlight/actionscript.js?v=c7f7d475e85b52550fb6","sourcesContent":["/*\nLanguage: ActionScript\nAuthor: Alexander Myadzel <myadzel@gmail.com>\nCategory: scripting\n*/\n\n/** @type LanguageFn */\nfunction actionscript(hljs) {\n const IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';\n const IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';\n\n const AS3_REST_ARG_MODE = {\n className: 'rest_arg',\n begin: '[.]{3}',\n end: IDENT_RE,\n relevance: 10\n };\n\n return {\n name: 'ActionScript',\n aliases: ['as'],\n keywords: {\n keyword: 'as break case catch class const continue default delete do dynamic each ' +\n 'else extends final finally for function get if implements import in include ' +\n 'instanceof interface internal is namespace native new override package private ' +\n 'protected public return set static super switch this throw try typeof use var void ' +\n 'while with',\n literal: 'true false null undefined'\n },\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n hljs.C_NUMBER_MODE,\n {\n className: 'class',\n beginKeywords: 'package',\n end: /\\{/,\n contains: [hljs.TITLE_MODE]\n },\n {\n className: 'class',\n beginKeywords: 'class interface',\n end: /\\{/,\n excludeEnd: true,\n contains: [\n { beginKeywords: 'extends implements' },\n hljs.TITLE_MODE\n ]\n },\n {\n className: 'meta',\n beginKeywords: 'import include',\n end: ';',\n keywords: { 'meta-keyword': 'import include' }\n },\n {\n className: 'function',\n beginKeywords: 'function',\n end: '[{;]',\n excludeEnd: true,\n illegal: '\\\\S',\n contains: [\n hljs.TITLE_MODE,\n {\n className: 'params',\n begin: '\\\\(',\n end: '\\\\)',\n contains: [\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n AS3_REST_ARG_MODE\n ]\n },\n { begin: ':\\\\s*' + IDENT_FUNC_RETURN_TYPE_RE }\n ]\n },\n hljs.METHOD_GUARD\n ],\n illegal: /#/\n };\n}\n\nmodule.exports = actionscript;\n"],"sourceRoot":""}
|