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","aliases","lexemes","keywords","keyword","literal","built_in","illegal","beginKeywords","UNDERSCORE_TITLE_MODE","relevance","COMMENT","concat"],"mappings":"6EAAAA,EAAAC,QAAA,SAAAC,GAEA,IAAAC,EAAA,CACAD,EAAAE,cACA,CACAC,UAAA,SACAC,MAAA,OAAAC,IAAA,OACAC,SAAA,CAAAN,EAAAO,iBAAA,CAAyCH,MAAA,SAIzC,OACAI,QAAA,QACAC,QAAA,QACAC,SAAA,CACAC,QAAA,wIAEAC,QACA,6CACAC,SACA,4bAOAC,QAAA,uBACAR,SAAA,CACA,CACAH,UAAA,WACAY,cAAA,WAAAV,IAAA,IACAC,SAAA,CACAN,EAAAgB,sBACA,CACAb,UAAA,SACAC,MAAA,MAAAC,IAAA,SAIA,CACAD,MAAA,4CAAAC,IAAA,GACAY,UAAA,GAEA,CACAb,MAAA,MAAAC,IAAA,eACAY,UAAA,EACAX,SAAAL,GAEAD,EAAAkB,QAAA,WACAC,OAAAlB","file":"highlight/scilab.js?v=d196ca7d46c27d0f747b","sourcesContent":["module.exports = function(hljs) {\n\n var COMMON_CONTAINS = [\n hljs.C_NUMBER_MODE,\n {\n className: 'string',\n begin: '\\'|\\\"', end: '\\'|\\\"',\n contains: [hljs.BACKSLASH_ESCAPE, {begin: '\\'\\''}]\n }\n ];\n\n return {\n aliases: ['sci'],\n lexemes: /%?\\w+/,\n keywords: {\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', end: '$',\n contains: [\n hljs.UNDERSCORE_TITLE_MODE,\n {\n className: 'params',\n begin: '\\\\(', end: '\\\\)'\n }\n ]\n },\n {\n begin: '[a-zA-Z_][a-zA-Z_0-9]*(\\'+[\\\\.\\']*|[\\\\.\\']+)', end: '',\n relevance: 0\n },\n {\n begin: '\\\\[', end: '\\\\]\\'*[\\\\.\\']*',\n relevance: 0,\n contains: COMMON_CONTAINS\n },\n hljs.COMMENT('//', '$')\n ].concat(COMMON_CONTAINS)\n };\n};"],"sourceRoot":""}
|