openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
2 lines • 2.17 kB
JavaScript
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,t){var r=e.next();if(/[\d\.]/.test(r))return r==`.`?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):r==`0`?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),`number`;if(r==`/`||r==`(`){if(e.eat(`*`))return t.tokenize=n,n(e,t);if(e.eat(`/`))return e.skipToEnd(),`comment`}if(u.test(r))return e.eatWhile(u),`operator`;e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current().toLowerCase();return o.propertyIsEnumerable(i)||s.propertyIsEnumerable(i)||c.propertyIsEnumerable(i)?`keyword`:l.propertyIsEnumerable(i)?`atom`:`variable`}function n(e,n){for(var r=!1,i;i=e.next();){if((i==`/`||i==`)`)&&r){n.tokenize=t;break}r=i==`*`}return`comment`}function r(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function i(e,t,n){return e.context=new r(e.indented,t,n,null,e.context)}function a(e){if(e.context.prev)return e.context.type==`end_block`&&(e.indented=e.context.indented),e.context=e.context.prev}var o,s,c,l,u,d;function f(){return(f=e((()=>{o={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},s={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},c={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},l={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},u=/[+\-*&^%:=<>!|\/]/,d={name:`fcl`,startState:function(e){return{tokenize:null,context:new r(-e,0,`top`,!1),indented:0,startOfLine:!0}},token:function(e,n){var r=n.context;if(e.sol()&&(r.align??=!1,n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;var o=(n.tokenize||t)(e,n);if(o==`comment`)return o;r.align??=!0;var l=e.current().toLowerCase();return s.propertyIsEnumerable(l)?i(n,e.column(),`end_block`):c.propertyIsEnumerable(l)&&a(n),n.startOfLine=!1,o},indent:function(e,n,r){if(e.tokenize!=t&&e.tokenize!=null)return 0;var i=e.context,a=c.propertyIsEnumerable(n);return i.align?i.column+ +!a:i.indented+(a?0:r.unit)},languageData:{commentTokens:{line:`//`,block:{open:`(*`,close:`*)`}}}}})))()}f();export{d as fcl};
//# sourceMappingURL=fcl-BZeKn5iW.js.map