var y,M;function Z(){if(M)return y;M=1;function $(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function E(e){return e?typeof e=="string"?e:e.source:null}function o(e){return n("(?=",e,")")}function n(...e){return e.map(t=>E(t)).join("")}function B(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function i(...e){return"("+(B(e).capture?"":"?:")+e.map(t=>E(t)).join("|")+")"}function D(e){const t=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],_={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},I=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],L=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],U=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],q=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],s={keyword:t,literal:L,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":U},c={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),e.C_LINE_COMMENT_MODE]},F=/[a-zA-Z_](\w|')*/,r={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,l={scope:"symbol",variants:[{match:n(v,/``.*?``/)},{match:n(v,e.UNDERSCORE_IDENT_RE)}],relevance:0},w=function({includeEqual:m}){let a;m?a="!%&*+-/<=>@^|~?":a="!%&*+-/<>@^|~?";const T=Array.from(a),N=n("[",...T.map($),"]"),h=i(N,/\./),z=n(h,o(h)),Y=i(n(z,h,"*"),n(N,"+"));return{scope:"operator",match:i(Y,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},A=w({includeEqual:!0}),j=w({includeEqual:!1}),S=function(m,a){return{begin:n(m,o(n(/\s*/,i(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:a,end:o(i(/\n/,/=/)),relevance:0,keywords:e.inherit(s,{type:q}),contains:[c,l,e.inherit(r,{scope:null}),j]}},f=S(/:/,"operator"),H=S(/\bof\b/,"keyword"),K={begin:[/(^|\s+)/,/type/,/\s+/,F],beginScope:{2:"keyword",4:"title.class"},end:o(/\(|=|$/),keywords:s,contains:[c,e.inherit(r,{scope:null}),l,{scope:"operator",match:/<|>/},f]},C={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},x={begin:[/^\s*/,n(/#/,i(...I)),/\b/],beginScope:{2:"meta"},end:o(/\s|$/)},p={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},d={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},b={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},O={scope:"string",begin:/"""/,end:/"""/,relevance:2},u={scope:"subst",begin:/\{/,end:/\}/,keywords:s},R={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,u]},k={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,u]},P={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},u],relevance:2},g={scope:"string",match:n(/'/,i(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return u.contains=[k,R,b,d,g,_,c,r,f,C,x,p,l,A],{name:"F#",aliases:["fs","f#"],keywords:s,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[_,{variants:[P,k,R,O,b,d,g]},c,r,K,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[r,O,b,d,g,p]},H,f,C,x,p,l,A]}}return y=D,y}export{Z as r};
//# sourceMappingURL=fsharp-DVfzW2cv.chunk.mjs.map
