openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 2.25 kB
JavaScript
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`)}function n(e,t){return!e.sol()&&e.peek()===`'`?(e.next(),t.tokenize=i,`operator`):(t.tokenize=i,i(e,t))}function r(e,t){return e.match(/^.*%}/)?(t.tokenize=i,`comment`):(e.skipToEnd(),`comment`)}function i(e,m){if(e.eatSpace())return null;if(e.match(`%{`))return m.tokenize=r,e.skipToEnd(),`comment`;if(e.match(/^[%#]/))return e.skipToEnd(),`comment`;if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=i,`number`;if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)||e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return`number`}if(e.match(t([`nan`,`NaN`,`inf`,`Inf`])))return`number`;var h=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return h?h[1]?`string`:`error`:e.match(p)?`keyword`:e.match(f)?`builtin`:e.match(d)?`variable`:e.match(a)||e.match(s)?`operator`:e.match(o)||e.match(c)||e.match(l)?null:e.match(u)?(m.tokenize=n,null):(e.next(),`error`)}var a,o,s,c,l,u,d,f,p,m;function h(){return(h=e((()=>{a=RegExp(`^[\\+\\-\\*/&|\\^~<>!@'\\\\]`),o=RegExp(`^[\\(\\[\\{\\},:=;\\.]`),s=RegExp(`^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))`),c=RegExp(`^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))`),l=RegExp(`^((>>=)|(<<=))`),u=RegExp(`^[\\]\\)]`),d=RegExp(`^[_A-Za-z¡-][_A-Za-z0-9¡-]*`),f=t(`error.eval.function.abs.acos.atan.asin.cos.cosh.exp.log.prod.sum.log10.max.min.sign.sin.sinh.sqrt.tan.reshape.break.zeros.default.margin.round.ones.rand.syn.ceil.floor.size.clear.zeros.eye.mean.std.cov.det.eig.inv.norm.rank.trace.expm.logm.sqrtm.linspace.plot.title.xlabel.ylabel.legend.text.grid.meshgrid.mesh.num2str.fft.ifft.arrayfun.cellfun.input.fliplr.flipud.ismember`.split(`.`)),p=t(`return.case.switch.else.elseif.end.endif.endfunction.if.otherwise.do.for.while.try.catch.classdef.properties.events.methods.global.persistent.endfor.endwhile.printf.sprintf.disp.until.continue.pkg`.split(`.`)),m={name:`octave`,startState:function(){return{tokenize:i}},token:function(e,t){var r=t.tokenize(e,t);return(r===`number`||r===`variable`)&&(t.tokenize=n),r},languageData:{commentTokens:{line:`%`}}}})))()}h();export{m as octave};
//# sourceMappingURL=octave-DsuOxwxE.js.map