From abc0de079b895af1b705894eb2b63596e3e37274 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 13 Dec 2022 20:44:08 -0600 Subject: add pyssg.xyz configs and templates --- pyssg.xyz/live/static/hl/languages/scilab.min.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pyssg.xyz/live/static/hl/languages/scilab.min.js (limited to 'pyssg.xyz/live/static/hl/languages/scilab.min.js') diff --git a/pyssg.xyz/live/static/hl/languages/scilab.min.js b/pyssg.xyz/live/static/hl/languages/scilab.min.js new file mode 100644 index 0000000..ae49e52 --- /dev/null +++ b/pyssg.xyz/live/static/hl/languages/scilab.min.js @@ -0,0 +1,13 @@ +hljs.registerLanguage("scilab",(()=>{"use strict";return e=>{ +const n=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"", +contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab", +aliases:["sci"],keywords:{$pattern:/%?\w+/, +keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while", +literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s", +built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix" +},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function", +beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{ +className:"params",begin:"\\(",end:"\\)"}]},{ +begin:"[a-zA-Z_][a-zA-Z_0-9]*('+[\\.']*|[\\.']+)",end:"",relevance:0},{ +begin:"\\[",end:"\\]'*[\\.']*",relevance:0,contains:n +},e.COMMENT("//","$")].concat(n)}}})()); \ No newline at end of file -- cgit v1.2.3-54-g00ecf