Liferay.Loader.define("portal-search-web$codemirror@5.62.0/mode/yacas/yacas",["module","exports","require","../../lib/codemirror"],(function(e,t,r){window,function(e){"use strict";e.defineMode("yacas",(function(t,r){var n=function(e){for(var t={},r="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".split(" "),n=0;n<r.length;++n)t[r[n]]=!0;return t}(),o="(?:[a-zA-Z\\$'][a-zA-Z0-9\\$']*)",a=new RegExp("(?:(?:\\.\\d+|\\d+\\.\\d*|\\d+)(?:[eE][+-]?\\d+)?)"),i=new RegExp(o),c=new RegExp(o+"?_"+o),u=new RegExp(o+"\\s*\\(");function l(e,t){var r=e.next();if('"'===r)return t.tokenize=s,t.tokenize(e,t);if("/"===r){if(e.eat("*"))return t.tokenize=p,t.tokenize(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}e.backUp(1);var o=e.match(/^(\w+)\s*\(/,!1);null!==o&&n.hasOwnProperty(o[1])&&t.scopes.push("bodied");var l=f(t);if("bodied"===l&&"["===r&&t.scopes.pop(),"["!==r&&"{"!==r&&"("!==r||t.scopes.push(r),("["===(l=f(t))&&"]"===r||"{"===l&&"}"===r||"("===l&&")"===r)&&t.scopes.pop(),";"===r)for(;"bodied"===l;)t.scopes.pop(),l=f(t);return e.match(/\d+ *#/,!0,!1)?"qualifier":e.match(a,!0,!1)?"number":e.match(c,!0,!1)?"variable-3":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(u,!0,!1)?(e.backUp(1),"variable"):e.match(i,!0,!1)?"variable-2":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function s(e,t){for(var r,n=!1,o=!1;null!=(r=e.next());){if('"'===r&&!o){n=!0;break}o=!o&&"\\"===r}return n&&!o&&(t.tokenize=l),"string"}function p(e,t){for(var r,n;null!=(n=e.next());){if("*"===r&&"/"===n){t.tokenize=l;break}r=n}return"comment"}function f(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}return{startState:function(){return{tokenize:l,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(r,n){if(r.tokenize!==l&&null!==r.tokenize)return e.Pass;var o=0;return"]"!==n&&"];"!==n&&"}"!==n&&"};"!==n&&");"!==n||(o=-1),(r.scopes.length+o)*t.indentUnit},electricChars:"{}[]();",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}})),e.defineMIME("text/x-yacas",{name:"yacas"})}("object"==typeof t&&"object"==typeof e?r("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=yacas.js.map