1
|
{"version":3,"sources":["webpack:///./node_modules/highlight.js/lib/languages/scilab.js"],"names":["module","exports","hljs","COMMON_CONTAINS","C_NUMBER_MODE","className","begin","end","contains","BACKSLASH_ESCAPE","name","aliases","keywords","$pattern","keyword","literal","built_in","illegal","beginKeywords","UNDERSCORE_TITLE_MODE","relevance","COMMENT","concat"],"mappings":"oGAwEAA,EAAOC,QA/DP,SAAgBC,GACd,IAAMC,EAAkB,CACtBD,EAAKE,cACL,CACEC,UAAW,SACXC,MAAO,OACPC,IAAK,OACLC,SAAU,CAAEN,EAAKO,iBACf,CACEH,MAAO,SAKf,MAAO,CACLI,KAAM,SACNC,QAAS,CAAE,OACXC,SAAU,CACRC,SAAU,QACVC,QAAS,wIAETC,QACE,6CACFC,SACC,4bAOHC,QAAS,uBACTT,SAAU,CACR,CACEH,UAAW,WACXa,cAAe,WACfX,IAAK,IACLC,SAAU,CACRN,EAAKiB,sBACL,CACEd,UAAW,SACXC,MAAO,MACPC,IAAK,SAMX,CACED,MAAO,gCACPc,UAAW,GAEb,CACEd,MAAO,MACPC,IAAK,aACLa,UAAW,EACXZ,SAAUL,GAEZD,EAAKmB,QAAQ,KAAM,MACnBC,OAAOnB","file":"highlight/scilab.js?v=37a41dee8f3ddca9f4be","sourcesContent":["/*\nLanguage: Scilab\nAuthor: Sylvestre Ledru <sylvestre.ledru@scilab-enterprises.com>\nOrigin: matlab.js\nDescription: Scilab is a port from Matlab\nWebsite: https://www.scilab.org\nCategory: scientific\n*/\n\nfunction scilab(hljs) {\n const COMMON_CONTAINS = [\n hljs.C_NUMBER_MODE,\n {\n className: 'string',\n begin: '\\'|\\\"',\n end: '\\'|\\\"',\n contains: [ hljs.BACKSLASH_ESCAPE,\n {\n begin: '\\'\\''\n } ]\n }\n ];\n\n return {\n name: 'Scilab',\n aliases: [ 'sci' ],\n keywords: {\n $pattern: /%?\\w+/,\n keyword: 'abort break case clear catch continue do elseif else endfunction end for function ' +\n 'global if pause return resume select try then while',\n literal:\n '%f %F %t %T %pi %eps %inf %nan %e %i %z %s',\n built_in: // Scilab has more than 2000 functions. Just list the most commons\n 'abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error ' +\n 'exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty ' +\n 'isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log ' +\n 'max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real ' +\n 'round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan ' +\n 'type typename warning zeros matrix'\n },\n illegal: '(\"|#|/\\\\*|\\\\s+/\\\\w+)',\n contains: [\n {\n className: 'function',\n beginKeywords: 'function',\n end: '$',\n contains: [\n hljs.UNDERSCORE_TITLE_MODE,\n {\n className: 'params',\n begin: '\\\\(',\n end: '\\\\)'\n }\n ]\n },\n // seems to be a guard against [ident]' or [ident].\n // perhaps to prevent attributes from flagging as keywords?\n {\n begin: '[a-zA-Z_][a-zA-Z_0-9]*[\\\\.\\']+',\n relevance: 0\n },\n {\n begin: '\\\\[',\n end: '\\\\][\\\\.\\']*',\n relevance: 0,\n contains: COMMON_CONTAINS\n },\n hljs.COMMENT('//', '$')\n ].concat(COMMON_CONTAINS)\n };\n}\n\nmodule.exports = scilab;\n"],"sourceRoot":""}
|