function u(e){for(var t={},r=e.split(" "),o=0;o|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function h(e,t){for(var r,o=!1,a=!1;(r=e.next())!=null;){if(r==='"'&&!a){o=!0;break}a=!a&&r==="\\"}return o&&!a&&(t.tokenize=i),"string"}function b(e,t){for(var r,o;(o=e.next())!=null;){if(r==="*"&&o==="/"){t.tokenize=i;break}r=o}return"comment"}function c(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const d={name:"yacas",startState:function(){return{tokenize:i,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,r){if(e.tokenize!==i&&e.tokenize!==null)return null;var o=0;return(t==="]"||t==="];"||t==="}"||t==="};"||t===");")&&(o=-1),(e.scopes.length+o)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};export{d as yacas};