UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 3.82 kB
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e){return RegExp(`^((`+e.join(`)|(`)+`))\\b`,`i`)}function n(e,t){t.currentIndent++}function r(e,t){t.currentIndent--}function i(e,t){if(e.eatSpace())return null;if(e.peek()===`'`)return e.skipToEnd(),`comment`;if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var i=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(i=!0),i)return e.eat(/J/i),`number`;var o=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?o=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),o=!0):e.match(/^0(?![\dx])/i)&&(o=!0),o)return e.eat(/L/i),`number`}return e.match(C)?(t.tokenize=a(e.current()),t.tokenize(e,t)):e.match(f)||e.match(d)?null:e.match(u)||e.match(c)||e.match(v)?`operator`:e.match(l)?null:e.match(O)?(n(e,t),t.doInCurrentLine=!0,`keyword`):e.match(w)?(t.doInCurrentLine?t.doInCurrentLine=!1:n(e,t),`keyword`):e.match(T)?`keyword`:e.match(D)?(r(e,t),r(e,t),`keyword`):e.match(E)?(r(e,t),`keyword`):e.match(S)||e.match(x)?`keyword`:e.match(p)?`variable`:(e.next(),s)}function a(e){var t=e.length==1,n=`string`;return function(r,a){for(;!r.eol();){if(r.eatWhile(/[^'"]/),r.match(e))return a.tokenize=i,n;r.eat(/['"]/)}return t&&(a.tokenize=i),n}}function o(e,t){var i=t.tokenize(e,t),a=e.current();if(a===`.`)return i=t.tokenize(e,t),i===`variable`?`variable`:s;var o=`[({`.indexOf(a);return o!==-1&&n(e,t),k===`dedent`&&r(e,t)||(o=`])}`.indexOf(a),o!==-1&&r(e,t))?s:i}var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A;function j(){return(j=e((()=>{s=`error`,c=RegExp(`^[\\+\\-\\*/%&\\\\|\\^~<>!]`),l=RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),u=RegExp(`^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))`),d=RegExp(`^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))`),f=RegExp(`^((//=)|(>>=)|(<<=)|(\\*\\*=))`),p=RegExp(`^[_A-Za-z][_A-Za-z0-9]*`),m=[`class`,`module`,`sub`,`enum`,`select`,`while`,`if`,`function`,`get`,`set`,`property`,`try`,`structure`,`synclock`,`using`,`with`],h=[`else`,`elseif`,`case`,`catch`,`finally`],g=[`next`,`loop`],_=[`and`,`andalso`,`or`,`orelse`,`xor`,`in`,`not`,`is`,`isnot`,`like`],v=t(_),y=`#const.#else.#elseif.#end.#if.#region.addhandler.addressof.alias.as.byref.byval.cbool.cbyte.cchar.cdate.cdbl.cdec.cint.clng.cobj.compare.const.continue.csbyte.cshort.csng.cstr.cuint.culng.cushort.declare.default.delegate.dim.directcast.each.erase.error.event.exit.explicit.false.for.friend.gettype.goto.handles.implements.imports.infer.inherits.interface.isfalse.istrue.lib.me.mod.mustinherit.mustoverride.my.mybase.myclass.namespace.narrowing.new.nothing.notinheritable.notoverridable.of.off.on.operator.option.optional.out.overloads.overridable.overrides.paramarray.partial.private.protected.public.raiseevent.readonly.redim.removehandler.resume.return.shadows.shared.static.step.stop.strict.then.throw.to.true.trycast.typeof.until.until.when.widening.withevents.writeonly`.split(`.`),b=`object.boolean.char.string.byte.sbyte.short.ushort.int16.uint16.integer.uinteger.int32.uint32.long.ulong.int64.uint64.decimal.single.double.float.date.datetime.intptr.uintptr`.split(`.`),x=t(y),S=t(b),C=`"`,w=t(m),T=t(h),E=t(g),D=t([`end`]),O=t([`do`]),k=null,A={name:`vb`,startState:function(){return{tokenize:i,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=o(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,``);return r.match(E)||r.match(D)||r.match(T)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:[`(`,`[`,`{`,`"`]},commentTokens:{line:`'`},autocomplete:m.concat(h).concat(g).concat(_).concat(y).concat(b)}}})))()}j();export{A as vb}; //# sourceMappingURL=vb-CLop06NZ.js.map