UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 3.64 kB
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e){return{name:`mscgen`,startState:i,copyState:a,token:o(e),languageData:{commentTokens:{line:`#`,block:{open:`/*`,close:`*/`}}}}}function n(e){return RegExp(`^\\b(`+e.join(`|`)+`)\\b`,`i`)}function r(e){return RegExp(`^(?:`+e.join(`|`)+`)`,`i`)}function i(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function a(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}function o(e){return function(t,i){if(t.match(r(e.brackets),!0,!0))return`bracket`;if(!i.inComment){if(t.match(/\/\*[^\*\/]*/,!0,!0))return i.inComment=!0,`comment`;if(t.match(r(e.singlecomment),!0,!0))return t.skipToEnd(),`comment`}if(i.inComment)return t.match(/[^\*\/]*\*\//,!0,!0)?i.inComment=!1:t.skipToEnd(),`comment`;if(!i.inString&&t.match(/\"(\\\"|[^\"])*/,!0,!0))return i.inString=!0,`string`;if(i.inString)return t.match(/[^\"]*\"/,!0,!0)?i.inString=!1:t.skipToEnd(),`string`;if(e.keywords&&t.match(n(e.keywords),!0,!0)||t.match(n(e.options),!0,!0)||t.match(n(e.arcsWords),!0,!0)||t.match(r(e.arcsOthers),!0,!0))return`keyword`;if(e.operators&&t.match(r(e.operators),!0,!0))return`operator`;if(e.constants&&t.match(r(e.constants),!0,!0))return`variable`;if(!e.inAttributeList&&e.attributes&&t.match(`[`,!0,!0))return e.inAttributeList=!0,`bracket`;if(e.inAttributeList){if(e.attributes!==null&&t.match(n(e.attributes),!0,!0))return`attribute`;if(t.match(`]`,!0,!0))return e.inAttributeList=!1,`bracket`}return t.next(),null}}var s,c,l;function u(){return(u=e((()=>{s=t({keywords:[`msc`],options:[`hscale`,`width`,`arcgradient`,`wordwraparcs`],constants:[`true`,`false`,`on`,`off`],attributes:[`label`,`idurl`,`id`,`url`,`linecolor`,`linecolour`,`textcolor`,`textcolour`,`textbgcolor`,`textbgcolour`,`arclinecolor`,`arclinecolour`,`arctextcolor`,`arctextcolour`,`arctextbgcolor`,`arctextbgcolour`,`arcskip`],brackets:[`\\{`,`\\}`],arcsWords:[`note`,`abox`,`rbox`,`box`],arcsOthers:[`\\|\\|\\|`,`\\.\\.\\.`,`---`,`--`,`<->`,`==`,`<<=>>`,`<=>`,`\\.\\.`,`<<>>`,`::`,`<:>`,`->`,`=>>`,`=>`,`>>`,`:>`,`<-`,`<<=`,`<=`,`<<`,`<:`,`x-`,`-x`],singlecomment:[`//`,`#`],operators:[`=`]}),c=t({keywords:null,options:[`hscale`,`width`,`arcgradient`,`wordwraparcs`,`wordwrapentities`,`watermark`],constants:[`true`,`false`,`on`,`off`,`auto`],attributes:null,brackets:[`\\{`,`\\}`],arcsWords:[`note`,`abox`,`rbox`,`box`,`alt`,`else`,`opt`,`break`,`par`,`seq`,`strict`,`neg`,`critical`,`ignore`,`consider`,`assert`,`loop`,`ref`,`exc`],arcsOthers:[`\\|\\|\\|`,`\\.\\.\\.`,`---`,`--`,`<->`,`==`,`<<=>>`,`<=>`,`\\.\\.`,`<<>>`,`::`,`<:>`,`->`,`=>>`,`=>`,`>>`,`:>`,`<-`,`<<=`,`<=`,`<<`,`<:`,`x-`,`-x`],singlecomment:[`//`,`#`],operators:[`=`]}),l=t({keywords:[`msc`,`xu`],options:[`hscale`,`width`,`arcgradient`,`wordwraparcs`,`wordwrapentities`,`watermark`],constants:[`true`,`false`,`on`,`off`,`auto`],attributes:[`label`,`idurl`,`id`,`url`,`linecolor`,`linecolour`,`textcolor`,`textcolour`,`textbgcolor`,`textbgcolour`,`arclinecolor`,`arclinecolour`,`arctextcolor`,`arctextcolour`,`arctextbgcolor`,`arctextbgcolour`,`arcskip`,`title`,`deactivate`,`activate`,`activation`],brackets:[`\\{`,`\\}`],arcsWords:[`note`,`abox`,`rbox`,`box`,`alt`,`else`,`opt`,`break`,`par`,`seq`,`strict`,`neg`,`critical`,`ignore`,`consider`,`assert`,`loop`,`ref`,`exc`],arcsOthers:[`\\|\\|\\|`,`\\.\\.\\.`,`---`,`--`,`<->`,`==`,`<<=>>`,`<=>`,`\\.\\.`,`<<>>`,`::`,`<:>`,`->`,`=>>`,`=>`,`>>`,`:>`,`<-`,`<<=`,`<=`,`<<`,`<:`,`x-`,`-x`],singlecomment:[`//`,`#`],operators:[`=`]})})))()}u();export{s as mscgen,c as msgenny,l as xu}; //# sourceMappingURL=mscgen-Cfn4e7TB.js.map