%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/text/js/erlang-itQwYqdC.chunk.mjs.map |
{"version":3,"file":"erlang-itQwYqdC.chunk.mjs","sources":["../node_modules/highlight.js/lib/languages/erlang.js"],"sourcesContent":["/*\nLanguage: Erlang\nDescription: Erlang is a general-purpose functional language, with strict evaluation, single assignment, and dynamic typing.\nAuthor: Nikolay Zakharov <nikolay.desh@gmail.com>, Dmitry Kovega <arhibot@gmail.com>\nWebsite: https://www.erlang.org\nCategory: functional\n*/\n\n/** @type LanguageFn */\nfunction erlang(hljs) {\n const BASIC_ATOM_RE = '[a-z\\'][a-zA-Z0-9_\\']*';\n const FUNCTION_NAME_RE = '(' + BASIC_ATOM_RE + ':' + BASIC_ATOM_RE + '|' + BASIC_ATOM_RE + ')';\n const ERLANG_RESERVED = {\n keyword:\n 'after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if '\n + 'let not of orelse|10 query receive rem try when xor',\n literal:\n 'false true'\n };\n\n const COMMENT = hljs.COMMENT('%', '$');\n const NUMBER = {\n className: 'number',\n begin: '\\\\b(\\\\d+(_\\\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\\\d+(_\\\\d+)*(\\\\.\\\\d+(_\\\\d+)*)?([eE][-+]?\\\\d+)?)',\n relevance: 0\n };\n const NAMED_FUN = { begin: 'fun\\\\s+' + BASIC_ATOM_RE + '/\\\\d+' };\n const FUNCTION_CALL = {\n begin: FUNCTION_NAME_RE + '\\\\(',\n end: '\\\\)',\n returnBegin: true,\n relevance: 0,\n contains: [\n {\n begin: FUNCTION_NAME_RE,\n relevance: 0\n },\n {\n begin: '\\\\(',\n end: '\\\\)',\n endsWithParent: true,\n returnEnd: true,\n relevance: 0\n // \"contains\" defined later\n }\n ]\n };\n const TUPLE = {\n begin: /\\{/,\n end: /\\}/,\n relevance: 0\n // \"contains\" defined later\n };\n const VAR1 = {\n begin: '\\\\b_([A-Z][A-Za-z0-9_]*)?',\n relevance: 0\n };\n const VAR2 = {\n begin: '[A-Z][a-zA-Z0-9_]*',\n relevance: 0\n };\n const RECORD_ACCESS = {\n begin: '#' + hljs.UNDERSCORE_IDENT_RE,\n relevance: 0,\n returnBegin: true,\n contains: [\n {\n begin: '#' + hljs.UNDERSCORE_IDENT_RE,\n relevance: 0\n },\n {\n begin: /\\{/,\n end: /\\}/,\n relevance: 0\n // \"contains\" defined later\n }\n ]\n };\n const CHAR_LITERAL = {\n scope: 'string',\n match: /\\$(\\\\([^0-9]|[0-9]{1,3}|)|.)/,\n };\n\n const BLOCK_STATEMENTS = {\n beginKeywords: 'fun receive if try case',\n end: 'end',\n keywords: ERLANG_RESERVED\n };\n BLOCK_STATEMENTS.contains = [\n COMMENT,\n NAMED_FUN,\n hljs.inherit(hljs.APOS_STRING_MODE, { className: '' }),\n BLOCK_STATEMENTS,\n FUNCTION_CALL,\n hljs.QUOTE_STRING_MODE,\n NUMBER,\n TUPLE,\n VAR1,\n VAR2,\n RECORD_ACCESS,\n CHAR_LITERAL\n ];\n\n const BASIC_MODES = [\n COMMENT,\n NAMED_FUN,\n BLOCK_STATEMENTS,\n FUNCTION_CALL,\n hljs.QUOTE_STRING_MODE,\n NUMBER,\n TUPLE,\n VAR1,\n VAR2,\n RECORD_ACCESS,\n CHAR_LITERAL\n ];\n FUNCTION_CALL.contains[1].contains = BASIC_MODES;\n TUPLE.contains = BASIC_MODES;\n RECORD_ACCESS.contains[1].contains = BASIC_MODES;\n\n const DIRECTIVES = [\n \"-module\",\n \"-record\",\n \"-undef\",\n \"-export\",\n \"-ifdef\",\n \"-ifndef\",\n \"-author\",\n \"-copyright\",\n \"-doc\",\n \"-vsn\",\n \"-import\",\n \"-include\",\n \"-include_lib\",\n \"-compile\",\n \"-define\",\n \"-else\",\n \"-endif\",\n \"-file\",\n \"-behaviour\",\n \"-behavior\",\n \"-spec\"\n ];\n\n const PARAMS = {\n className: 'params',\n begin: '\\\\(',\n end: '\\\\)',\n contains: BASIC_MODES\n };\n\n return {\n name: 'Erlang',\n aliases: [ 'erl' ],\n keywords: ERLANG_RESERVED,\n illegal: '(</|\\\\*=|\\\\+=|-=|/\\\\*|\\\\*/|\\\\(\\\\*|\\\\*\\\\))',\n contains: [\n {\n className: 'function',\n begin: '^' + BASIC_ATOM_RE + '\\\\s*\\\\(',\n end: '->',\n returnBegin: true,\n illegal: '\\\\(|#|//|/\\\\*|\\\\\\\\|:|;',\n contains: [\n PARAMS,\n hljs.inherit(hljs.TITLE_MODE, { begin: BASIC_ATOM_RE })\n ],\n starts: {\n end: ';|\\\\.',\n keywords: ERLANG_RESERVED,\n contains: BASIC_MODES\n }\n },\n COMMENT,\n {\n begin: '^-',\n end: '\\\\.',\n relevance: 0,\n excludeEnd: true,\n returnBegin: true,\n keywords: {\n $pattern: '-' + hljs.IDENT_RE,\n keyword: DIRECTIVES.map(x => `${x}|1.5`).join(\" \")\n },\n contains: [ PARAMS ]\n },\n NUMBER,\n hljs.QUOTE_STRING_MODE,\n RECORD_ACCESS,\n VAR1,\n VAR2,\n TUPLE,\n CHAR_LITERAL,\n { begin: /\\.$/ } // relevance booster\n ]\n };\n}\n\nmodule.exports = erlang;\n"],"names":["erlang","hljs","BASIC_ATOM_RE","FUNCTION_NAME_RE","ERLANG_RESERVED","COMMENT","NUMBER","NAMED_FUN","FUNCTION_CALL","TUPLE","VAR1","VAR2","RECORD_ACCESS","CHAR_LITERAL","BLOCK_STATEMENTS","BASIC_MODES","DIRECTIVES","PARAMS","x","erlang_1"],"mappings":";4YASA,SAASA,EAAOC,EAAM,CACpB,MAAMC,EAAgB,uBAChBC,EAAmB,IAAMD,EAAgB,IAAMA,EAAgB,IAAMA,EAAgB,IACrFE,EAAkB,CACtB,QACE,2IAEF,QACE,YACN,EAEQC,EAAUJ,EAAK,QAAQ,IAAK,GAAG,EAC/BK,EAAS,CACb,UAAW,SACX,MAAO,gGACP,UAAW,CACf,EACQC,EAAY,CAAE,MAAO,UAAYL,EAAgB,OAAO,EACxDM,EAAgB,CACpB,MAAOL,EAAmB,MAC1B,IAAK,MACL,YAAa,GACb,UAAW,EACX,SAAU,CACR,CACE,MAAOA,EACP,UAAW,CACZ,EACD,CACE,MAAO,MACP,IAAK,MACL,eAAgB,GAChB,UAAW,GACX,UAAW,CAEZ,CACF,CACL,EACQM,EAAQ,CACZ,MAAO,KACP,IAAK,KACL,UAAW,CAEf,EACQC,EAAO,CACX,MAAO,4BACP,UAAW,CACf,EACQC,EAAO,CACX,MAAO,qBACP,UAAW,CACf,EACQC,EAAgB,CACpB,MAAO,IAAMX,EAAK,oBAClB,UAAW,EACX,YAAa,GACb,SAAU,CACR,CACE,MAAO,IAAMA,EAAK,oBAClB,UAAW,CACZ,EACD,CACE,MAAO,KACP,IAAK,KACL,UAAW,CAEZ,CACF,CACL,EACQY,EAAe,CACnB,MAAO,SACP,MAAO,8BACX,EAEQC,EAAmB,CACvB,cAAe,0BACf,IAAK,MACL,SAAUV,CACd,EACEU,EAAiB,SAAW,CAC1BT,EACAE,EACAN,EAAK,QAAQA,EAAK,iBAAkB,CAAE,UAAW,GAAI,EACrDa,EACAN,EACAP,EAAK,kBACLK,EACAG,EACAC,EACAC,EACAC,EACAC,CACJ,EAEE,MAAME,EAAc,CAClBV,EACAE,EACAO,EACAN,EACAP,EAAK,kBACLK,EACAG,EACAC,EACAC,EACAC,EACAC,CACJ,EACEL,EAAc,SAAS,CAAC,EAAE,SAAWO,EACrCN,EAAM,SAAWM,EACjBH,EAAc,SAAS,CAAC,EAAE,SAAWG,EAErC,MAAMC,EAAa,CACjB,UACA,UACA,SACA,UACA,SACA,UACA,UACA,aACA,OACA,OACA,UACA,WACA,eACA,WACA,UACA,QACA,SACA,QACA,aACA,YACA,OACJ,EAEQC,EAAS,CACb,UAAW,SACX,MAAO,MACP,IAAK,MACL,SAAUF,CACd,EAEE,MAAO,CACL,KAAM,SACN,QAAS,CAAE,KAAO,EAClB,SAAUX,EACV,QAAS,4CACT,SAAU,CACR,CACE,UAAW,WACX,MAAO,IAAMF,EAAgB,UAC7B,IAAK,KACL,YAAa,GACb,QAAS,yBACT,SAAU,CACRe,EACAhB,EAAK,QAAQA,EAAK,WAAY,CAAE,MAAOC,EAAe,CACvD,EACD,OAAQ,CACN,IAAK,QACL,SAAUE,EACV,SAAUW,CACX,CACF,EACDV,EACA,CACE,MAAO,KACP,IAAK,MACL,UAAW,EACX,WAAY,GACZ,YAAa,GACb,SAAU,CACR,SAAU,IAAMJ,EAAK,SACrB,QAASe,EAAW,IAAIE,GAAK,GAAGA,OAAAA,EAAC,OAAM,EAAE,KAAK,GAAG,CAClD,EACD,SAAU,CAAED,CAAQ,CACrB,EACDX,EACAL,EAAK,kBACLW,EACAF,EACAC,EACAF,EACAI,EACA,CAAE,MAAO,KAAO,CACjB,CACL,CACA,CAEA,IAAAM,EAAiBnB","x_google_ignoreList":[0]}