Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/domains/alsaif.group/private_html/media/editors/codemirror/mode/yacas/ |
!(function(a){"object"==typeof exports&&"object"==typeof module?a(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],a):a(CodeMirror)})((function(a){"use strict";a.defineMode("yacas",(function(b,c){function d(a,b){var c;if('"'===(c=a.next()))return b.tokenize=e,b.tokenize(a,b);if("/"===c){if(a.eat("*"))return b.tokenize=f,b.tokenize(a,b);if(a.eat("/"))return a.skipToEnd(),"comment"}a.backUp(1);var d=a.match(/^(\w+)\s*\(/,!1);null!==d&&h.hasOwnProperty(d[1])&&b.scopes.push("bodied");var i=g(b);if("bodied"===i&&"["===c&&b.scopes.pop(),"["!==c&&"{"!==c&&"("!==c||b.scopes.push(c),i=g(b),("["===i&&"]"===c||"{"===i&&"}"===c||"("===i&&")"===c)&&b.scopes.pop(),";"===c)for(;"bodied"===i;)b.scopes.pop(),i=g(b);return a.match(/\d+ *#/,!0,!1)?"qualifier":a.match(j,!0,!1)?"number":a.match(l,!0,!1)?"variable-3":a.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":a.match(m,!0,!1)?(a.backUp(1),"variable"):a.match(k,!0,!1)?"variable-2":a.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function e(a,b){for(var c,e=!1,f=!1;null!=(c=a.next());){if('"'===c&&!f){e=!0;break}f=!f&&"\\"===c}return e&&!f&&(b.tokenize=d),"string"}function f(a,b){for(var c,e;null!=(e=a.next());){if("*"===c&&"/"===e){b.tokenize=d;break}c=e}return"comment"}function g(a){var b=null;return a.scopes.length>0&&(b=a.scopes[a.scopes.length-1]),b}var h=(function(a){for(var b={},c=a.split(" "),d=0;d<c.length;++d)b[c[d]]=!0;return b})("Assert BackQuote D Defun Deriv For ForEach FromFile FromString Function Integrate InverseTaylor Limit LocalSymbols Macro MacroRule MacroRulePattern NIntegrate Rule RulePattern Subst TD TExplicitSum TSum Taylor Taylor1 Taylor2 Taylor3 ToFile ToStdout ToString TraceRule Until While"),i="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",j=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),k=new RegExp(i),l=new RegExp(i+"?_"+i),m=new RegExp(i+"\\s*\\(");return{startState:function(){return{tokenize:d,scopes:[]}},token:function(a,b){return a.eatSpace()?null:b.tokenize(a,b)},indent:function(c,e){if(c.tokenize!==d&&null!==c.tokenize)return a.Pass;var f=0;return"]"!==e&&"];"!==e&&"}"!==e&&"};"!==e&&");"!==e||(f=-1),(c.scopes.length+f)*b.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),a.defineMIME("text/x-yacas",{name:"yacas"})}));