import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,t){for(var n=0;n&|]/.test(i)?(e.next(),`operator`):e.match(`define`)?`def`:(e.eatWhile(/[\w\-]/),p.hasOwnProperty(e.current())?m[e.current()]:e.current().match(l)?`variable`:(e.next(),`variableName.standard`))}function a(e,t){for(var n=!1,r=!1,a=0,o;o=e.next();){if(o==`/`&&n){if(a>0)a--;else{t.tokenize=i;break}}else o==`*`&&r&&a++;n=o==`*`,r=o==`/`}return`comment`}function o(e,t){return function(n,r){for(var a=!1,o,s=!1;(o=n.next())!=null;){if(o==e&&!a){s=!0;break}a=!a&&o==`\\`}return(s||!a)&&(r.tokenize=i),t}}var s,c,l,u,d,f,p,m,h;function g(){return(g=e((()=>{for(var e in s={unnamedDefinition:[`interface`],namedDefinition:[`module`,`library`,`macro`,`C-struct`,`C-union`,`C-function`,`C-callable-wrapper`],typeParameterizedDefinition:[`class`,`C-subtype`,`C-mapped-subtype`],otherParameterizedDefinition:[`method`,`function`,`C-variable`,`C-address`],constantSimpleDefinition:[`constant`],variableSimpleDefinition:[`variable`],otherSimpleDefinition:[`generic`,`domain`,`C-pointer-type`,`table`],statement:[`if`,`block`,`begin`,`method`,`case`,`for`,`select`,`when`,`unless`,`until`,`while`,`iterate`,`profiling`,`dynamic-bind`],separator:[`finally`,`exception`,`cleanup`,`else`,`elseif`,`afterwards`],other:[`above`,`below`,`by`,`from`,`handler`,`in`,`instance`,`let`,`local`,`otherwise`,`slot`,`subclass`,`then`,`to`,`keyed-by`,`virtual`],signalingCalls:[`signal`,`error`,`cerror`,`break`,`check-type`,`abort`]},s.otherDefinition=s.unnamedDefinition.concat(s.namedDefinition).concat(s.otherParameterizedDefinition),s.definition=s.typeParameterizedDefinition.concat(s.otherDefinition),s.parameterizedDefinition=s.typeParameterizedDefinition.concat(s.otherParameterizedDefinition),s.simpleDefinition=s.constantSimpleDefinition.concat(s.variableSimpleDefinition).concat(s.otherSimpleDefinition),s.keyword=s.statement.concat(s.separator).concat(s.other),c=`[-_a-zA-Z?!*@<>$%]+`,l=RegExp(`^`+c),u={symbolKeyword:c+`:`,symbolClass:`<`+c+`>`,symbolGlobal:`\\*`+c+`\\*`,symbolConstant:`\\$`+c},d={symbolKeyword:`atom`,symbolClass:`tag`,symbolGlobal:`variableName.standard`,symbolConstant:`variableName.constant`},u)u.hasOwnProperty(e)&&(u[e]=RegExp(`^`+u[e]));u.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/],f={},f.keyword=`keyword`,f.definition=`def`,f.simpleDefinition=`def`,f.signalingCalls=`builtin`,p={},m={},t([`keyword`,`definition`,`simpleDefinition`,`signalingCalls`],function(e){t(s[e],function(t){p[t]=e,m[t]=f[e]})}),h={name:`dylan`,startState:function(){return{tokenize:i,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:`/*`,close:`*/`}}}}})))()}g();export{h as dylan}; //# sourceMappingURL=dylan-7WzUunzT.js.map