import{g as w}from"./emoji-picker-DlAAdvrL.chunk.mjs";function A(t,a){for(var e=0;e<a.length;e++){const s=a[e];if(typeof s!="string"&&!Array.isArray(s)){for(const c in s)if(c!=="default"&&!(c in t)){const n=Object.getOwnPropertyDescriptor(s,c);n&&Object.defineProperty(t,c,n.get?n:{enumerable:!0,get:()=>s[c]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function C(t){const a=t.regex,e=/[a-zA-Z]\w*/,s=["as","break","class","construct","continue","else","for","foreign","if","import","in","is","return","static","var","while"],c=["true","false","null"],n=["this","super"],h=["Bool","Class","Fiber","Fn","List","Map","Null","Num","Object","Range","Sequence","String","System"],r=["-","~",/\*/,"%",/\.\.\./,/\.\./,/\+/,"<<",">>",">=","<=","<",">",/\^/,/!=/,/!/,/\bis\b/,"==","&&","&",/\|\|/,/\|/,/\?:/,"="],o={relevance:0,match:a.concat(/\b(?!(if|while|for|else|super)\b)/,e,/(?=\s*[({])/),className:"title.function"},f={match:a.concat(a.either(a.concat(/\b(?!(if|while|for|else|super)\b)/,e),a.either(...r)),/(?=\s*\([^)]+\)\s*\{)/),className:"title.function",starts:{contains:[{begin:/\(/,end:/\)/,contains:[{relevance:0,scope:"params",match:e}]}]}},d={variants:[{match:[/class\s+/,e,/\s+is\s+/,e]},{match:[/class\s+/,e]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},i={relevance:0,match:a.either(...r),className:"operator"},v={className:"string",begin:/"""/,end:/"""/},_={className:"property",begin:a.concat(/\./,a.lookahead(e)),end:e,excludeBegin:!0,relevance:0},l={relevance:0,match:a.concat(/\b_/,e),scope:"variable"},b={relevance:0,match:/\b[A-Z]+[a-z]+([A-Z]+[a-z]+)*/,scope:"title.class",keywords:{_:h}},m=t.C_NUMBER_MODE,y={match:[e,/\s*/,/=/,/\s*/,/\(/,e,/\)\s*\{/],scope:{1:"title.function",3:"operator",6:"params"}},N=t.COMMENT(/\/\*\*/,/\*\//,{contains:[{match:/@[a-z]+/,scope:"doctag"},"self"]}),p={scope:"subst",begin:/%\(/,end:/\)/,contains:[m,b,o,l,i]},u={scope:"string",begin:/"/,end:/"/,contains:[p,{scope:"char.escape",variants:[{match:/\\\\|\\["0%abefnrtv]/},{match:/\\x[0-9A-F]{2}/},{match:/\\u[0-9A-F]{4}/},{match:/\\U[0-9A-F]{8}/}]}]};p.contains.push(u);const O=[...s,...n,...c],M={relevance:0,match:a.concat("\\b(?!",O.join("|"),"\\b)",/[a-zA-Z_]\w*(?:[?!]|\b)/),className:"variable"};return{name:"Wren",keywords:{keyword:s,"variable.language":n,literal:c},contains:[{scope:"comment",variants:[{begin:[/#!?/,/[A-Za-z_]+(?=\()/],beginScope:{},keywords:{literal:c},contains:[],end:/\)/},{begin:[/#!?/,/[A-Za-z_]+/],beginScope:{},end:/$/}]},m,u,v,N,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,b,d,y,f,o,i,l,_,M]}}var g=C;const E=w(g),S=A({__proto__:null,default:E},[g]);export{g as a,S as w};
//# sourceMappingURL=wren-D_lLEVlA.chunk.mjs.map
