Welcome to mirror list, hosted at ThFree Co, Russian Federation.

actionscript.js.map « highlight « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ef85aa94958a81b00bd6d1bed6a4533994dd34c2 (plain)
1
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/actionscript.js"],"names":["source","re","concat","args","joined","map","x","join","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":"kGASA,SAASA,EAAOC,GACd,OAAKA,EACa,iBAAPA,EAAwBA,EAE5BA,EAAGD,OAHM,KAUlB,SAASE,IAAgB,2BAANC,EAAM,yBAANA,EAAM,gBACvB,IAAMC,EAASD,EAAKE,KAAI,SAACC,GAAD,OAAON,EAAOM,MAAIC,KAAK,IAC/C,OAAOH,EA0FTI,EAAOC,QA/EP,SAAsBC,GACpB,IAGMC,EAAoB,CACxBC,UAAW,WACXC,MAAO,SACPC,IANe,2BAOfC,UAAW,IAGb,MAAO,CACLC,KAAM,eACNC,QAAS,CAAE,MACXC,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,CAAEX,EAAKkB,aAEnB,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,KACTT,SAAU,CACRX,EAAKkB,WACL,CACEhB,UAAW,SACXC,MAAO,KACPC,IAAK,KACLO,SAAU,CACRX,EAAKY,iBACLZ,EAAKa,kBACLb,EAAKc,oBACLd,EAAKe,qBACLd,IAGJ,CAAEE,MAAOX,EAAO,OApEU,qCAuE9BQ,EAAKqB,cAEPD,QAAS","file":"highlight/actionscript.js?v=0ae08dc1ed1c98920702","sourcesContent":["/**\n * @param {string} value\n * @returns {RegExp}\n * */\n\n/**\n * @param {RegExp | string } re\n * @returns {string}\n */\nfunction source(re) {\n  if (!re) return null;\n  if (typeof re === \"string\") return re;\n\n  return re.source;\n}\n\n/**\n * @param {...(RegExp | string) } args\n * @returns {string}\n */\nfunction concat(...args) {\n  const joined = args.map((x) => source(x)).join(\"\");\n  return joined;\n}\n\n/*\nLanguage: ActionScript\nAuthor: Alexander Myadzel <myadzel@gmail.com>\nCategory: scripting\nAudit: 2020\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: concat(/:\\s*/, IDENT_FUNC_RETURN_TYPE_RE) }\n        ]\n      },\n      hljs.METHOD_GUARD\n    ],\n    illegal: /#/\n  };\n}\n\nmodule.exports = actionscript;\n"],"sourceRoot":""}