Server IP : 195.201.23.43 / Your IP : 18.119.104.149 Web Server : Apache System : Linux webserver2.vercom.be 5.4.0-192-generic #212-Ubuntu SMP Fri Jul 5 09:47:39 UTC 2024 x86_64 User : kdecoratie ( 1041) PHP Version : 7.1.33-63+ubuntu20.04.1+deb.sury.org+1 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/kdecoratie/public_html/media/editors/codemirror/mode/yacas/ |
Upload File : |
!(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"})}));Private