UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 2.05 kB
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,t){var i=e.next();return i===`"`?(t.tokenize=n,t.tokenize(e,t)):i===`(`&&e.eat(`*`)?(t.commentLevel++,t.tokenize=r,t.tokenize(e,t)):(e.backUp(1),e.match(l,!0,!1)||e.match(u,!0,!1)?`number`:e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?`atom`:e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?`meta`:e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?`string.special`:e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?`variableName.special`:e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?`character`:e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?`bracket`:e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?`variableName.constant`:e.match(d,!0,!1)?`keyword`:e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?`operator`:(e.next(),`error`))}function n(e,n){for(var r,i=!1,a=!1;(r=e.next())!=null;){if(r===`"`&&!a){i=!0;break}a=!a&&r===`\\`}return i&&!a&&(n.tokenize=t),`string`}function r(e,n){for(var r,i;n.commentLevel>0&&(i=e.next())!=null;)r===`(`&&i===`*`&&n.commentLevel++,r===`*`&&i===`)`&&n.commentLevel--,r=i;return n.commentLevel<=0&&(n.tokenize=t),`comment`}var i,a,o,s,c,l,u,d,f;function p(){return(p=e((()=>{i=`[a-zA-Z\\$][a-zA-Z0-9\\$]*`,a=`(?:\\d+)`,o=`(?:\\.\\d+|\\d+\\.\\d*|\\d+)`,s=`(?:\\.\\w+|\\w+\\.\\w*|\\w+)`,c="(?:`(?:`?"+o+`)?)`,l=RegExp(`(?:`+a+`(?:\\^\\^`+s+c+`?(?:\\*\\^[+-]?\\d+)?))`),u=RegExp(`(?:`+o+c+`?(?:\\*\\^[+-]?\\d+)?)`),d=RegExp("(?:`?)(?:"+i+")(?:`(?:"+i+"))*(?:`?)"),f={name:`mathematica`,startState:function(){return{tokenize:t,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:`(*`,close:`*)`}}}}})))()}p();export{f as mathematica}; //# sourceMappingURL=mathematica-C2wHxbxS.js.map