@shikijs/langs-precompiled 3.6.0 → 3.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astro.mjs +3 -1
- package/dist/erlang.mjs +3 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/index.mjs +1 -0
- package/dist/julia.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +4 -3
- package/dist/mermaid.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/vue-vine.d.mts +3 -0
- package/dist/vue-vine.mjs +21 -0
- package/dist/vue.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -3
package/dist/astro.mjs
CHANGED
|
@@ -4,8 +4,9 @@ import javascript from './javascript.mjs'
|
|
|
4
4
|
import typescript from './typescript.mjs'
|
|
5
5
|
import css from './css.mjs'
|
|
6
6
|
import postcss from './postcss.mjs'
|
|
7
|
+
import tsx from './tsx.mjs'
|
|
7
8
|
|
|
8
|
-
const lang = Object.freeze({displayName:"Astro",fileTypes:["astro"],injections:{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.js",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.js"}]}]},"L:(meta.script.astro) (meta.lang.json) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.json",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.json"}]}]},"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.ts",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.ts"}]}]},"L:meta.script.astro - meta.lang - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.js",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.js"}]}]},"L:meta.style.astro - meta.lang - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css"}]}]},"L:meta.style.astro meta.lang.css - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css"}]}]},"L:meta.style.astro meta.lang.less - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.less",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.less"}]}]},"L:meta.style.astro meta.lang.postcss - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.postcss",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.postcss"}]}]},"L:meta.style.astro meta.lang.sass - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.sass",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.sass"}]}]},"L:meta.style.astro meta.lang.scss - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.scss",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.scss"}]}]},"L:meta.style.astro meta.lang.stylus - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.stylus",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.stylus"}]}]}},name:"astro",patterns:[{include:"#scope"},{include:"#frontmatter"},{include:"#text"}],repository:{"attribute-literal":{begin:/(`)/dgv,end:/\1()/dgv,name:"string.template.astro",patterns:[{include:"source.tsx#template-substitution-element"},{include:"source.tsx#string-character-escape"}]},attributes:{patterns:[{include:"#attributes-events"},{include:"#attributes-keyvalue"},{include:"#attributes-interpolated"}]},"attributes-events":{begin:/(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\-\:\\w])/dgv,beginCaptures:{"0":{patterns:[{match:/[^\n]*/dgv,name:"entity.other.attribute-name.astro"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"hiddenCaptures":[1]}),name:"meta.attribute.$1.astro",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.astro"}},end:/(?<=[^\=\p{space}])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#interpolation"},{include:"#attribute-literal"},{begin:/(?=[^\/\<\=\>\`\p{space}]|\/(?!>))/dgv,end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.line.js",patterns:[{captures:{"0":{name:"source.js"},"1":{patterns:[{include:"source.js"}]}},match:/(([^"'\/\<\=\>\`\p{space}]|\/(?!>))+)/dgv,name:"string.unquoted.astro"},{begin:/(")/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro",patterns:[{captures:{"0":{patterns:[{include:"source.js"}]}},match:/([^\n"\/]|\/(?![\*\/]))+/dgv},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=")|\n/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.js"}},end:/(?=")|\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]},{begin:/(')/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro",patterns:[{captures:{"0":{patterns:[{include:"source.js"}]}},match:/([^\n'\/]|\/(?![\*\/]))+/dgv},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=')|\n/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.js"}},end:/(?=')|\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]}]}]}]},"attributes-interpolated":{begin:/(?<![\:\=])\p{space}*(\{)/dgv,contentName:"meta.embedded.expression.astro source.tsx",end:/(\})/dgv,patterns:[{include:"source.tsx"}]},"attributes-keyvalue":{begin:/([\$\@_\p{Alpha}][\-\$\.\:_\p{Alpha}\p{Nd}]*)/dgv,beginCaptures:{"0":{patterns:[{match:/[^\n]*/dgv,name:"entity.other.attribute-name.astro"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"hiddenCaptures":[1]}),name:"meta.attribute.$1.astro",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.astro"}},end:/(?<=[^\=\p{space}])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-value":{patterns:[{include:"#interpolation"},{match:/([^"'\/\<\=\>\`\p{space}]|\/(?!>))+/dgv,name:"string.unquoted.astro"},{begin:/(["'])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro"},{include:"#attribute-literal"}]},comments:{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.astro"}},end:/-->/dgv,name:"comment.block.astro",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("^-?>|<!--(?!>)|<!-(?=-->)|--!>","dgv",{"strategy":"clip_search"}),name:"invalid.illegal.characters-not-allowed-here.astro"}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.astro"},"912":{name:"punctuation.definition.entity.astro"}},match:/*@__PURE__*/ new EmulatedRegExp("(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","dgv",{"lazyCompile":true}),name:"constant.character.entity.named.$2.astro"},{captures:{"1":{name:"punctuation.definition.entity.astro"},"3":{name:"punctuation.definition.entity.astro"}},match:/(&)#[0-9]+(;)/dgv,name:"constant.character.entity.numeric.decimal.astro"},{captures:{"1":{name:"punctuation.definition.entity.astro"},"3":{name:"punctuation.definition.entity.astro"}},match:/(&)#[Xx]\p{AHex}+(;)/dgv,name:"constant.character.entity.numeric.hexadecimal.astro"},{match:/&(?=[0-9A-Za-z]+;)/dgv,name:"invalid.illegal.ambiguous-ampersand.astro"}]},frontmatter:{begin:/^(-{3})\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"comment"}},contentName:"source.ts",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(-{3})|\\.{3}\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"2":{name:"comment"}},patterns:[{include:"source.ts"}]},interpolation:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.astro"}},contentName:"meta.embedded.expression.astro source.tsx",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.astro"}},patterns:[{begin:/\p{space}*(?=\{)/dgvy,end:/(?<=\})/dgv,patterns:[{include:"source.tsx#object-literal"}]},{include:"source.tsx"}]}]},scope:{patterns:[{include:"#comments"},{include:"#tags"},{include:"#interpolation"},{include:"#entities"}]},tags:{patterns:[{include:"#tags-raw"},{include:"#tags-lang"},{include:"#tags-void"},{include:"#tags-general-end"},{include:"#tags-general-start"}]},"tags-end-node":{captures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{name:"meta.tag.end.astro",patterns:[{include:"#tags-name"}]},"3":{name:"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{name:"meta.tag.start.astro punctuation.definition.tag.end.astro"}},match:/(<\/)([^\n]*?)\p{space}*(>)|(\/>)/dgv},"tags-general-end":{begin:/(<\/)([^\/\>\p{space}]*)/dgv,beginCaptures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{name:"meta.tag.end.astro",patterns:[{include:"#tags-name"}]}},end:/(>)/dgv,endCaptures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.end.astro"}},name:"meta.scope.tag.$2.astro"},"tags-general-start":{begin:/(<)([^\/\>\p{space}]*)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"meta.tag.start.astro punctuation.definition.tag.end.astro"}},name:"meta.scope.tag.$2.astro",patterns:[{include:"#tags-start-attributes"}]},"tags-lang":{begin:/<(s(?:cript|tyle))/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.scope.tag.$1.astro meta.$1.astro",patterns:[{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(?:text\/)?(application\/ld\+json)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.json.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(module)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.javascript.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(?:text\/|application\/)?([\+\/\p{L}\p{M}\p{N}\p{Pc}]+)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.$3.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{include:"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{begin:/(?:)/dgv,end:/(?=\/>)|>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.astro"}},name:"meta.tag.start.astro",patterns:[{include:"#attributes"}]},"tags-name":{patterns:[{match:/[A-Z][0-9A-Z_a-z]*/dgv,name:"support.class.component.astro"},{match:/[a-z][0-\:\p{L}\p{M}\p{N}\p{Pc}]*-[\-0-\:\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"meta.tag.custom.astro entity.name.tag.astro"},{match:/[a-z][\-0-\:\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"entity.name.tag.astro"}]},"tags-raw":{begin:/<([^\!\/\<\>\?\p{space}]+)(?=[^\>]+is:raw)[^\n]*?/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},contentName:"source.unknown",end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.scope.tag.$1.astro meta.raw.astro",patterns:[{include:"#tags-lang-start-attributes"}]},"tags-start-attributes":{begin:/(?:)/dgv,end:/(?=\/?>)/dgv,name:"meta.tag.start.astro",patterns:[{include:"#attributes"}]},"tags-start-node":{captures:{"1":{name:"punctuation.definition.tag.begin.astro"},"2":{patterns:[{include:"#tags-name"}]}},match:/(<)([^\/\>\p{space}]*)/dgv,name:"meta.tag.start.astro"},"tags-void":{begin:/(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\p{space}|\/?>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.astro"},"2":{name:"entity.name.tag.astro"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.begin.astro"}},name:"meta.tag.void.astro",patterns:[{include:"#attributes"}]},text:{patterns:[{begin:/(?<=^|---|[\>\}])/dgv,end:/(?=[\<\{]|(?=\n?$))/dgv,name:"text.astro",patterns:[{include:"#entities"}]}]}},scopeName:"source.astro",embeddedLangs:["json","javascript","typescript","css","postcss"],aliases:undefined,embeddedLangsLazy:["stylus","sass","scss","less","tsx"]})
|
|
9
|
+
const lang = Object.freeze({displayName:"Astro",fileTypes:["astro"],injections:{"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.js",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.js"}]}]},"L:(meta.script.astro) (meta.lang.json) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.json",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.json"}]}]},"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.ts",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.ts"}]}]},"L:meta.script.astro - meta.lang - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.js",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.js"}]}]},"L:meta.style.astro - meta.lang - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css"}]}]},"L:meta.style.astro meta.lang.css - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css"}]}]},"L:meta.style.astro meta.lang.less - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.less",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.less"}]}]},"L:meta.style.astro meta.lang.postcss - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.postcss",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.postcss"}]}]},"L:meta.style.astro meta.lang.sass - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.sass",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.sass"}]}]},"L:meta.style.astro meta.lang.scss - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.css.scss",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.css.scss"}]}]},"L:meta.style.astro meta.lang.stylus - (meta source)":{patterns:[{begin:/(?<=>)(?!<\/)/dgv,contentName:"source.stylus",end:/(?=<\/)/dgv,name:"meta.embedded.block.astro",patterns:[{include:"source.stylus"}]}]}},name:"astro",patterns:[{include:"#scope"},{include:"#frontmatter"},{include:"#text"}],repository:{"attribute-literal":{begin:/(`)/dgv,end:/\1()/dgv,name:"string.template.astro",patterns:[{include:"source.tsx#template-substitution-element"},{include:"source.tsx#string-character-escape"}]},attributes:{patterns:[{include:"#attributes-events"},{include:"#attributes-keyvalue"},{include:"#attributes-interpolated"}]},"attributes-events":{begin:/(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o((?:n|ff)line)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d((?:|meta)data)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\-\:\\w])/dgv,beginCaptures:{"0":{patterns:[{match:/[^\n]*/dgv,name:"entity.other.attribute-name.astro"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"hiddenCaptures":[1]}),name:"meta.attribute.$1.astro",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.astro"}},end:/(?<=[^\=\p{space}])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#interpolation"},{include:"#attribute-literal"},{begin:/(?=[^\/\<\=\>\`\p{space}]|\/(?!>))/dgv,end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),name:"meta.embedded.line.js",patterns:[{captures:{"0":{name:"source.js"},"1":{patterns:[{include:"source.js"}]}},match:/(([^"'\/\<\=\>\`\p{space}]|\/(?!>))+)/dgv,name:"string.unquoted.astro"},{begin:/(")/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro",patterns:[{captures:{"0":{patterns:[{include:"source.js"}]}},match:/([^\n"\/]|\/(?![\*\/]))+/dgv},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=")|\n/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.js"}},end:/(?=")|\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]},{begin:/(')/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro",patterns:[{captures:{"0":{patterns:[{include:"source.js"}]}},match:/([^\n'\/]|\/(?![\*\/]))+/dgv},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.js"}},end:/(?=')|\n/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.js"}},end:/(?=')|\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.js"}},name:"comment.block.js"}]}]}]}]},"attributes-interpolated":{begin:/(?<![\:\=])\p{space}*(\{)/dgv,contentName:"meta.embedded.expression.astro source.tsx",end:/(\})/dgv,patterns:[{include:"source.tsx"}]},"attributes-keyvalue":{begin:/([\$\@_\p{Alpha}][\-\$\.\:_\p{Alpha}\p{Nd}]*)/dgv,beginCaptures:{"0":{patterns:[{match:/[^\n]*/dgv,name:"entity.other.attribute-name.astro"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=(\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"hiddenCaptures":[1]}),name:"meta.attribute.$1.astro",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.astro"}},end:/(?<=[^\=\p{space}])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-value":{patterns:[{include:"#interpolation"},{match:/([^"'\/\<\=\>\`\p{space}]|\/(?!>))+/dgv,name:"string.unquoted.astro"},{begin:/(["'])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.astro"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.astro"}},name:"string.quoted.astro"},{include:"#attribute-literal"}]},comments:{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.astro"}},end:/-->/dgv,name:"comment.block.astro",patterns:[{match:/*@__PURE__*/ new EmulatedRegExp("^-?>|<!--(?!>)|<!-(?=-->)|--!>","dgv",{"strategy":"clip_search"}),name:"invalid.illegal.characters-not-allowed-here.astro"}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.astro"},"912":{name:"punctuation.definition.entity.astro"}},match:/*@__PURE__*/ new EmulatedRegExp("(&)(?=[A-Za-z])((a(s(ymp(eq)?|cr|t)|n(d(slope|[dv]|and)?|g(s(t|ph)|zarr|e|le|rt(vb(d)?)?|msd(a([a-h]))?)?)|c(y|irc|d|ute|E)?|tilde|o(pf|gon)|uml|p(id|os|prox(eq)?|[Ee]|acir)?|elig|f(r)?|w((?:con|)int)|l(pha|e(ph|fsym))|acute|ring|grave|m(p|a(cr|lg))|breve)|A(s(sign|cr)|nd|MP|c(y|irc)|tilde|o(pf|gon)|uml|pplyFunction|fr|Elig|lpha|acute|ring|grave|macr|breve))|(B(scr|cy|opf|umpeq|e(cause|ta|rnoullis)|fr|a(ckslash|r(v|wed))|reve)|b(s(cr|im(e)?|ol(hsub|b)?|emi)|n(ot|e(quiv)?)|c(y|ong)|ig(s(tar|qcup)|c(irc|up|ap)|triangle(down|up)|o(times|dot|plus)|uplus|vee|wedge)|o(t(tom)?|pf|wtie|x(h([DUdu])?|times|H([DUdu])?|d([LRlr])|u([LRlr])|plus|D([LRlr])|v([HLRhlr])?|U([LRlr])|V([HLRhlr])?|minus|box))|Not|dquo|u(ll(et)?|mp(e(q)?|E)?)|prime|e(caus(e)?|t(h|ween|a)|psi|rnou|mptyv)|karow|fr|l(ock|k(1([24])|34)|a(nk|ck(square|triangle(down|left|right)?|lozenge)))|a(ck(sim(eq)?|cong|prime|epsilon)|r(vee|wed(ge)?))|r(eve|vbar)|brk(tbrk)?))|(c(s(cr|u(p(e)?|b(e)?))|h(cy|i|eck(mark)?)|ylcty|c(irc|ups(sm)?|edil|a(ps|ron))|tdot|ir(scir|c(eq|le(d(R|circ|S|dash|ast)|arrow(left|right)))?|e|fnint|E|mid)?|o(n(int|g(dot)?)|p(y(sr)?|f|rod)|lon(e(q)?)?|m(p(fn|le(xes|ment))?|ma(t)?))|dot|u(darr([lr])|p(s|c([au]p)|or|dot|brcap)?|e(sc|pr)|vee|wed|larr(p)?|r(vearrow(left|right)|ly(eq(succ|prec)|vee|wedge)|arr(m)?|ren))|e(nt(erdot)?|dil|mptyv)|fr|w((?:con|)int)|lubs(uit)?|a(cute|p(s|c([au]p)|dot|and|brcup)?|r(on|et))|r(oss|arr))|C(scr|hi|c(irc|onint|edil|aron)|ircle(Minus|Times|Dot|Plus)|Hcy|o(n(tourIntegral|int|gruent)|unterClockwiseContourIntegral|p(f|roduct)|lon(e)?)|dot|up(Cap)?|OPY|e(nterDot|dilla)|fr|lo(seCurly((?:Double|)Quote)|ckwiseContourIntegral)|a(yleys|cute|p(italDifferentialD)?)|ross))|(d(s(c([ry])|trok|ol)|har([lr])|c(y|aron)|t(dot|ri(f)?)|i(sin|e|v(ide(ontimes)?|onx)?|am(s|ond(suit)?)?|gamma)|Har|z(cy|igrarr)|o(t(square|plus|eq(dot)?|minus)?|ublebarwedge|pf|wn(harpoon(left|right)|downarrows|arrow)|llar)|d(otseq|a(rr|gger))?|u(har|arr)|jcy|e(lta|g|mptyv)|f(isht|r)|wangle|lc(orn|rop)|a(sh(v)?|leth|rr|gger)|r(c(orn|rop)|bkarow)|b(karow|lac)|Arr)|D(s(cr|trok)|c(y|aron)|Scy|i(fferentialD|a(critical(Grave|Tilde|Do(t|ubleAcute)|Acute)|mond))|o(t(Dot|Equal)?|uble(Right(Tee|Arrow)|ContourIntegral|Do(t|wnArrow)|Up((?:Down|)Arrow)|VerticalBar|L(ong(RightArrow|Left((?:Right|)Arrow))|eft(RightArrow|Tee|Arrow)))|pf|wn(Right(TeeVector|Vector(Bar)?)|Breve|Tee(Arrow)?|arrow|Left(RightVector|TeeVector|Vector(Bar)?)|Arrow(Bar|UpArrow)?))|Zcy|el(ta)?|D(otrahd)?|Jcy|fr|a(shv|rr|gger)))|(e(s(cr|im|dot)|n(sp|g)|c(y|ir(c)?|olon|aron)|t([ah])|o(pf|gon)|dot|u(ro|ml)|p(si(v|lon)?|lus|ar(sl)?)|e|D(D??ot)|q(s(im|lant(less|gtr))|c(irc|olon)|u(iv(DD)?|est|als)|vparsl)|f(Dot|r)|l(s(dot)?|inters|l)?|a(ster|cute)|r(Dot|arr)|g(s(dot)?|rave)?|x(cl|ist|p(onentiale|ectation))|m(sp(1([34]))?|pty(set|v)?|acr))|E(s(cr|im)|c(y|irc|aron)|ta|o(pf|gon)|NG|dot|uml|TH|psilon|qu(ilibrium|al(Tilde)?)|fr|lement|acute|grave|x(ists|ponentialE)|m(pty((?:|Very)SmallSquare)|acr)))|(f(scr|nof|cy|ilig|o(pf|r(k(v)?|all))|jlig|partint|emale|f(ilig|l(l??ig)|r)|l(tns|lig|at)|allingdotseq|r(own|a(sl|c(1([2-68])|78|2([35])|3([458])|45|5([68])))))|F(scr|cy|illed((?:|Very)SmallSquare)|o(uriertrf|pf|rAll)|fr))|(G(scr|c(y|irc|edil)|t|opf|dot|T|Jcy|fr|amma(d)?|reater(Greater|SlantEqual|Tilde|Equal(Less)?|FullEqual|Less)|g|breve)|g(s(cr|im([el])?)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|irc)|t(c(c|ir)|dot|quest|lPar|r(sim|dot|eq(q?less)|less|a(pprox|rr)))?|imel|opf|dot|jcy|e(s(cc|dot(o(l)?)?|l(es)?)?|q(slant|q)?|l)?|v(nE|ertneqq)|fr|E(l)?|l([Eaj])?|a(cute|p|mma(d)?)|rave|g(g)?|breve))|(h(s(cr|trok|lash)|y(phen|bull)|circ|o(ok((?:lef|righ)tarrow)|pf|arr|rbar|mtht)|e(llip|arts(uit)?|rcon)|ks([ew]arow)|fr|a(irsp|lf|r(dcy|r(cir|w)?)|milt)|bar|Arr)|H(s(cr|trok)|circ|ilbertSpace|o(pf|rizontalLine)|ump(DownHump|Equal)|fr|a(cek|t)|ARDcy))|(i(s(cr|in(s(v)?|dot|[Ev])?)|n(care|t(cal|prod|e(rcal|gers)|larhk)?|odot|fin(tie)?)?|c(y|irc)?|t(ilde)?|i(nfin|i(i??nt)|ota)?|o(cy|ta|pf|gon)|u(kcy|ml)|jlig|prod|e(cy|xcl)|quest|f([fr])|acute|grave|m(of|ped|a(cr|th|g(part|e|line))))|I(scr|n(t(e(rsection|gral))?|visible(Comma|Times))|c(y|irc)|tilde|o(ta|pf|gon)|dot|u(kcy|ml)|Ocy|Jlig|fr|Ecy|acute|grave|m(plies|a(cr|ginaryI))?))|(j(s(cr|ercy)|c(y|irc)|opf|ukcy|fr|math)|J(s(cr|ercy)|c(y|irc)|opf|ukcy|fr))|(k(scr|hcy|c(y|edil)|opf|jcy|fr|appa(v)?|green)|K(scr|c(y|edil)|Hcy|opf|Jcy|fr|appa))|(l(s(h|cr|trok|im([eg])?|q(uo(r)?|b)|aquo)|h(ar(d|u(l)?)|blk)|n(sim|e(q(q)?)?|E|ap(prox)?)|c(y|ub|e(d??il)|aron)|Barr|t(hree|c(c|ir)|imes|dot|quest|larr|r(i([ef])?|Par))?|Har|o(ng(left((?:|right)arrow)|rightarrow|mapsto)|times|z(enge|f)?|oparrow(left|right)|p(f|lus|ar)|w(ast|bar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|r((?:d|us)har))|ur((?:ds|u)har)|jcy|par(lt)?|e(s(s(sim|dot|eq(q?gtr)|approx|gtr)|cc|dot(o(r)?)?|g(es)?)?|q(slant|q)?|ft(harpoon(down|up)|threetimes|leftarrows|arrow(tail)?|right(squigarrow|harpoons|arrow(s)?))|g)?|v(nE|ertneqq)|f(isht|loor|r)|E(g)?|l(hard|corner|tri|arr)?|a(ng(d|le)?|cute|t(e(s)?|ail)?|p|emptyv|quo|rr(sim|hk|tl|pl|fs|lp|b(fs)?)?|gran|mbda)|r(har(d)?|corner|tri|arr|m)|g(E)?|m(idot|oust(ache)?)|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr))|L(s(h|cr|trok)|c(y|edil|aron)|t|o(ng(RightArrow|left((?:|right)arrow)|rightarrow|Left((?:Right|)Arrow))|pf|wer((?:Righ|Lef)tArrow))|T|e(ss(Greater|SlantEqual|Tilde|EqualGreater|FullEqual|Less)|ft(Right(Vector|Arrow)|Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|rightarrow|Floor|A(ngleBracket|rrow(RightArrow|Bar)?)))|Jcy|fr|l(eftarrow)?|a(ng|cute|placetrf|rr|mbda)|midot))|(M(scr|cy|inusPlus|opf|u|e(diumSpace|llintrf)|fr|ap)|m(s(cr|tpos)|ho|nplus|c(y|omma)|i(nus(d(u)?|b)?|cro|d(cir|dot|ast)?)|o(dels|pf)|dash|u((?:lti|)map)?|p|easuredangle|DDot|fr|l(cp|dr)|a(cr|p(sto(down|up|left)?)?|l(t(ese)?|e)|rker)))|(n(s(hort(parallel|mid)|c(cue|[er])?|im(e(q)?)?|u(cc(eq)?|p(set(eq(q)?)?|[Ee])?|b(set(eq(q)?)?|[Ee])?)|par|qsu([bp]e)|mid)|Rightarrow|h(par|arr|Arr)|G(t(v)?|g)|c(y|ong(dot)?|up|edil|a(p|ron))|t(ilde|lg|riangle(left(eq)?|right(eq)?)|gl)|i(s(d)?|v)?|o(t(ni(v([abc]))?|in(dot|v([abc])|E)?)?|pf)|dash|u(m(sp|ero)?)?|jcy|p(olint|ar(sl|t|allel)?|r(cue|e(c(eq)?)?)?)|e(s(im|ear)|dot|quiv|ar(hk|r(ow)?)|xist(s)?|Arr)?|v(sim|infin|Harr|dash|Dash|l(t(rie)?|e|Arr)|ap|r(trie|Arr)|g([et]))|fr|w(near|ar(hk|r(ow)?)|Arr)|V([Dd]ash)|l(sim|t(ri(e)?)?|dr|e(s(s)?|q(slant|q)?|ft((?:|right)arrow))?|E|arr|Arr)|a(ng|cute|tur(al(s)?)?|p(id|os|prox|E)?|bla)|r(tri(e)?|ightarrow|arr([cw])?|Arr)|g(sim|t(r)?|e(s|q(slant|q)?)?|E)|mid|L(t(v)?|eft((?:|right)arrow)|l)|b(sp|ump(e)?))|N(scr|c(y|edil|aron)|tilde|o(nBreakingSpace|Break|t(R(ightTriangle(Bar|Equal)?|everseElement)|Greater(Greater|SlantEqual|Tilde|Equal|FullEqual|Less)?|S(u(cceeds(SlantEqual|Tilde|Equal)?|perset(Equal)?|bset(Equal)?)|quareSu(perset(Equal)?|bset(Equal)?))|Hump(DownHump|Equal)|Nested(GreaterGreater|LessLess)|C(ongruent|upCap)|Tilde(Tilde|Equal|FullEqual)?|DoubleVerticalBar|Precedes((?:Slant|)Equal)?|E(qual(Tilde)?|lement|xists)|VerticalBar|Le(ss(Greater|SlantEqual|Tilde|Equal|Less)?|ftTriangle(Bar|Equal)?))?|pf)|u|e(sted(GreaterGreater|LessLess)|wLine|gative(MediumSpace|Thi((?:n|ck)Space)|VeryThinSpace))|Jcy|fr|acute))|(o(s(cr|ol|lash)|h(m|bar)|c(y|ir(c)?)|ti(lde|mes(as)?)|S|int|opf|d(sold|iv|ot|ash|blac)|uml|p(erp|lus|ar)|elig|vbar|f(cir|r)|l(c(ir|ross)|t|ine|arr)|a(st|cute)|r(slope|igof|or|d(er(of)?|[fm])?|v|arr)?|g(t|on|rave)|m(i(nus|cron|d)|ega|acr))|O(s(cr|lash)|c(y|irc)|ti(lde|mes)|opf|dblac|uml|penCurly((?:Double|)Quote)|ver(B(ar|rac(e|ket))|Parenthesis)|fr|Elig|acute|r|grave|m(icron|ega|acr)))|(p(s(cr|i)|h(i(v)?|one|mmat)|cy|i(tchfork|v)?|o(intint|und|pf)|uncsp|er(cnt|tenk|iod|p|mil)|fr|l(us(sim|cir|two|d([ou])|e|acir|mn|b)?|an(ck(h)?|kv))|ar(s(im|l)|t|a(llel)?)?|r(sim|n(sim|E|ap)|cue|ime(s)?|o(d|p(to)?|f(surf|line|alar))|urel|e(c(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?)?|E|ap)?|m)|P(s(cr|i)|hi|cy|i|o(incareplane|pf)|fr|lusMinus|artialD|r(ime|o(duct|portion(al)?)|ecedes(SlantEqual|Tilde|Equal)?)?))|(q(scr|int|opf|u(ot|est(eq)?|at(int|ernions))|prime|fr)|Q(scr|opf|UOT|fr))|(R(s(h|cr)|ho|c(y|edil|aron)|Barr|ight(Ceiling|T(ee(Vector|Arrow)?|riangle(Bar|Equal)?)|Do(ubleBracket|wn(TeeVector|Vector(Bar)?))|Up(TeeVector|DownVector|Vector(Bar)?)|Vector(Bar)?|arrow|Floor|A(ngleBracket|rrow(Bar|LeftArrow)?))|o(undImplies|pf)|uleDelayed|e(verse(UpEquilibrium|E(quilibrium|lement)))?|fr|EG|a(ng|cute|rr(tl)?)|rightarrow)|r(s(h|cr|q(uo(r)?|b)|aquo)|h(o(v)?|ar(d|u(l)?))|nmid|c(y|ub|e(d??il)|aron)|Barr|t(hree|imes|ri([ef]|ltri)?)|i(singdotseq|ng|ght(squigarrow|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(tail)?|rightarrows))|Har|o(times|p(f|lus|ar)|a(ng|rr)|brk)|d(sh|ca|quo(r)?|ldhar)|uluhar|p(polint|ar(gt)?)|e(ct|al(s|ine|part)?|g)|f(isht|loor|r)|l(har|arr|m)|a(ng([de]|le)?|c(ute|e)|t(io(nals)?|ail)|dic|emptyv|quo|rr(sim|hk|c|tl|pl|fs|w|lp|ap|b(fs)?)?)|rarr|x|moust(ache)?|b(arr|r(k(sl([du])|e)|ac([ek]))|brk)|A(tail|arr|rr)))|(s(s(cr|tarf|etmn|mile)|h(y|c(hcy|y)|ort(parallel|mid)|arp)|c(sim|y|n(sim|E|ap)|cue|irc|polint|e(dil)?|E|a(p|ron))?|t(ar(f)?|r(ns|aight(phi|epsilon)))|i(gma([fv])?|m(ne|dot|plus|e(q)?|l(E)?|rarr|g(E)?)?)|zlig|o(pf|ftcy|l(b(ar)?)?)|dot([be])?|u(ng|cc(sim|n(sim|eqq|approx)|curlyeq|eq|approx)?|p(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|hs(ol|ub)|1|n([Ee])|2|d(sub|ot)|3|plus|e(dot)?|E|larr|mult)?|m|b(s(im|u([bp])|et(neq(q)?|eq(q)?)?)|n([Ee])|dot|plus|e(dot)?|E|rarr|mult)?)|pa(des(uit)?|r)|e(swar|ct|tm(n|inus)|ar(hk|r(ow)?)|xt|mi|Arr)|q(su(p(set(eq)?|e)?|b(set(eq)?|e)?)|c(up(s)?|ap(s)?)|u(f|ar([ef]))?)|fr(own)?|w(nwar|ar(hk|r(ow)?)|Arr)|larr|acute|rarr|m(t(e(s)?)?|i(d|le)|eparsl|a(shp|llsetminus))|bquo)|S(scr|hort((?:Right|Down|Up|Left)Arrow)|c(y|irc|edil|aron)?|tar|igma|H(cy|CHcy)|opf|u(c(hThat|ceeds(SlantEqual|Tilde|Equal)?)|p(set|erset(Equal)?)?|m|b(set(Equal)?)?)|OFTcy|q(uare(Su(perset(Equal)?|bset(Equal)?)|Intersection|Union)?|rt)|fr|acute|mallCircle))|(t(s(hcy|c([ry])|trok)|h(i(nsp|ck(sim|approx))|orn|e(ta(sym|v)?|re(4|fore))|k(sim|ap))|c(y|edil|aron)|i(nt|lde|mes(d|b(ar)?)?)|o(sa|p(cir|f(ork)?|bot)?|ea)|dot|prime|elrec|fr|w(ixt|ohead((?:lef|righ)tarrow))|a(u|rget)|r(i(sb|time|dot|plus|e|angle(down|q|left(eq)?|right(eq)?)?|minus)|pezium|ade)|brk)|T(s(cr|trok)|RADE|h(i((?:n|ck)Space)|e(ta|refore))|c(y|edil|aron)|S(H??cy)|ilde(Tilde|Equal|FullEqual)?|HORN|opf|fr|a([bu])|ripleDot))|(u(scr|h(ar([lr])|blk)|c(y|irc)|t(ilde|dot|ri(f)?)|Har|o(pf|gon)|d(har|arr|blac)|u(arr|ml)|p(si(h|lon)?|harpoon(left|right)|downarrow|uparrows|lus|arrow)|f(isht|r)|wangle|l(c(orn(er)?|rop)|tri)|a(cute|rr)|r(c(orn(er)?|rop)|tri|ing)|grave|m(l|acr)|br(cy|eve)|Arr)|U(scr|n(ion(Plus)?|der(B(ar|rac(e|ket))|Parenthesis))|c(y|irc)|tilde|o(pf|gon)|dblac|uml|p(si(lon)?|downarrow|Tee(Arrow)?|per((?:Righ|Lef)tArrow)|DownArrow|Equilibrium|arrow|Arrow(Bar|DownArrow)?)|fr|a(cute|rr(ocir)?)|ring|grave|macr|br(cy|eve)))|(v(s(cr|u(pn([Ee])|bn([Ee])))|nsu([bp])|cy|Bar(v)?|zigzag|opf|dash|prop|e(e(eq|bar)?|llip|r(t|bar))|Dash|fr|ltri|a(ngrt|r(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|t(heta|riangle(left|right))|p(hi|i|ropto)|epsilon|kappa|r(ho)?))|rtri|Arr)|V(scr|cy|opf|dash(l)?|e(e|r(yThinSpace|t(ical(Bar|Separator|Tilde|Line))?|bar))|Dash|vdash|fr|bar))|(w(scr|circ|opf|p|e(ierp|d(ge(q)?|bar))|fr|r(eath)?)|W(scr|circ|opf|edge|fr))|(X(scr|i|opf|fr)|x(s(cr|qcup)|h([Aa]rr)|nis|c(irc|up|ap)|i|o(time|dot|p(f|lus))|dtri|u(tri|plus)|vee|fr|wedge|l([Aa]rr)|r([Aa]rr)|map))|(y(scr|c(y|irc)|icy|opf|u(cy|ml)|en|fr|ac(y|ute))|Y(scr|c(y|irc)|opf|uml|Icy|Ucy|fr|acute|Acy))|(z(scr|hcy|c(y|aron)|igrarr|opf|dot|e(ta|etrf)|fr|w(n?j)|acute)|Z(scr|c(y|aron)|Hcy|opf|dot|e(ta|roWidthSpace)|fr|acute)))(;)","dgv",{"lazyCompile":true}),name:"constant.character.entity.named.$2.astro"},{captures:{"1":{name:"punctuation.definition.entity.astro"},"3":{name:"punctuation.definition.entity.astro"}},match:/(&)#[0-9]+(;)/dgv,name:"constant.character.entity.numeric.decimal.astro"},{captures:{"1":{name:"punctuation.definition.entity.astro"},"3":{name:"punctuation.definition.entity.astro"}},match:/(&)#[Xx]\p{AHex}+(;)/dgv,name:"constant.character.entity.numeric.hexadecimal.astro"},{match:/&(?=[0-9A-Za-z]+;)/dgv,name:"invalid.illegal.ambiguous-ampersand.astro"}]},frontmatter:{begin:/^(-{3})\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"comment"}},contentName:"source.ts",end:/*@__PURE__*/ new EmulatedRegExp("(^|^)(-{3})|\\.{3}\\p{space}*(?=\\n?$)","dgv",{"strategy":"clip_search"}),endCaptures:{"2":{name:"comment"}},patterns:[{include:"source.ts"}]},interpolation:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.astro"}},contentName:"meta.embedded.expression.astro source.tsx",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.astro"}},patterns:[{begin:/\p{space}*(?=\{)/dgvy,end:/(?<=\})/dgv,patterns:[{include:"source.tsx#object-literal"}]},{include:"source.tsx"}]}]},scope:{patterns:[{include:"#comments"},{include:"#tags"},{include:"#interpolation"},{include:"#entities"}]},tags:{patterns:[{include:"#tags-raw"},{include:"#tags-lang"},{include:"#tags-void"},{include:"#tags-general-end"},{include:"#tags-general-start"}]},"tags-end-node":{captures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{name:"meta.tag.end.astro",patterns:[{include:"#tags-name"}]},"3":{name:"meta.tag.end.astro punctuation.definition.tag.end.astro"},"4":{name:"meta.tag.start.astro punctuation.definition.tag.end.astro"}},match:/(<\/)([^\n]*?)\p{space}*(>)|(\/>)/dgv},"tags-general-end":{begin:/(<\/)([^\/\>\p{space}]*)/dgv,beginCaptures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.begin.astro"},"2":{name:"meta.tag.end.astro",patterns:[{include:"#tags-name"}]}},end:/(>)/dgv,endCaptures:{"1":{name:"meta.tag.end.astro punctuation.definition.tag.end.astro"}},name:"meta.scope.tag.$2.astro"},"tags-general-start":{begin:/(<)([^\/\>\p{space}]*)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"meta.tag.start.astro punctuation.definition.tag.end.astro"}},name:"meta.scope.tag.$2.astro",patterns:[{include:"#tags-start-attributes"}]},"tags-lang":{begin:/<(s(?:cript|tyle))/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.scope.tag.$1.astro meta.$1.astro",patterns:[{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(?:text\/)?(application\/ld\+json)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.json.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(module)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.javascript.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(["']?)(?:text\/|application\/)?([\+\/\p{L}\p{M}\p{N}\p{Pc}]+)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.$3.astro",patterns:[{include:"#tags-lang-start-attributes"}]},{include:"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{begin:/(?:)/dgv,end:/(?=\/>)|>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.astro"}},name:"meta.tag.start.astro",patterns:[{include:"#attributes"}]},"tags-name":{patterns:[{match:/[A-Z][0-9A-Z_a-z]*/dgv,name:"support.class.component.astro"},{match:/[a-z][0-\:\p{L}\p{M}\p{N}\p{Pc}]*-[\-0-\:\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"meta.tag.custom.astro entity.name.tag.astro"},{match:/[a-z][\-0-\:\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"entity.name.tag.astro"}]},"tags-raw":{begin:/<([^\!\/\<\>\?\p{space}]+)(?=[^\>]+is:raw)[^\n]*?/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},contentName:"source.unknown",end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.scope.tag.$1.astro meta.raw.astro",patterns:[{include:"#tags-lang-start-attributes"}]},"tags-start-attributes":{begin:/(?:)/dgv,end:/(?=\/?>)/dgv,name:"meta.tag.start.astro",patterns:[{include:"#attributes"}]},"tags-start-node":{captures:{"1":{name:"punctuation.definition.tag.begin.astro"},"2":{patterns:[{include:"#tags-name"}]}},match:/(<)([^\/\>\p{space}]*)/dgv,name:"meta.tag.start.astro"},"tags-void":{begin:/(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\p{space}|\/?>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.astro"},"2":{name:"entity.name.tag.astro"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.begin.astro"}},name:"meta.tag.void.astro",patterns:[{include:"#attributes"}]},text:{patterns:[{begin:/(?<=^|---|[\>\}])/dgv,end:/(?=[\<\{]|(?=\n?$))/dgv,name:"text.astro",patterns:[{include:"#entities"}]}]}},scopeName:"source.astro",embeddedLangs:["json","javascript","typescript","css","postcss","tsx"],aliases:undefined,embeddedLangsLazy:["sass","scss","stylus","less"]})
|
|
9
10
|
|
|
10
11
|
export default [
|
|
11
12
|
...json,
|
|
@@ -13,5 +14,6 @@ export default [
|
|
|
13
14
|
...typescript,
|
|
14
15
|
...css,
|
|
15
16
|
...postcss,
|
|
17
|
+
...tsx,
|
|
16
18
|
lang
|
|
17
19
|
]
|
package/dist/erlang.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import markdown from './markdown.mjs'
|
|
2
3
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Erlang",fileTypes:["erl","escript","hrl","xrl","yrl"],name:"erlang",patterns:[{include:"#module-directive"},{include:"#import-export-directive"},{include:"#behaviour-directive"},{include:"#record-directive"},{include:"#define-directive"},{include:"#macro-directive"},{include:"#doc-directive"},{include:"#directive"},{include:"#function"},{include:"#everything-else"}],repository:{atom:{patterns:[{begin:/(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.symbol.begin.erlang"}},end:/(')/dgv,endCaptures:{"1":{name:"punctuation.definition.symbol.end.erlang"}},name:"constant.other.symbol.quoted.single.erlang",patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2})/dgv,name:"constant.other.symbol.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.atom.erlang"}]},{match:/*@__PURE__*/ new EmulatedRegExp("[a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\1)","dgv",{"hiddenCaptures":[1]}),name:"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.behaviour.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.behaviour.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(behaviour)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.behaviour.erlang"},binary:{begin:/(<<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.binary.begin.erlang"}},end:/(>>)/dgv,endCaptures:{"1":{name:"punctuation.definition.binary.end.erlang"}},name:"meta.structure.binary.erlang",patterns:[{captures:{"1":{name:"punctuation.separator.binary.erlang"},"2":{name:"punctuation.separator.value-size.erlang"}},match:/(,)|(:)/dgv},{include:"#internal-type-specifiers"},{include:"#everything-else"}]},character:{patterns:[{captures:{"1":{name:"punctuation.definition.character.erlang"},"2":{name:"constant.character.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"},"5":{name:"punctuation.definition.escape.erlang"}},match:/(\$)((\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2}))/dgv,name:"constant.character.erlang"},{match:/\$\\\^?[^\n]?/dgv,name:"invalid.illegal.character.erlang"},{captures:{"1":{name:"punctuation.definition.character.erlang"}},match:/(\$)[ \P{space}]/dgv,name:"constant.character.erlang"},{match:/\$[^\n]?/dgv,name:"invalid.illegal.character.erlang"}]},comment:{begin:/(^[\t ]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.erlang"}},end:/\n/dgv,name:"comment.line.percentage.erlang"}]},"define-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(define)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)","dgv",{"hiddenCaptures":[1,3,5,7,9,10]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=^(?:(?=(\\p{space}*))\\1)-(?:(?=(\\p{space}*))\\2)define(?:(?=(\\p{space}*))\\3)\\((?:(?=(\\p{space}*))\\4)(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\5)(?:(?=(\\p{space}*))\\6)\\()","dgv",{"hiddenCaptures":[1,2,3,4,5,6]}),end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(define)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\()","dgv",{"hiddenCaptures":[1,3,5,7,9,10]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))\p{space}*(,)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.separator.parameters.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/\|\||[\,\.\:\;\|]|->/dgv,name:"punctuation.separator.define.erlang"},{include:"#everything-else"}]}]},directive:{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\(?)","dgv",{"hiddenCaptures":[1,3,5,6]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\)?)(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.erlang",patterns:[{include:"#everything-else"}]},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\.)","dgv",{"hiddenCaptures":[1,3,5,6]}),name:"meta.directive.erlang"}]},"doc-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)((module)?doc)\\p{space}*(\\(\\p{space}*)?(~[BSbs]?)?((\"{3,})\\p{space}*)(\\P{space}[^\\n]*)?(?=\\n?$)","dgv",{"hiddenCaptures":[1,3]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.doc.erlang"},"4":{name:"punctuation.definition.parameters.begin.erlang"},"5":{name:"storage.type.string.erlang"},"6":{name:"comment.block.documentation.erlang"},"7":{name:"punctuation.definition.string.begin.erlang"},"8":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*(\7))\p{space}*(\)\p{space}*)?(\.)()()()/dgv,endCaptures:{"1":{name:"comment.block.documentation.erlang"},"2":{name:"punctuation.definition.string.end.erlang"},"3":{name:"punctuation.section.directive.end.Erlang"}},name:"meta.directive.doc.erlang",patterns:[{begin:/(?:)/dgv,contentName:"comment.block.documentation.erlang",while:/^()(?!\p{space}*(\5))()()()/dgv}]},docstring:{begin:/(?<!")(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"meta.string.quoted.triple.begin.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"},"3":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*((?!)))(?!")/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.triple.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"everything-else":{patterns:[{include:"#comment"},{include:"#record-usage"},{include:"#macro-usage"},{include:"#expression"},{include:"#keyword"},{include:"#textual-operator"},{include:"#language-constant"},{include:"#function-call"},{include:"#tuple"},{include:"#list"},{include:"#binary"},{include:"#parenthesized-expression"},{include:"#character"},{include:"#number"},{include:"#atom"},{include:"#sigil-docstring"},{include:"#sigil-docstring-verbatim"},{include:"#sigil-string"},{include:"#docstring"},{include:"#string"},{include:"#symbolic-operator"},{include:"#variable"}]},expression:{patterns:[{begin:/\b(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.if.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.if.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(case)\b/dgv,beginCaptures:{"1":{name:"keyword.control.case.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.case.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(receive)\b/dgv,beginCaptures:{"1":{name:"keyword.control.receive.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.receive.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{captures:{"1":{name:"keyword.control.fun.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"variable.other.erlang"},"6":{name:"punctuation.separator.module-function.erlang"},"8":{name:"entity.name.function.erlang"},"9":{name:"variable.other.erlang"},"10":{name:"punctuation.separator.function-arity.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+((([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\7)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\8)))(?:(?=(\\p{space}*))\\9)(:)(?:(?=(\\p{space}*))\\11))?(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\14)|'(?:(?=([^']*))\\15)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\17)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\18)))\\p{space}*(/)","dgv",{"hiddenCaptures":[5,7,8,9,11,14,15,17,18]}),name:"meta.expression.fun.implicit.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4))|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\6)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\7)))(?:(?=(\\p{space}*))\\8)(:)","dgv",{"hiddenCaptures":[4,6,7,8]}),beginCaptures:{"1":{name:"keyword.control.fun.erlang"},"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"}},end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\p{space}+(?!\()/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)(?:(?=(\\p{space}*))\\2)(\\()(?=((?:(?=(\\p{space}*))\\5)\\()|(\\)))","dgv",{"hiddenCaptures":[2,5]}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\b/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.fun.erlang",patterns:[{begin:/(?=\()/dgv,end:/(;)|(?=\bend\b)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#internal-function-parts"}]},{include:"#everything-else"}]},{begin:/\b(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.try.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(begin)\b/dgv,beginCaptures:{"1":{name:"keyword.control.begin.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.begin.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(maybe)\b/dgv,beginCaptures:{"1":{name:"keyword.control.maybe.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.maybe.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]}]},function:{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')(?:(?=(\\p{space}*))\\5)(?=\\()","dgv",{"hiddenCaptures":[1,3,4,5]}),beginCaptures:{"1":{name:"entity.name.function.definition.erlang"}},end:/(\.)/dgv,endCaptures:{"1":{name:"punctuation.terminator.function.erlang"}},name:"meta.function.erlang",patterns:[{captures:{"1":{name:"entity.name.function.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')(?:(?=(\\p{space}*))\\5)(?=\\()","dgv",{"hiddenCaptures":[1,3,4,5]})},{begin:/(?=\()/dgv,end:/(;)|(?=\.)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#parenthesized-expression"},{include:"#internal-function-parts"}]},{include:"#everything-else"}]},"function-call":{begin:/*@__PURE__*/ new EmulatedRegExp("(?=([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\2)|'(?:(?=([^']*))\\3)'|_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\4)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\(|:(?:(?=(\\p{space}*))\\8)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\10)|'(?:(?=([^']*))\\11)'|_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\12)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\13))(?:(?=(\\p{space}*))\\14)\\())","dgv",{"hiddenCaptures":[2,3,4,5,6,8,10,11,12,13,14]}),end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},name:"meta.function-call.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("((erlang)(?:(?=(\\p{space}*))\\3)(:)(?:(?=(\\p{space}*))\\5))?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)(?:(?=(\\p{space}*))\\7)(\\()","dgv",{"hiddenCaptures":[3,5,7]}),beginCaptures:{"2":{name:"entity.name.type.class.module.erlang"},"3":{name:"punctuation.separator.module-function.erlang"},"4":{name:"entity.name.function.guard.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("((([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\7)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\8)))(?:(?=(\\p{space}*))\\9)(:)(?:(?=(\\p{space}*))\\11))?(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\14)|'(?:(?=([^']*))\\15)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\17)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\18)))(?:(?=(\\p{space}*))\\19)(\\()","dgv",{"hiddenCaptures":[4,5,7,8,9,11,14,15,17,18,19]}),beginCaptures:{"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"},"7":{name:"entity.name.function.erlang"},"8":{name:"variable.other.erlang"},"9":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]}]},"import-export-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(import)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9)|'(?:(?=([^']*))\\10)')(?:(?=(\\p{space}*))\\11)(,)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,11]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.import.erlang",patterns:[{include:"#internal-function-list"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(export)(?:(?=(\\p{space}*))\\5)(\\()","dgv",{"hiddenCaptures":[1,3,5]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.export.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.export.erlang",patterns:[{include:"#internal-function-list"}]}]},"internal-expression-punctuation":{captures:{"1":{name:"punctuation.separator.clause-head-body.erlang"},"2":{name:"punctuation.separator.clauses.erlang"},"3":{name:"punctuation.separator.expressions.erlang"}},match:/(->)|(;)|(,)/dgv},"internal-function-list":{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.function.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\2)|'(?:(?=([^']*))\\3)')(?:(?=(\\p{space}*))\\4)(/)","dgv",{"hiddenCaptures":[2,3,4]}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.separator.function-arity.erlang"}},end:/(,)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.separator.list.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-function-parts":{patterns:[{begin:/(?=\()/dgv,end:/(->)/dgv,endCaptures:{"1":{name:"punctuation.separator.clause-head-body.erlang"}},patterns:[{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/[\,\;]/dgv,name:"punctuation.separator.guards.erlang"},{include:"#everything-else"}]},{match:/,/dgv,name:"punctuation.separator.expressions.erlang"},{include:"#everything-else"}]},"internal-record-body":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.class.record.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.class.record.end.erlang"}},name:"meta.structure.record.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')|(_))","dgv",{"hiddenCaptures":[3,4]}),beginCaptures:{"2":{name:"variable.other.field.erlang"},"3":{name:"variable.language.omitted.field.erlang"}},end:/(,)|(?=\})/dgv,endCaptures:{"1":{name:"punctuation.separator.class.record.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-string-body":{patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2})/dgv,name:"constant.character.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.string.erlang"},{include:"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{patterns:[{captures:{"1":{name:"punctuation.definition.placeholder.erlang"},"6":{name:"punctuation.separator.placeholder-parts.erlang"},"10":{name:"punctuation.separator.placeholder-parts.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(~)((-)?(?:(?=(\\p{Nd}+))\\4)|(\\*))?((\\.)((?:(?=(\\p{Nd}+))\\9)|(\\*))?((\\.)((\\*)|[^\\n]))?)?[Kklt]*[\\#\\+BPWXbcefginpswx\\~]","dgv",{"hiddenCaptures":[4,9]}),name:"constant.character.format.placeholder.other.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(~)(\\*)?((?:(?=(\\p{Nd}+))\\4))?(t)?[\\-\\#acdflsu\\~]","dgv",{"hiddenCaptures":[4]}),name:"constant.character.format.placeholder.other.erlang"},{match:/~[^"]?/dgv,name:"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{begin:/(\/)/dgv,beginCaptures:{"1":{name:"punctuation.separator.value-type.erlang"}},end:/(?=[\,\:]|>>)/dgv,patterns:[{captures:{"1":{name:"storage.type.erlang"},"2":{name:"storage.modifier.signedness.erlang"},"3":{name:"storage.modifier.endianness.erlang"},"4":{name:"storage.modifier.unit.erlang"},"5":{name:"punctuation.separator.unit-specifiers.erlang"},"6":{name:"constant.numeric.integer.decimal.erlang"},"7":{name:"punctuation.separator.type-specifiers.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)((?:(?=(\\p{Nd}+))\\7))|(-)","dgv",{"hiddenCaptures":[7]})}]},keyword:{match:/\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\b/dgv,name:"keyword.control.erlang"},"language-constant":{match:/\b(false|true|undefined)\b/dgv,name:"constant.language"},list:{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.erlang",patterns:[{match:/\|\|??|,/dgv,name:"punctuation.separator.list.erlang"},{include:"#everything-else"}]},"macro-directive":{patterns:[{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifdef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(ifdef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.ifdef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifndef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(ifndef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.ifndef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.undef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(undef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.undef.erlang"}]},"macro-usage":{captures:{"1":{name:"keyword.operator.macro.erlang"},"2":{name:"entity.name.function.macro.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\?\\??)(?:(?=(\\p{space}*))\\2)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\4))","dgv",{"hiddenCaptures":[2,4]}),name:"meta.macro-usage.erlang"},"module-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.module.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(module)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.module.erlang"},number:{begin:/(?=\p{Nd})/dgv,end:/(?!\p{Nd})/dgv,patterns:[{captures:{"1":{name:"punctuation.separator.integer-float.erlang"},"2":{name:"punctuation.separator.float-exponent.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{Nd}+))\\1)(\\.)(?:(?=(\\p{Nd}+))\\3)([Ee][\\-\\+]?(?:(?=(\\p{Nd}+))\\5))?","dgv",{"hiddenCaptures":[1,3,5]}),name:"constant.numeric.float.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("2(#)((?:(?=([01]+))\\3)_)*(?:(?=([01]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.binary.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("3(#)((?:(?=([012]+))\\3)_)*(?:(?=([012]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-3.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("4(#)((?:(?=([0-3]+))\\3)_)*(?:(?=([0-3]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-4.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("5(#)((?:(?=([0-4]+))\\3)_)*(?:(?=([0-4]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-5.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("6(#)((?:(?=([0-5]+))\\3)_)*(?:(?=([0-5]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-6.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("7(#)((?:(?=([0-6]+))\\3)_)*(?:(?=([0-6]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-7.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("8(#)((?:(?=([0-7]+))\\3)_)*(?:(?=([0-7]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.octal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("9(#)((?:(?=([0-8]+))\\3)_)*(?:(?=([0-8]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-9.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("10(#)((?:(?=(\\p{Nd}+))\\3)_)*(?:(?=(\\p{Nd}+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.decimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("11(#)((?:(?=([Aa\\p{Nd}]+))\\3)_)*(?:(?=([Aa\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-11.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("12(#)((?:(?=([ABab\\p{Nd}]+))\\3)_)*(?:(?=([ABab\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-12.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("13(#)((?:(?=([ABCabc\\p{Nd}]+))\\3)_)*(?:(?=([ABCabc\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-13.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("14(#)((?:(?=([A-Da-d\\p{Nd}]+))\\3)_)*(?:(?=([A-Da-d\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-14.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("15(#)((?:(?=([A-Ea-e\\p{Nd}]+))\\3)_)*(?:(?=([A-Ea-e\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-15.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("16(#)((?:(?=([A-Fa-f\\p{Nd}]+))\\3)_)*(?:(?=([A-Fa-f\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.hexadecimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("17(#)((?:(?=([A-Ga-g\\p{Nd}]+))\\3)_)*(?:(?=([A-Ga-g\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-17.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("18(#)((?:(?=([A-Ha-h\\p{Nd}]+))\\3)_)*(?:(?=([A-Ha-h\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-18.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("19(#)((?:(?=([A-Ia-i\\p{Nd}]+))\\3)_)*(?:(?=([A-Ia-i\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-19.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("20(#)((?:(?=([A-Ja-j\\p{Nd}]+))\\3)_)*(?:(?=([A-Ja-j\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-20.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("21(#)((?:(?=([A-Ka-k\\p{Nd}]+))\\3)_)*(?:(?=([A-Ka-k\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-21.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("22(#)((?:(?=([A-La-l\\p{Nd}]+))\\3)_)*(?:(?=([A-La-l\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-22.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("23(#)((?:(?=([A-Ma-m\\p{Nd}]+))\\3)_)*(?:(?=([A-Ma-m\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-23.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("24(#)((?:(?=([A-Na-n\\p{Nd}]+))\\3)_)*(?:(?=([A-Na-n\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-24.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("25(#)((?:(?=([A-Oa-o\\p{Nd}]+))\\3)_)*(?:(?=([A-Oa-o\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-25.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("26(#)((?:(?=([A-Pa-p\\p{Nd}]+))\\3)_)*(?:(?=([A-Pa-p\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-26.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("27(#)((?:(?=([A-Qa-q\\p{Nd}]+))\\3)_)*(?:(?=([A-Qa-q\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-27.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("28(#)((?:(?=([A-Ra-r\\p{Nd}]+))\\3)_)*(?:(?=([A-Ra-r\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-28.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("29(#)((?:(?=([A-Sa-s\\p{Nd}]+))\\3)_)*(?:(?=([A-Sa-s\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-29.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("30(#)((?:(?=([A-Ta-t\\p{Nd}]+))\\3)_)*(?:(?=([A-Ta-t\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-30.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("31(#)((?:(?=([A-Ua-u\\p{Nd}]+))\\3)_)*(?:(?=([A-Ua-u\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-31.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("32(#)((?:(?=([A-Va-v\\p{Nd}]+))\\3)_)*(?:(?=([A-Va-v\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-32.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("33(#)((?:(?=([A-Wa-w\\p{Nd}]+))\\3)_)*(?:(?=([A-Wa-w\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-33.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("34(#)((?:(?=([A-Xa-x\\p{Nd}]+))\\3)_)*(?:(?=([A-Xa-x\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-34.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("35(#)((?:(?=([A-Ya-y\\p{Nd}]+))\\3)_)*(?:(?=([A-Ya-y\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-35.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("36(#)((?:(?=([A-Za-z\\p{Nd}]+))\\3)_)*(?:(?=([A-Za-z\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-36.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{Nd}+))\\1)#((?:(?=([A-Za-z\\p{Nd}]+))\\3)_)*(?:(?=([A-Za-z\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[1,3,4]}),name:"invalid.illegal.integer.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("((?:(?=(\\p{Nd}+))\\2)_)*(?:(?=(\\p{Nd}+))\\3)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.erlang"}},name:"meta.expression.parenthesized",patterns:[{include:"#everything-else"}]},"record-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(record)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9)|'(?:(?=([^']*))\\10)')(?:(?=(\\p{space}*))\\11)(,)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,11]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.record.definition.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.record.erlang",patterns:[{include:"#internal-record-body"},{include:"#comment"}]},"record-usage":{patterns:[{captures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"},"3":{name:"punctuation.separator.record-field.erlang"},"4":{name:"variable.other.field.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=(\\p{space}*))\\2)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')(?:(?=(\\p{space}*))\\6)(\\.)(?:(?=(\\p{space}*))\\8)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\10)|'(?:(?=([^']*))\\11)')","dgv",{"hiddenCaptures":[2,4,5,6,8,10,11]}),name:"meta.record-usage.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=(\\p{space}*))\\2)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')","dgv",{"hiddenCaptures":[2,4,5]}),beginCaptures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"}},end:/(?<=\})/dgv,name:"meta.record-usage.erlang",patterns:[{include:"#internal-record-body"}]}]},"sigil-docstring":{begin:/(~[bs])(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-docstring-verbatim":{begin:/(~[BS]?)(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string":{patterns:[{include:"#sigil-string-parenthesis"},{include:"#sigil-string-parenthesis-verbatim"},{include:"#sigil-string-curly-brackets"},{include:"#sigil-string-curly-brackets-verbatim"},{include:"#sigil-string-square-brackets"},{include:"#sigil-string-square-brackets-verbatim"},{include:"#sigil-string-less-greater"},{include:"#sigil-string-less-greater-verbatim"},{include:"#sigil-string-single-character"},{include:"#sigil-string-single-character-verbatim"},{include:"#sigil-string-single-quote"},{include:"#sigil-string-single-quote-verbatim"},{include:"#sigil-string-double-quote"},{include:"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{begin:/(~[bs]?)(\{)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{begin:/(~[BS])(\{)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{begin:/(~[bs]?)(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{begin:/(~[BS])(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{begin:/(~[bs]?)(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{begin:/(~[BS])(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{begin:/(~[bs]?)(\()/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{begin:/(~[BS])(\()/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-single-character":{begin:/(~[bs]?)([\#\/\`\|])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-character-verbatim":{begin:/(~[BS])([\#\/\`\|])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{begin:/(~[bs]?)(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{begin:/(~[BS])(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{begin:/(~[bs]?)(\[)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{begin:/(~[BS])(\[)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.erlang"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.erlang",patterns:[{include:"#internal-string-body"}]},"symbolic-operator":{match:/\+\+?|--|[\-\*]|\/=?|=\/=|=:=|==|=<?|<-?|>=|[\!\>]|::|\?=/dgv,name:"keyword.operator.symbolic.erlang"},"textual-operator":{match:/\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\b/dgv,name:"keyword.operator.textual.erlang"},tuple:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tuple.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.tuple.end.erlang"}},name:"meta.structure.tuple.erlang",patterns:[{match:/,/dgv,name:"punctuation.separator.tuple.erlang"},{include:"#everything-else"}]},variable:{captures:{"1":{name:"variable.other.erlang"},"2":{name:"variable.language.omitted.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\2)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3))|(_)","dgv",{"hiddenCaptures":[2,3]})}},scopeName:"source.erlang",embeddedLangs:undefined,aliases:["erl"]})
|
|
4
|
+
const lang = Object.freeze({displayName:"Erlang",fileTypes:["erl","escript","hrl","xrl","yrl"],name:"erlang",patterns:[{include:"#module-directive"},{include:"#import-export-directive"},{include:"#behaviour-directive"},{include:"#record-directive"},{include:"#define-directive"},{include:"#macro-directive"},{include:"#doc-directive"},{include:"#directive"},{include:"#function"},{include:"#everything-else"}],repository:{atom:{patterns:[{begin:/(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.symbol.begin.erlang"}},end:/(')/dgv,endCaptures:{"1":{name:"punctuation.definition.symbol.end.erlang"}},name:"constant.other.symbol.quoted.single.erlang",patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2})/dgv,name:"constant.other.symbol.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.atom.erlang"}]},{match:/*@__PURE__*/ new EmulatedRegExp("[a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\1)","dgv",{"hiddenCaptures":[1]}),name:"constant.other.symbol.unquoted.erlang"}]},"behaviour-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.behaviour.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.behaviour.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(behaviour)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.behaviour.erlang"},binary:{begin:/(<<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.binary.begin.erlang"}},end:/(>>)/dgv,endCaptures:{"1":{name:"punctuation.definition.binary.end.erlang"}},name:"meta.structure.binary.erlang",patterns:[{captures:{"1":{name:"punctuation.separator.binary.erlang"},"2":{name:"punctuation.separator.value-size.erlang"}},match:/(,)|(:)/dgv},{include:"#internal-type-specifiers"},{include:"#everything-else"}]},character:{patterns:[{captures:{"1":{name:"punctuation.definition.character.erlang"},"2":{name:"constant.character.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"},"5":{name:"punctuation.definition.escape.erlang"}},match:/(\$)((\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2}))/dgv,name:"constant.character.erlang"},{match:/\$\\\^?[^\n]?/dgv,name:"invalid.illegal.character.erlang"},{captures:{"1":{name:"punctuation.definition.character.erlang"}},match:/(\$)[ \P{space}]/dgv,name:"constant.character.erlang"},{match:/\$[^\n]?/dgv,name:"invalid.illegal.character.erlang"}]},comment:{begin:/(^[\t ]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/%/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.erlang"}},end:/\n/dgv,name:"comment.line.percentage.erlang"}]},"define-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(define)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)","dgv",{"hiddenCaptures":[1,3,5,7,9,10]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?=^(?:(?=(\\p{space}*))\\1)-(?:(?=(\\p{space}*))\\2)define(?:(?=(\\p{space}*))\\3)\\((?:(?=(\\p{space}*))\\4)(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\5)(?:(?=(\\p{space}*))\\6)\\()","dgv",{"hiddenCaptures":[1,2,3,4,5,6]}),end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.define.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(define)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\()","dgv",{"hiddenCaptures":[1,3,5,7,9,10]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.define.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.definition.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))\p{space}*(,)/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.separator.parameters.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/\|\||[\,\.\:\;\|]|->/dgv,name:"punctuation.separator.define.erlang"},{include:"#everything-else"}]}]},directive:{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\(?)","dgv",{"hiddenCaptures":[1,3,5,6]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\)?)(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.erlang",patterns:[{include:"#everything-else"}]},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.erlang"},"3":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\.)","dgv",{"hiddenCaptures":[1,3,5,6]}),name:"meta.directive.erlang"}]},"doc-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)((module)?doc)\\p{space}*(\\(\\p{space}*)?(~[BSbs]?)?((\"{3,})\\p{space}*)(\\P{space}[^\\n]*)?(?=\\n?$)","dgv",{"hiddenCaptures":[1,3]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.doc.erlang"},"4":{name:"punctuation.definition.parameters.begin.erlang"},"5":{name:"storage.type.string.erlang"},"6":{name:"comment.block.documentation.erlang"},"7":{name:"punctuation.definition.string.begin.erlang"},"8":{name:"invalid.illegal.string.erlang"}},contentName:"meta.embedded.block.markdown",end:/^(\p{space}*(\7))\p{space}*(\)\p{space}*)?(\.)()()()/dgv,endCaptures:{"1":{name:"comment.block.documentation.erlang"},"2":{name:"punctuation.definition.string.end.erlang"},"3":{name:"punctuation.section.directive.end.Erlang"}},name:"meta.directive.doc.erlang",patterns:[{include:"text.html.markdown"}]},docstring:{begin:/(?<!")(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"meta.string.quoted.triple.begin.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"},"3":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*((?!)))(?!")/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.triple.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"everything-else":{patterns:[{include:"#comment"},{include:"#record-usage"},{include:"#macro-usage"},{include:"#expression"},{include:"#keyword"},{include:"#textual-operator"},{include:"#language-constant"},{include:"#function-call"},{include:"#tuple"},{include:"#list"},{include:"#binary"},{include:"#parenthesized-expression"},{include:"#character"},{include:"#number"},{include:"#atom"},{include:"#sigil-docstring"},{include:"#sigil-docstring-verbatim"},{include:"#sigil-string"},{include:"#docstring"},{include:"#string"},{include:"#symbolic-operator"},{include:"#variable"}]},expression:{patterns:[{begin:/\b(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.if.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.if.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(case)\b/dgv,beginCaptures:{"1":{name:"keyword.control.case.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.case.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(receive)\b/dgv,beginCaptures:{"1":{name:"keyword.control.receive.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.receive.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{captures:{"1":{name:"keyword.control.fun.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"variable.other.erlang"},"6":{name:"punctuation.separator.module-function.erlang"},"8":{name:"entity.name.function.erlang"},"9":{name:"variable.other.erlang"},"10":{name:"punctuation.separator.function-arity.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+((([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\7)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\8)))(?:(?=(\\p{space}*))\\9)(:)(?:(?=(\\p{space}*))\\11))?(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\14)|'(?:(?=([^']*))\\15)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\17)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\18)))\\p{space}*(/)","dgv",{"hiddenCaptures":[5,7,8,9,11,14,15,17,18]}),name:"meta.expression.fun.implicit.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)\\p{space}+(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4))|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\6)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\7)))(?:(?=(\\p{space}*))\\8)(:)","dgv",{"hiddenCaptures":[4,6,7,8]}),beginCaptures:{"1":{name:"keyword.control.fun.erlang"},"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"}},end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\p{space}+(?!\()/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},end:/(\/)/dgv,endCaptures:{"1":{name:"punctuation.separator.function-arity.erlang"}},name:"meta.expression.fun.implicit.erlang",patterns:[{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("\\b(fun)(?:(?=(\\p{space}*))\\2)(\\()(?=((?:(?=(\\p{space}*))\\5)\\()|(\\)))","dgv",{"hiddenCaptures":[2,5]}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{include:"#everything-else"}]},{begin:/\b(fun)\b/dgv,beginCaptures:{"1":{name:"keyword.control.fun.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.fun.erlang",patterns:[{begin:/(?=\()/dgv,end:/(;)|(?=\bend\b)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#internal-function-parts"}]},{include:"#everything-else"}]},{begin:/\b(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.try.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(begin)\b/dgv,beginCaptures:{"1":{name:"keyword.control.begin.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.begin.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]},{begin:/\b(maybe)\b/dgv,beginCaptures:{"1":{name:"keyword.control.maybe.erlang"}},end:/\b(end)\b/dgv,endCaptures:{"1":{name:"keyword.control.end.erlang"}},name:"meta.expression.maybe.erlang",patterns:[{include:"#internal-expression-punctuation"},{include:"#everything-else"}]}]},function:{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')(?:(?=(\\p{space}*))\\5)(?=\\()","dgv",{"hiddenCaptures":[1,3,4,5]}),beginCaptures:{"1":{name:"entity.name.function.definition.erlang"}},end:/(\.)/dgv,endCaptures:{"1":{name:"punctuation.terminator.function.erlang"}},name:"meta.function.erlang",patterns:[{captures:{"1":{name:"entity.name.function.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')(?:(?=(\\p{space}*))\\5)(?=\\()","dgv",{"hiddenCaptures":[1,3,4,5]})},{begin:/(?=\()/dgv,end:/(;)|(?=\.)/dgv,endCaptures:{"1":{name:"punctuation.separator.clauses.erlang"}},patterns:[{include:"#parenthesized-expression"},{include:"#internal-function-parts"}]},{include:"#everything-else"}]},"function-call":{begin:/*@__PURE__*/ new EmulatedRegExp("(?=([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\2)|'(?:(?=([^']*))\\3)'|_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\4)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\5))(?:(?=(\\p{space}*))\\6)(\\(|:(?:(?=(\\p{space}*))\\8)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\10)|'(?:(?=([^']*))\\11)'|_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\12)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\13))(?:(?=(\\p{space}*))\\14)\\())","dgv",{"hiddenCaptures":[2,3,4,5,6,8,10,11,12,13,14]}),end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},name:"meta.function-call.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("((erlang)(?:(?=(\\p{space}*))\\3)(:)(?:(?=(\\p{space}*))\\5))?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)(?:(?=(\\p{space}*))\\7)(\\()","dgv",{"hiddenCaptures":[3,5,7]}),beginCaptures:{"2":{name:"entity.name.type.class.module.erlang"},"3":{name:"punctuation.separator.module-function.erlang"},"4":{name:"entity.name.function.guard.erlang"},"5":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("((([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\7)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\8)))(?:(?=(\\p{space}*))\\9)(:)(?:(?=(\\p{space}*))\\11))?(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\14)|'(?:(?=([^']*))\\15)')|(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\17)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\18)))(?:(?=(\\p{space}*))\\19)(\\()","dgv",{"hiddenCaptures":[4,5,7,8,9,11,14,15,17,18,19]}),beginCaptures:{"3":{name:"entity.name.type.class.module.erlang"},"4":{name:"variable.other.erlang"},"5":{name:"punctuation.separator.module-function.erlang"},"7":{name:"entity.name.function.erlang"},"8":{name:"variable.other.erlang"},"9":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(?=\))/dgv,patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]}]},"import-export-directive":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(import)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9)|'(?:(?=([^']*))\\10)')(?:(?=(\\p{space}*))\\11)(,)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,11]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.import.erlang",patterns:[{include:"#internal-function-list"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(export)(?:(?=(\\p{space}*))\\5)(\\()","dgv",{"hiddenCaptures":[1,3,5]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.export.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.export.erlang",patterns:[{include:"#internal-function-list"}]}]},"internal-expression-punctuation":{captures:{"1":{name:"punctuation.separator.clause-head-body.erlang"},"2":{name:"punctuation.separator.clauses.erlang"},"3":{name:"punctuation.separator.expressions.erlang"}},match:/(->)|(;)|(,)/dgv},"internal-function-list":{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.function.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\2)|'(?:(?=([^']*))\\3)')(?:(?=(\\p{space}*))\\4)(/)","dgv",{"hiddenCaptures":[2,3,4]}),beginCaptures:{"1":{name:"entity.name.function.erlang"},"2":{name:"punctuation.separator.function-arity.erlang"}},end:/(,)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.separator.list.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-function-parts":{patterns:[{begin:/(?=\()/dgv,end:/(->)/dgv,endCaptures:{"1":{name:"punctuation.separator.clause-head-body.erlang"}},patterns:[{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"}},patterns:[{match:/,/dgv,name:"punctuation.separator.parameters.erlang"},{include:"#everything-else"}]},{match:/[\,\;]/dgv,name:"punctuation.separator.guards.erlang"},{include:"#everything-else"}]},{match:/,/dgv,name:"punctuation.separator.expressions.erlang"},{include:"#everything-else"}]},"internal-record-body":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.class.record.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.class.record.end.erlang"}},name:"meta.structure.record.erlang",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3)|'(?:(?=([^']*))\\4)')|(_))","dgv",{"hiddenCaptures":[3,4]}),beginCaptures:{"2":{name:"variable.other.field.erlang"},"3":{name:"variable.language.omitted.field.erlang"}},end:/(,)|(?=\})/dgv,endCaptures:{"1":{name:"punctuation.separator.class.record.erlang"}},patterns:[{include:"#everything-else"}]},{include:"#everything-else"}]},"internal-string-body":{patterns:[{captures:{"1":{name:"punctuation.definition.escape.erlang"},"3":{name:"punctuation.definition.escape.erlang"}},match:/(\\)(["'\\bdefnrstv]|(\^)[\@-_a-z]|[0-7]{1,3}|x[A-Fa-f\p{Nd}]{2})/dgv,name:"constant.character.escape.erlang"},{match:/\\\^?[^\n]?/dgv,name:"invalid.illegal.string.erlang"},{include:"#internal-string-body-verbatim"}]},"internal-string-body-verbatim":{patterns:[{captures:{"1":{name:"punctuation.definition.placeholder.erlang"},"6":{name:"punctuation.separator.placeholder-parts.erlang"},"10":{name:"punctuation.separator.placeholder-parts.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(~)((-)?(?:(?=(\\p{Nd}+))\\4)|(\\*))?((\\.)((?:(?=(\\p{Nd}+))\\9)|(\\*))?((\\.)((\\*)|[^\\n]))?)?[Kklt]*[\\#\\+BPWXbcefginpswx\\~]","dgv",{"hiddenCaptures":[4,9]}),name:"constant.character.format.placeholder.other.erlang"},{captures:{"1":{name:"punctuation.definition.placeholder.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(~)(\\*)?((?:(?=(\\p{Nd}+))\\4))?(t)?[\\-\\#acdflsu\\~]","dgv",{"hiddenCaptures":[4]}),name:"constant.character.format.placeholder.other.erlang"},{match:/~[^"]?/dgv,name:"invalid.illegal.string.erlang"}]},"internal-type-specifiers":{begin:/(\/)/dgv,beginCaptures:{"1":{name:"punctuation.separator.value-type.erlang"}},end:/(?=[\,\:]|>>)/dgv,patterns:[{captures:{"1":{name:"storage.type.erlang"},"2":{name:"storage.modifier.signedness.erlang"},"3":{name:"storage.modifier.endianness.erlang"},"4":{name:"storage.modifier.unit.erlang"},"5":{name:"punctuation.separator.unit-specifiers.erlang"},"6":{name:"constant.numeric.integer.decimal.erlang"},"7":{name:"punctuation.separator.type-specifiers.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(integer|float|binary|bytes|bitstring|bits|utf8|utf16|utf32)|((?:|un)signed)|(big|little|native)|(unit)(:)((?:(?=(\\p{Nd}+))\\7))|(-)","dgv",{"hiddenCaptures":[7]})}]},keyword:{match:/\b(after|begin|case|catch|cond|end|fun|if|let|of|try|receive|when|maybe|else)\b/dgv,name:"keyword.control.erlang"},"language-constant":{match:/\b(false|true|undefined)\b/dgv,name:"constant.language"},list:{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.list.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.list.end.erlang"}},name:"meta.structure.list.erlang",patterns:[{match:/\|\|??|,/dgv,name:"punctuation.separator.list.erlang"},{include:"#everything-else"}]},"macro-directive":{patterns:[{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifdef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(ifdef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.ifdef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.ifndef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(ifndef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.ifndef.erlang"},{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.undef.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.function.macro.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(undef)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)((?:(?=([\\@-z\\p{Nd}]+))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.undef.erlang"}]},"macro-usage":{captures:{"1":{name:"keyword.operator.macro.erlang"},"2":{name:"entity.name.function.macro.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\?\\??)(?:(?=(\\p{space}*))\\2)((?:(?=([\\@-Z_a-z\\p{Nd}]+))\\4))","dgv",{"hiddenCaptures":[2,4]}),name:"meta.macro-usage.erlang"},"module-directive":{captures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.module.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.module.definition.erlang"},"5":{name:"punctuation.definition.parameters.end.erlang"},"6":{name:"punctuation.section.directive.end.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(module)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9))(?:(?=(\\p{space}*))\\10)(\\))(?:(?=(\\p{space}*))\\12)(\\.)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,12]}),name:"meta.directive.module.erlang"},number:{begin:/(?=\p{Nd})/dgv,end:/(?!\p{Nd})/dgv,patterns:[{captures:{"1":{name:"punctuation.separator.integer-float.erlang"},"2":{name:"punctuation.separator.float-exponent.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{Nd}+))\\1)(\\.)(?:(?=(\\p{Nd}+))\\3)([Ee][\\-\\+]?(?:(?=(\\p{Nd}+))\\5))?","dgv",{"hiddenCaptures":[1,3,5]}),name:"constant.numeric.float.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("2(#)((?:(?=([01]+))\\3)_)*(?:(?=([01]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.binary.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("3(#)((?:(?=([012]+))\\3)_)*(?:(?=([012]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-3.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("4(#)((?:(?=([0-3]+))\\3)_)*(?:(?=([0-3]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-4.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("5(#)((?:(?=([0-4]+))\\3)_)*(?:(?=([0-4]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-5.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("6(#)((?:(?=([0-5]+))\\3)_)*(?:(?=([0-5]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-6.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("7(#)((?:(?=([0-6]+))\\3)_)*(?:(?=([0-6]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-7.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("8(#)((?:(?=([0-7]+))\\3)_)*(?:(?=([0-7]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.octal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("9(#)((?:(?=([0-8]+))\\3)_)*(?:(?=([0-8]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-9.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("10(#)((?:(?=(\\p{Nd}+))\\3)_)*(?:(?=(\\p{Nd}+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.decimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("11(#)((?:(?=([Aa\\p{Nd}]+))\\3)_)*(?:(?=([Aa\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-11.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("12(#)((?:(?=([ABab\\p{Nd}]+))\\3)_)*(?:(?=([ABab\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-12.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("13(#)((?:(?=([ABCabc\\p{Nd}]+))\\3)_)*(?:(?=([ABCabc\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-13.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("14(#)((?:(?=([A-Da-d\\p{Nd}]+))\\3)_)*(?:(?=([A-Da-d\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-14.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("15(#)((?:(?=([A-Ea-e\\p{Nd}]+))\\3)_)*(?:(?=([A-Ea-e\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-15.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("16(#)((?:(?=([A-Fa-f\\p{Nd}]+))\\3)_)*(?:(?=([A-Fa-f\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.hexadecimal.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("17(#)((?:(?=([A-Ga-g\\p{Nd}]+))\\3)_)*(?:(?=([A-Ga-g\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-17.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("18(#)((?:(?=([A-Ha-h\\p{Nd}]+))\\3)_)*(?:(?=([A-Ha-h\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-18.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("19(#)((?:(?=([A-Ia-i\\p{Nd}]+))\\3)_)*(?:(?=([A-Ia-i\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-19.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("20(#)((?:(?=([A-Ja-j\\p{Nd}]+))\\3)_)*(?:(?=([A-Ja-j\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-20.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("21(#)((?:(?=([A-Ka-k\\p{Nd}]+))\\3)_)*(?:(?=([A-Ka-k\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-21.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("22(#)((?:(?=([A-La-l\\p{Nd}]+))\\3)_)*(?:(?=([A-La-l\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-22.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("23(#)((?:(?=([A-Ma-m\\p{Nd}]+))\\3)_)*(?:(?=([A-Ma-m\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-23.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("24(#)((?:(?=([A-Na-n\\p{Nd}]+))\\3)_)*(?:(?=([A-Na-n\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-24.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("25(#)((?:(?=([A-Oa-o\\p{Nd}]+))\\3)_)*(?:(?=([A-Oa-o\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-25.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("26(#)((?:(?=([A-Pa-p\\p{Nd}]+))\\3)_)*(?:(?=([A-Pa-p\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-26.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("27(#)((?:(?=([A-Qa-q\\p{Nd}]+))\\3)_)*(?:(?=([A-Qa-q\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-27.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("28(#)((?:(?=([A-Ra-r\\p{Nd}]+))\\3)_)*(?:(?=([A-Ra-r\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-28.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("29(#)((?:(?=([A-Sa-s\\p{Nd}]+))\\3)_)*(?:(?=([A-Sa-s\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-29.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("30(#)((?:(?=([A-Ta-t\\p{Nd}]+))\\3)_)*(?:(?=([A-Ta-t\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-30.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("31(#)((?:(?=([A-Ua-u\\p{Nd}]+))\\3)_)*(?:(?=([A-Ua-u\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-31.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("32(#)((?:(?=([A-Va-v\\p{Nd}]+))\\3)_)*(?:(?=([A-Va-v\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-32.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("33(#)((?:(?=([A-Wa-w\\p{Nd}]+))\\3)_)*(?:(?=([A-Wa-w\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-33.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("34(#)((?:(?=([A-Xa-x\\p{Nd}]+))\\3)_)*(?:(?=([A-Xa-x\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-34.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("35(#)((?:(?=([A-Ya-y\\p{Nd}]+))\\3)_)*(?:(?=([A-Ya-y\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-35.erlang"},{captures:{"1":{name:"punctuation.separator.base-integer.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("36(#)((?:(?=([A-Za-z\\p{Nd}]+))\\3)_)*(?:(?=([A-Za-z\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[3,4]}),name:"constant.numeric.integer.base-36.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{Nd}+))\\1)#((?:(?=([A-Za-z\\p{Nd}]+))\\3)_)*(?:(?=([A-Za-z\\p{Nd}]+))\\4)","dgv",{"hiddenCaptures":[1,3,4]}),name:"invalid.illegal.integer.erlang"},{match:/*@__PURE__*/ new EmulatedRegExp("((?:(?=(\\p{Nd}+))\\2)_)*(?:(?=(\\p{Nd}+))\\3)","dgv",{"hiddenCaptures":[2,3]}),name:"constant.numeric.integer.decimal.erlang"}]},"parenthesized-expression":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.erlang"}},name:"meta.expression.parenthesized",patterns:[{include:"#everything-else"}]},"record-directive":{begin:/*@__PURE__*/ new EmulatedRegExp("^(?:(?=(\\p{space}*))\\1)(-)(?:(?=(\\p{space}*))\\3)(record)(?:(?=(\\p{space}*))\\5)(\\()(?:(?=(\\p{space}*))\\7)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\9)|'(?:(?=([^']*))\\10)')(?:(?=(\\p{space}*))\\11)(,)","dgv",{"hiddenCaptures":[1,3,5,7,9,10,11]}),beginCaptures:{"1":{name:"punctuation.section.directive.begin.erlang"},"2":{name:"keyword.control.directive.import.erlang"},"3":{name:"punctuation.definition.parameters.begin.erlang"},"4":{name:"entity.name.type.class.record.definition.erlang"},"5":{name:"punctuation.separator.parameters.erlang"}},end:/*@__PURE__*/ new EmulatedRegExp("(\\))(?:(?=(\\p{space}*))\\2)(\\.)","dgv",{"hiddenCaptures":[2]}),endCaptures:{"1":{name:"punctuation.definition.parameters.end.erlang"},"2":{name:"punctuation.section.directive.end.erlang"}},name:"meta.directive.record.erlang",patterns:[{include:"#internal-record-body"},{include:"#comment"}]},"record-usage":{patterns:[{captures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"},"3":{name:"punctuation.separator.record-field.erlang"},"4":{name:"variable.other.field.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=(\\p{space}*))\\2)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')(?:(?=(\\p{space}*))\\6)(\\.)(?:(?=(\\p{space}*))\\8)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\10)|'(?:(?=([^']*))\\11)')","dgv",{"hiddenCaptures":[2,4,5,6,8,10,11]}),name:"meta.record-usage.erlang"},{begin:/*@__PURE__*/ new EmulatedRegExp("(#)(?:(?=(\\p{space}*))\\2)([a-z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\4)|'(?:(?=([^']*))\\5)')","dgv",{"hiddenCaptures":[2,4,5]}),beginCaptures:{"1":{name:"keyword.operator.record.erlang"},"2":{name:"entity.name.type.class.record.erlang"}},end:/(?<=\})/dgv,name:"meta.record-usage.erlang",patterns:[{include:"#internal-record-body"}]}]},"sigil-docstring":{begin:/(~[bs])(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-docstring-verbatim":{begin:/(~[BS]?)(("{3,})\p{space}*)(\P{space}[^\n]*)?(?=\n?$)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"meta.string.quoted.triple.begin.erlang"},"3":{name:"punctuation.definition.string.begin.erlang"},"4":{name:"invalid.illegal.string.erlang"}},end:/^(\p{space}*(\3))(?!")()/dgv,endCaptures:{"1":{name:"meta.string.quoted.triple.end.erlang"},"2":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.tripple.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string":{patterns:[{include:"#sigil-string-parenthesis"},{include:"#sigil-string-parenthesis-verbatim"},{include:"#sigil-string-curly-brackets"},{include:"#sigil-string-curly-brackets-verbatim"},{include:"#sigil-string-square-brackets"},{include:"#sigil-string-square-brackets-verbatim"},{include:"#sigil-string-less-greater"},{include:"#sigil-string-less-greater-verbatim"},{include:"#sigil-string-single-character"},{include:"#sigil-string-single-character-verbatim"},{include:"#sigil-string-single-quote"},{include:"#sigil-string-single-quote-verbatim"},{include:"#sigil-string-double-quote"},{include:"#sigil-string-double-quote-verbatim"}]},"sigil-string-curly-brackets":{begin:/(~[bs]?)(\{)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-curly-brackets-verbatim":{begin:/(~[BS])(\{)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.curly-brackets.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-double-quote":{begin:/(~[bs]?)(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-double-quote-verbatim":{begin:/(~[BS])(")/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-less-greater":{begin:/(~[bs]?)(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-less-greater-verbatim":{begin:/(~[BS])(<)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.less-greater.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-parenthesis":{begin:/(~[bs]?)(\()/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-parenthesis-verbatim":{begin:/(~[BS])(\()/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.parenthesis.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-single-character":{begin:/(~[bs]?)([\#\/\`\|])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-character-verbatim":{begin:/(~[BS])([\#\/\`\|])/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.other.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-single-quote":{begin:/(~[bs]?)(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-single-quote-verbatim":{begin:/(~[BS])(')/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.single.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},"sigil-string-square-brackets":{begin:/(~[bs]?)(\[)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body"}]},"sigil-string-square-brackets-verbatim":{begin:/(~[BS])(\[)/dgv,beginCaptures:{"1":{name:"storage.type.string.erlang"},"2":{name:"punctuation.definition.string.begin.erlang"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.square-brackets.sigil.erlang",patterns:[{include:"#internal-string-body-verbatim"}]},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.erlang"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.erlang"}},name:"string.quoted.double.erlang",patterns:[{include:"#internal-string-body"}]},"symbolic-operator":{match:/\+\+?|--|[\-\*]|\/=?|=\/=|=:=|==|=<?|<-?|>=|[\!\>]|::|\?=/dgv,name:"keyword.operator.symbolic.erlang"},"textual-operator":{match:/\b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\b/dgv,name:"keyword.operator.textual.erlang"},tuple:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tuple.begin.erlang"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.tuple.end.erlang"}},name:"meta.structure.tuple.erlang",patterns:[{match:/,/dgv,name:"punctuation.separator.tuple.erlang"},{include:"#everything-else"}]},variable:{captures:{"1":{name:"variable.other.erlang"},"2":{name:"variable.language.omitted.erlang"}},match:/*@__PURE__*/ new EmulatedRegExp("(_(?:(?=([\\@-Z_a-z\\p{Nd}]+))\\2)|[A-Z](?:(?=([\\@-Z_a-z\\p{Nd}]*))\\3))|(_)","dgv",{"hiddenCaptures":[2,3]})}},scopeName:"source.erlang",embeddedLangs:["markdown"],aliases:["erl"]})
|
|
4
5
|
|
|
5
6
|
export default [
|
|
7
|
+
...markdown,
|
|
6
8
|
lang
|
|
7
9
|
]
|
package/dist/gdscript.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"GDScript",fileTypes:["gd"],name:"gdscript",patterns:[{include:"#statement"},{include:"#expression"}],repository:{annotated_parameter:{begin:/\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv,beginCaptures:{"1":{name:"variable.parameter.function.language.gdscript"},"2":{name:"punctuation.separator.annotation.gdscript"},"3":{name:"entity.name.type.class.gdscript"}},end:/(,)|(?=\))/dgv,endCaptures:{"1":{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#expression"},{match:/=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"}]},annotations:{captures:{"1":{name:"entity.name.function.decorator.gdscript"},"2":{name:"entity.name.function.decorator.gdscript"}},match:/(@)(export|export_group|export_color_no_alpha|export_custom|export_dir|export_enum|export_exp_easing|export_file|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_global_dir|export_global_file|export_multiline|export_node_path|export_placeholder|export_range|export_storage|icon|onready|rpc|tool|warning_ignore|static_unload)\b/dgv},any_method:{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?=\p{space}*\()/dgv,name:"entity.name.function.other.gdscript"},any_property:{captures:{"1":{name:"punctuation.accessor.gdscript"},"2":{name:"constant.language.gdscript"},"3":{name:"variable.other.property.gdscript"}},match:/\b(\.)\p{space}*(?<![\#\$\%\@])(?:([A-Z_][0-9A-Z_]*)|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))\b(?!\()/dgv},any_variable:{match:/\b(?<![\#\$\%\@])([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?!\()/dgv,name:"variable.other.gdscript"},arithmetic_operator:{match:/->|\+=|-=|\*\*=|\*=|\^=|\/=|%=|&=|~=|\|=|\*\*|[\-\%\*\+\/]/dgv,name:"keyword.operator.arithmetic.gdscript"},assignment_operator:{match:/=/dgv,name:"keyword.operator.assignment.gdscript"},base_expression:{patterns:[{include:"#builtin_get_node_shorthand"},{include:"#nodepath_object"},{include:"#nodepath_function"},{include:"#strings"},{include:"#builtin_classes"},{include:"#const_vars"},{include:"#keywords"},{include:"#operators"},{include:"#lambda_declaration"},{include:"#class_declaration"},{include:"#variable_declaration"},{include:"#signal_declaration_bare"},{include:"#signal_declaration"},{include:"#function_declaration"},{include:"#statement_keyword"},{include:"#assignment_operator"},{include:"#in_keyword"},{include:"#control_flow"},{include:"#match_keyword"},{include:"#curly_braces"},{include:"#square_braces"},{include:"#round_braces"},{include:"#function_call"},{include:"#region"},{include:"#comment"},{include:"#func"},{include:"#letter"},{include:"#numbers"},{include:"#pascal_case_class"},{include:"#line_continuation"}]},bitwise_operator:{match:/[\&\|]|<<=|>>=|<<|>>|[\^\~]/dgv,name:"keyword.operator.bitwise.gdscript"},boolean_operator:{match:/(&&|\|\|)/dgv,name:"keyword.operator.boolean.gdscript"},builtin_classes:{match:/(?<![^\.]\.|:)\b(Vector2i??|Vector3i??|Vector4i??|Color|Rect2i??|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|JSON|UPNP|OS|IP|JSONRPC|XRVRS)\b/dgv,name:"entity.name.type.class.builtin.gdscript"},builtin_get_node_shorthand:{patterns:[{include:"#builtin_get_node_shorthand_quoted"},{include:"#builtin_get_node_shorthand_bare"},{include:"#builtin_get_node_shorthand_bare_multi"}]},builtin_get_node_shorthand_bare:{captures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"constant.character.escape.gdscript"},"3":{name:"constant.character.escape.gdscript"},"4":{name:"constant.character.escape.gdscript"}},match:/(?<!\/\p{space}*)(\$\p{space}*|%|\$%\p{space}*)(\/\p{space}*)?([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?!\p{space}*\/)/dgv,name:"meta.literal.nodepath.bare.gdscript"},builtin_get_node_shorthand_bare_multi:{begin:/(\$\p{space}*|%|\$%\p{space}*)(\/\p{space}*)?([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"constant.character.escape.gdscript"},"3":{name:"constant.character.escape.gdscript"}},end:/(?!\p{space}*\/\p{space}*%?\p{space}*[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.literal.nodepath.bare.gdscript",patterns:[{captures:{"1":{name:"constant.character.escape.gdscript"},"2":{name:"keyword.control.flow.gdscript"},"3":{name:"constant.character.escape.gdscript"}},match:/(\/)\p{space}*(%)?\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*/dgv}]},builtin_get_node_shorthand_quoted:{begin:/(?:([\$\%])|([\&\@\^]))(["'])/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"variable.other.enummember.gdscript"}},end:/(\3)()()/dgv,name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow"}]},class_declaration:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"class.other.gdscript"}},match:/(?<=^class)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=:)/dgv},class_enum:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"variable.other.enummember.gdscript"}},match:/\b([A-Z][0-9A-Z_a-z]*)\.([0-9A-Z_]+)/dgv},class_is:{captures:{"1":{name:"storage.type.is.gdscript"},"2":{name:"entity.name.type.class.gdscript"}},match:/\p{space}+(is)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},class_name:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"class.other.gdscript"}},match:/(?<=class_name)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*(\.([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?)/dgv},class_new:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"storage.type.new.gdscript"},"3":{name:"punctuation.parenthesis.begin.gdscript"}},match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)[^\n](new)\(/dgv},comment:{captures:{"1":{name:"punctuation.definition.comment.number-sign.gdscript"}},match:/(##?)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.number-sign.gdscript"},compare_operator:{match:/<=|>=|==|[\<\>]|!=?/dgv,name:"keyword.operator.comparison.gdscript"},const_vars:{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.gdscript"},control_flow:{match:/\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\b/dgv,name:"keyword.control.gdscript"},curly_braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.dict.begin.gdscript"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.dict.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},expression:{patterns:[{include:"#getter_setter_godot4"},{include:"#base_expression"},{include:"#assignment_operator"},{include:"#annotations"},{include:"#class_name"},{include:"#builtin_classes"},{include:"#class_new"},{include:"#class_is"},{include:"#class_enum"},{include:"#any_method"},{include:"#any_variable"},{include:"#any_property"}]},extends_statement:{captures:{"1":{name:"keyword.language.gdscript"},"2":{name:"entity.other.inherited-class.gdscript"}},match:/(extends)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv},func:{match:/\bfunc\b/dgv,name:"keyword.language.gdscript storage.type.function.gdscript"},function_arguments:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.gdscript"}},contentName:"meta.function.parameters.gdscript",end:/(?=\))(?!\)\p{space}*\()/dgv,patterns:[{match:/(,)/dgv,name:"punctuation.separator.arguments.gdscript"},{captures:{"1":{name:"variable.parameter.function-call.gdscript"},"2":{name:"keyword.operator.assignment.gdscript"}},match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(=)(?!=)/dgv},{match:/=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"},{include:"#base_expression"},{captures:{"1":{name:"punctuation.definition.arguments.end.gdscript"},"2":{name:"punctuation.definition.arguments.begin.gdscript"}},match:/\p{space}*(\))\p{space}*(\()/dgv},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]},function_call:{begin:/(?=\b[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\b\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.gdscript"}},name:"meta.function-call.gdscript",patterns:[{include:"#function_name"},{include:"#function_arguments"}]},function_declaration:{begin:/\p{space}*(func)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/(:)/dgv,endCaptures:{"1":{name:"punctuation.section.function.begin.gdscript"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"}]},function_name:{patterns:[{include:"#builtin_classes"},{match:/\b(preload)\b/dgv,name:"keyword.language.gdscript"},{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.function.gdscript"}]},getter_setter_godot4:{patterns:[{captures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.separator.annotation.gdscript"}},match:/(get)\p{space}*(:)/dgv,name:"meta.variable.declaration.getter.gdscript"},{captures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.definition.arguments.begin.gdscript"},"3":{name:"variable.other.gdscript"},"4":{name:"punctuation.definition.arguments.end.gdscript"},"5":{name:"punctuation.separator.annotation.gdscript"}},match:/(set)\p{space}*(\()\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\))\p{space}*(:)/dgv,name:"meta.variable.declaration.setter.gdscript"}]},in_keyword:{patterns:[{begin:/\b(for)\b/dgv,captures:{"1":{name:"keyword.control.gdscript"}},end:/:/dgv,patterns:[{match:/\bin\b/dgv,name:"keyword.control.gdscript"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},{match:/\bin\b/dgv,name:"keyword.operator.wordlike.gdscript"}]},keywords:{match:/\b(?:class|class_name|abstract|is|onready|tool|static|export|as|void|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super|self)\b/dgv,name:"keyword.language.gdscript"},lambda_declaration:{begin:/(func)\p{space}?(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/(:|(?=[\n"\#']))/dgv,end2:"(\\s*(\\-\\>)\\s*(void\\w*)|([a-zA-Z_]\\w*)\\s*\\:)",endCaptures2:{"1":{name:"punctuation.separator.annotation.result.gdscript"},"2":{name:"keyword.language.void.gdscript"},"3":{name:"entity.name.type.class.gdscript markup.italic"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},letter:{match:/\b(?:true|false|null)\b/dgv,name:"constant.language.gdscript"},line_continuation:{patterns:[{captures:{"1":{name:"punctuation.separator.continuation.line.gdscript"},"2":{name:"invalid.illegal.line.continuation.gdscript"}},match:/(\\)\p{space}*(\P{space}[^\n]*(?=\n?$)\n?)/dgv},{begin:/(\\)\p{space}*(?=\n?$)\n?/dgv,beginCaptures:{"1":{name:"punctuation.separator.continuation.line.gdscript"}},end:/*@__PURE__*/ new EmulatedRegExp("(?=^\\p{space}*(?=\\n?$))|(?!(\\p{space}*[Rr]?('''|\"\"\"|[\"']))|^()(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#base_expression"}]}]},loose_default:{begin:/(=)/dgv,beginCaptures:{"1":{name:"keyword.operator.gdscript"}},end:/(,)|(?=\))/dgv,endCaptures:{"1":{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#expression"}]},match_keyword:{captures:{"1":{name:"keyword.control.gdscript"}},match:/^\n\p{space}*(match)/dgv},nodepath_function:{begin:/(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.definition.parameters.begin.gdscript"}},contentName:"meta.function.parameters.gdscript",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.gdscript"}},name:"meta.function.gdscript",patterns:[{begin:/(["'])/dgv,end:/\1()/dgv,name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow.gdscript"}]},{include:"#expression"}]},nodepath_object:{begin:/(NodePath)\p{space}*\(/dgv,beginCaptures:{"1":{name:"support.class.library.gdscript"}},end:/\)/dgv,name:"meta.literal.nodepath.gdscript",patterns:[{begin:/(["'])/dgv,end:/\1()/dgv,name:"string.quoted.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow.gdscript"}]}]},numbers:{patterns:[{match:/0b[01_]+/dgv,name:"constant.numeric.integer.binary.gdscript"},{match:/0x[_\p{AHex}]+/dgv,name:"constant.numeric.integer.hexadecimal.gdscript"},{match:/\.[0-9][0-9_]*([Ee][\-\+]?[0-9_]+)?/dgv,name:"constant.numeric.float.gdscript"},{match:/([0-9][0-9_]*)\.[0-9_]*([Ee][\-\+]?[0-9_]+)?/dgv,name:"constant.numeric.float.gdscript"},{match:/([0-9][0-9_]*)?\.[0-9_]*([Ee][\-\+]?[0-9_]+)/dgv,name:"constant.numeric.float.gdscript"},{match:/[0-9][0-9_]*[Ee][\-\+]?[0-9_]+/dgv,name:"constant.numeric.float.gdscript"},{match:/-?[0-9][0-9_]*/dgv,name:"constant.numeric.integer.gdscript"}]},operators:{patterns:[{include:"#wordlike_operator"},{include:"#boolean_operator"},{include:"#arithmetic_operator"},{include:"#bitwise_operator"},{include:"#compare_operator"}]},parameters:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.gdscript"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.gdscript"}},name:"meta.function.parameters.gdscript",patterns:[{include:"#annotated_parameter"},{captures:{"1":{name:"variable.parameter.function.language.gdscript"},"2":{name:"punctuation.separator.parameters.gdscript"}},match:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?:(,)|(?=[\n\#\)\=]))/dgv},{include:"#comment"},{include:"#loose_default"}]},pascal_case_class:{match:/\b([A-Z]+[0-9_a-z]*([A-Z]?[0-9_a-z]+)*[A-Z]?)\b/dgv,name:"entity.name.type.class.gdscript"},region:{match:/#(end)?region[^\n]*(?=\n?$)\n?/dgv,name:"keyword.language.region.gdscript"},round_braces:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.begin.gdscript"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},signal_declaration:{begin:/\p{space}*(signal)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/((?=[\n"\#']))/dgv,name:"meta.signal.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"}]},signal_declaration_bare:{captures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},match:/\p{space}*(signal)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?=[\n\p{space}])/dgv,name:"meta.signal.gdscript"},square_braces:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.list.begin.gdscript"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.list.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},statement:{patterns:[{include:"#extends_statement"}]},statement_keyword:{patterns:[{match:/\b(?<!\.)(continue|assert|break|elif|else|if|pass|return|while)\b/dgv,name:"keyword.control.flow.gdscript"},{match:/\b(?<!\.)(class)\b/dgv,name:"storage.type.class.gdscript"},{captures:{"1":{name:"keyword.control.flow.gdscript"}},match:/^\p{space}*(case|match)(?=\p{space}*([\-"\#'\(\+\:\[\{\p{L}\p{M}\p{N}\p{Pc}\p{Nd}]|(?=\n?$)))\b/dgv}]},string_bracket_placeholders:{patterns:[{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"},"3":{name:"storage.type.format.gdscript"},"4":{name:"storage.type.format.gdscript"}},match:/(\{\{|\}\}|\{[\p{L}\p{M}\p{N}\p{Pc}]*(\.[_\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*|\[[^\]"']+\])*(![ars])?(:[\p{L}\p{M}\p{N}\p{Pc}]?[\<\=\>\^]?[\- \+]?#?\p{Nd}*,?(\.\p{Nd}+)?[\%EFGXb-gnosx]?)?\})/dgv,name:"meta.format.brace.gdscript"},{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"},"3":{name:"storage.type.format.gdscript"},"4":{name:"storage.type.format.gdscript"}},match:/(\{[\p{L}\p{M}\p{N}\p{Pc}]*(\.[_\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*|\[[^\]"']+\])*(![ars])?(:)[^\n"'\{\}]*(?:\{[^\n"'\}]*?\}[^\n"'\{\}]*)*\})/dgv,name:"meta.format.brace.gdscript"}]},string_percent_placeholders:{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"}},match:/(%(\([\p{L}\p{M}\p{N}\p{Pc}\p{space}]*\))?[\- \#\+0]*(\p{Nd}+|\*)?(\.(\p{Nd}+|\*))?([Lhl])?[\%EFGXa-giorsux])/dgv,name:"meta.format.percent.gdscript"},strings:{begin:/(r)?("""|'''|["'])/dgv,beginCaptures:{"1":{name:"constant.character.escape.gdscript"}},end:/\2()()/dgv,name:"string.quoted.gdscript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.gdscript"},{include:"#string_percent_placeholders"},{include:"#string_bracket_placeholders"}]},variable_declaration:{begin:/\b(?:(var)|(const))\b/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.var.gdscript"},"2":{name:"keyword.language.gdscript storage.type.const.gdscript"}},end:/(?=\n?$)|;/dgv,name:"meta.variable.declaration.gdscript",patterns:[{captures:{"1":{name:"punctuation.separator.annotation.gdscript"},"2":{name:"entity.name.function.gdscript"},"3":{name:"entity.name.function.gdscript"}},match:/(:)?\p{space}*([gs]et)\p{space}+=\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{match:/:=|=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"},{captures:{"1":{name:"punctuation.separator.annotation.gdscript"},"2":{name:"entity.name.type.class.gdscript"}},match:/(:)\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv},{captures:{"1":{name:"keyword.language.gdscript"},"2":{name:"entity.name.function.gdscript"},"3":{name:"entity.name.function.gdscript"}},match:/(setget)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:,\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?/dgv},{include:"#expression"},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]},wordlike_operator:{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.wordlike.gdscript"}},scopeName:"source.gdscript",embeddedLangs:undefined,aliases:undefined})
|
|
3
|
+
const lang = Object.freeze({displayName:"GDScript",fileTypes:["gd"],name:"gdscript",patterns:[{include:"#statement"},{include:"#expression"}],repository:{annotated_parameter:{begin:/\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv,beginCaptures:{"1":{name:"variable.parameter.function.language.gdscript"},"2":{name:"punctuation.separator.annotation.gdscript"},"3":{name:"entity.name.type.class.gdscript"}},end:/(,)|(?=\))/dgv,endCaptures:{"1":{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#expression"},{match:/=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"}]},annotations:{captures:{"1":{name:"entity.name.function.decorator.gdscript"},"2":{name:"entity.name.function.decorator.gdscript"}},match:/(@)(abstract|export|export_category|export_color_no_alpha|export_custom|export_dir|export_enum|export_exp_easing|export_file|export_file_path|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_flags_avoidance|export_global_dir|export_global_file|export_group|export_multiline|export_node_path|export_placeholder|export_range|export_storage|export_subgroup|export_tool_button|icon|onready|rpc|static_unload|tool|warning_ignore|warning_ignore_restore|warning_ignore_start)\b/dgv},any_method:{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?=\p{space}*\()/dgv,name:"entity.name.function.other.gdscript"},any_property:{captures:{"1":{name:"punctuation.accessor.gdscript"},"2":{name:"constant.language.gdscript"},"3":{name:"variable.other.property.gdscript"}},match:/\b(\.)\p{space}*(?<![\#\$\%\@])(?:([A-Z_][0-9A-Z_]*)|([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))\b(?!\()/dgv},any_variable:{match:/\b(?<![\#\$\%\@])([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?!\()/dgv,name:"variable.other.gdscript"},arithmetic_operator:{match:/->|\+=|-=|\*\*=|\*=|\^=|\/=|%=|&=|~=|\|=|\*\*|[\-\%\*\+\/]/dgv,name:"keyword.operator.arithmetic.gdscript"},assignment_operator:{match:/=/dgv,name:"keyword.operator.assignment.gdscript"},base_expression:{patterns:[{include:"#builtin_get_node_shorthand"},{include:"#nodepath_object"},{include:"#nodepath_function"},{include:"#strings"},{include:"#builtin_classes"},{include:"#const_vars"},{include:"#keywords"},{include:"#operators"},{include:"#lambda_declaration"},{include:"#class_declaration"},{include:"#variable_declaration"},{include:"#signal_declaration_bare"},{include:"#signal_declaration"},{include:"#function_declaration"},{include:"#statement_keyword"},{include:"#assignment_operator"},{include:"#in_keyword"},{include:"#control_flow"},{include:"#match_keyword"},{include:"#curly_braces"},{include:"#square_braces"},{include:"#round_braces"},{include:"#function_call"},{include:"#region"},{include:"#comment"},{include:"#func"},{include:"#letter"},{include:"#numbers"},{include:"#pascal_case_class"},{include:"#line_continuation"}]},bitwise_operator:{match:/[\&\|]|<<=|>>=|<<|>>|[\^\~]/dgv,name:"keyword.operator.bitwise.gdscript"},boolean_operator:{match:/(&&|\|\|)/dgv,name:"keyword.operator.boolean.gdscript"},builtin_classes:{match:/(?<![^\.]\.|:)\b(Vector2i??|Vector3i??|Vector4i??|Color|Rect2i??|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|JSON|UPNP|OS|IP|JSONRPC|XRVRS|Variant|void)\b/dgv,name:"entity.name.type.class.builtin.gdscript"},builtin_get_node_shorthand:{patterns:[{include:"#builtin_get_node_shorthand_quoted"},{include:"#builtin_get_node_shorthand_bare"},{include:"#builtin_get_node_shorthand_bare_multi"}]},builtin_get_node_shorthand_bare:{captures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"constant.character.escape.gdscript"},"3":{name:"constant.character.escape.gdscript"},"4":{name:"constant.character.escape.gdscript"}},match:/(?<!\/\p{space}*)(\$\p{space}*|%|\$%\p{space}*)(\/\p{space}*)?([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?!\p{space}*\/)/dgv,name:"meta.literal.nodepath.bare.gdscript"},builtin_get_node_shorthand_bare_multi:{begin:/(\$\p{space}*|%|\$%\p{space}*)(\/\p{space}*)?([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"constant.character.escape.gdscript"},"3":{name:"constant.character.escape.gdscript"}},end:/(?!\p{space}*\/\p{space}*%?\p{space}*[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.literal.nodepath.bare.gdscript",patterns:[{captures:{"1":{name:"constant.character.escape.gdscript"},"2":{name:"keyword.control.flow.gdscript"},"3":{name:"constant.character.escape.gdscript"}},match:/(\/)\p{space}*(%)?\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*/dgv}]},builtin_get_node_shorthand_quoted:{begin:/(?:([\$\%])|([\&\@\^]))(["'])/dgv,beginCaptures:{"1":{name:"keyword.control.flow.gdscript"},"2":{name:"variable.other.enummember.gdscript"}},end:/(\3)()()/dgv,name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow"}]},class_declaration:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"class.other.gdscript"}},match:/(?<=^class)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=:)/dgv},class_enum:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"variable.other.enummember.gdscript"}},match:/\b([A-Z][0-9A-Z_a-z]*)\.([0-9A-Z_]+)/dgv},class_is:{captures:{"1":{name:"storage.type.is.gdscript"},"2":{name:"entity.name.type.class.gdscript"}},match:/\p{space}+(is)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},class_name:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"class.other.gdscript"}},match:/(?<=class_name)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*(\.([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?)/dgv},class_new:{captures:{"1":{name:"entity.name.type.class.gdscript"},"2":{name:"storage.type.new.gdscript"},"3":{name:"punctuation.parenthesis.begin.gdscript"}},match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)[^\n](new)\(/dgv},comment:{captures:{"1":{name:"punctuation.definition.comment.number-sign.gdscript"}},match:/(##?)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.number-sign.gdscript"},compare_operator:{match:/<=|>=|==|[\<\>]|!=?/dgv,name:"keyword.operator.comparison.gdscript"},const_vars:{match:/\b([A-Z_][0-9A-Z_]*)\b/dgv,name:"variable.other.constant.gdscript"},control_flow:{match:/\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\b/dgv,name:"keyword.control.gdscript"},curly_braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.dict.begin.gdscript"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.dict.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},expression:{patterns:[{include:"#getter_setter_godot4"},{include:"#base_expression"},{include:"#assignment_operator"},{include:"#annotations"},{include:"#class_name"},{include:"#builtin_classes"},{include:"#class_new"},{include:"#class_is"},{include:"#class_enum"},{include:"#any_method"},{include:"#any_variable"},{include:"#any_property"}]},extends_statement:{captures:{"1":{name:"keyword.language.gdscript"},"2":{name:"entity.other.inherited-class.gdscript"}},match:/(extends)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv},func:{match:/\bfunc\b/dgv,name:"keyword.language.gdscript storage.type.function.gdscript"},function_arguments:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.arguments.begin.gdscript"}},contentName:"meta.function.parameters.gdscript",end:/(?=\))(?!\)\p{space}*\()/dgv,patterns:[{match:/(,)/dgv,name:"punctuation.separator.arguments.gdscript"},{captures:{"1":{name:"variable.parameter.function-call.gdscript"},"2":{name:"keyword.operator.assignment.gdscript"}},match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(=)(?!=)/dgv},{match:/=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"},{include:"#base_expression"},{captures:{"1":{name:"punctuation.definition.arguments.end.gdscript"},"2":{name:"punctuation.definition.arguments.begin.gdscript"}},match:/\p{space}*(\))\p{space}*(\()/dgv},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]},function_call:{begin:/(?=\b[A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*\b\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.arguments.end.gdscript"}},name:"meta.function-call.gdscript",patterns:[{include:"#function_name"},{include:"#function_arguments"}]},function_declaration:{begin:/\p{space}*(func)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/(:)/dgv,endCaptures:{"1":{name:"punctuation.section.function.begin.gdscript"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"}]},function_name:{patterns:[{include:"#builtin_classes"},{match:/\b(preload)\b/dgv,name:"keyword.language.gdscript"},{match:/\b([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.function.gdscript"}]},getter_setter_godot4:{patterns:[{captures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.separator.annotation.gdscript"}},match:/(get)\p{space}*(:)/dgv,name:"meta.variable.declaration.getter.gdscript"},{captures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.definition.arguments.begin.gdscript"},"3":{name:"variable.other.gdscript"},"4":{name:"punctuation.definition.arguments.end.gdscript"},"5":{name:"punctuation.separator.annotation.gdscript"}},match:/(set)\p{space}*(\()\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\))\p{space}*(:)/dgv,name:"meta.variable.declaration.setter.gdscript"}]},in_keyword:{patterns:[{begin:/\b(for)\b/dgv,captures:{"1":{name:"keyword.control.gdscript"}},end:/:/dgv,patterns:[{match:/\bin\b/dgv,name:"keyword.control.gdscript"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},{match:/\bin\b/dgv,name:"keyword.operator.wordlike.gdscript"}]},keywords:{match:/\b(?:class|class_name|is|onready|tool|static|export|as|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super|self)\b/dgv,name:"keyword.language.gdscript"},lambda_declaration:{begin:/(func)\p{space}?(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/(:|(?=[\n"\#']))/dgv,end2:"(\\s*(\\-\\>)\\s*(void\\w*)|([a-zA-Z_]\\w*)\\s*\\:)",endCaptures2:{"1":{name:"punctuation.separator.annotation.result.gdscript"},"2":{name:"entity.name.type.class.builtin.gdscript"},"3":{name:"entity.name.type.class.gdscript markup.italic"}},name:"meta.function.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"},{include:"#base_expression"},{include:"#any_variable"},{include:"#any_property"}]},letter:{match:/\b(?:true|false|null)\b/dgv,name:"constant.language.gdscript"},line_continuation:{patterns:[{captures:{"1":{name:"punctuation.separator.continuation.line.gdscript"},"2":{name:"invalid.illegal.line.continuation.gdscript"}},match:/(\\)\p{space}*(\P{space}[^\n]*(?=\n?$)\n?)/dgv},{begin:/(\\)\p{space}*(?=\n?$)\n?/dgv,beginCaptures:{"1":{name:"punctuation.separator.continuation.line.gdscript"}},end:/*@__PURE__*/ new EmulatedRegExp("(?=^\\p{space}*(?=\\n?$))|(?!(\\p{space}*[Rr]?('''|\"\"\"|[\"']))|^()(?=\\n?$))","dgv",{"strategy":"clip_search"}),patterns:[{include:"#base_expression"}]}]},loose_default:{begin:/(=)/dgv,beginCaptures:{"1":{name:"keyword.operator.gdscript"}},end:/(,)|(?=\))/dgv,endCaptures:{"1":{name:"punctuation.separator.parameters.gdscript"}},patterns:[{include:"#expression"}]},match_keyword:{captures:{"1":{name:"keyword.control.gdscript"}},match:/^\n\p{space}*(match)/dgv},nodepath_function:{begin:/(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.gdscript"},"2":{name:"punctuation.definition.parameters.begin.gdscript"}},contentName:"meta.function.parameters.gdscript",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.gdscript"}},name:"meta.function.gdscript",patterns:[{begin:/(["'])/dgv,end:/\1()/dgv,name:"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow.gdscript"}]},{include:"#expression"}]},nodepath_object:{begin:/(NodePath)\p{space}*\(/dgv,beginCaptures:{"1":{name:"support.class.library.gdscript"}},end:/\)/dgv,name:"meta.literal.nodepath.gdscript",patterns:[{begin:/(["'])/dgv,end:/\1()/dgv,name:"string.quoted.gdscript constant.character.escape.gdscript",patterns:[{match:/%/dgv,name:"keyword.control.flow.gdscript"}]}]},numbers:{patterns:[{match:/0b[01_]+/dgv,name:"constant.numeric.integer.binary.gdscript"},{match:/0x[_\p{AHex}]+/dgv,name:"constant.numeric.integer.hexadecimal.gdscript"},{match:/\.[0-9][0-9_]*([Ee][\-\+]?[0-9_]+)?/dgv,name:"constant.numeric.float.gdscript"},{match:/([0-9][0-9_]*)\.[0-9_]*([Ee][\-\+]?[0-9_]+)?/dgv,name:"constant.numeric.float.gdscript"},{match:/([0-9][0-9_]*)?\.[0-9_]*([Ee][\-\+]?[0-9_]+)/dgv,name:"constant.numeric.float.gdscript"},{match:/[0-9][0-9_]*[Ee][\-\+]?[0-9_]+/dgv,name:"constant.numeric.float.gdscript"},{match:/-?[0-9][0-9_]*/dgv,name:"constant.numeric.integer.gdscript"}]},operators:{patterns:[{include:"#wordlike_operator"},{include:"#boolean_operator"},{include:"#arithmetic_operator"},{include:"#bitwise_operator"},{include:"#compare_operator"}]},parameters:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.gdscript"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.gdscript"}},name:"meta.function.parameters.gdscript",patterns:[{include:"#annotated_parameter"},{captures:{"1":{name:"variable.parameter.function.language.gdscript"},"2":{name:"punctuation.separator.parameters.gdscript"}},match:/([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?:(,)|(?=[\n\#\)\=]))/dgv},{include:"#comment"},{include:"#loose_default"}]},pascal_case_class:{match:/\b([A-Z]+[0-9_a-z]*([A-Z]?[0-9_a-z]+)*[A-Z]?)\b/dgv,name:"entity.name.type.class.gdscript"},region:{match:/#(end)?region[^\n]*(?=\n?$)\n?/dgv,name:"keyword.language.region.gdscript"},round_braces:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.begin.gdscript"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},signal_declaration:{begin:/\p{space}*(signal)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},end:/((?=[\n"\#']))/dgv,name:"meta.signal.gdscript",patterns:[{include:"#parameters"},{include:"#line_continuation"}]},signal_declaration_bare:{captures:{"1":{name:"keyword.language.gdscript storage.type.function.gdscript"},"2":{name:"entity.name.function.gdscript"}},match:/\p{space}*(signal)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?=[\n\p{space}])/dgv,name:"meta.signal.gdscript"},square_braces:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.list.begin.gdscript"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.list.end.gdscript"}},patterns:[{include:"#base_expression"},{include:"#any_variable"}]},statement:{patterns:[{include:"#extends_statement"}]},statement_keyword:{patterns:[{match:/\b(?<!\.)(continue|assert|break|elif|else|if|pass|return|while)\b/dgv,name:"keyword.control.flow.gdscript"},{match:/\b(?<!\.)(class)\b/dgv,name:"storage.type.class.gdscript"},{captures:{"1":{name:"keyword.control.flow.gdscript"}},match:/^\p{space}*(case|match)(?=\p{space}*([\-"\#'\(\+\:\[\{\p{L}\p{M}\p{N}\p{Pc}\p{Nd}]|(?=\n?$)))\b/dgv}]},string_bracket_placeholders:{patterns:[{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"},"3":{name:"storage.type.format.gdscript"},"4":{name:"storage.type.format.gdscript"}},match:/(\{\{|\}\}|\{[\p{L}\p{M}\p{N}\p{Pc}]*(\.[_\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*|\[[^\]"']+\])*(![ars])?(:[\p{L}\p{M}\p{N}\p{Pc}]?[\<\=\>\^]?[\- \+]?#?\p{Nd}*,?(\.\p{Nd}+)?[\%EFGXb-gnosx]?)?\})/dgv,name:"meta.format.brace.gdscript"},{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"},"3":{name:"storage.type.format.gdscript"},"4":{name:"storage.type.format.gdscript"}},match:/(\{[\p{L}\p{M}\p{N}\p{Pc}]*(\.[_\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}]*|\[[^\]"']+\])*(![ars])?(:)[^\n"'\{\}]*(?:\{[^\n"'\}]*?\}[^\n"'\{\}]*)*\})/dgv,name:"meta.format.brace.gdscript"}]},string_percent_placeholders:{captures:{"1":{name:"constant.character.format.placeholder.other.gdscript"}},match:/(%(\([\p{L}\p{M}\p{N}\p{Pc}\p{space}]*\))?[\- \#\+0]*(\p{Nd}+|\*)?(\.(\p{Nd}+|\*))?([Lhl])?[\%EFGXa-giorsux])/dgv,name:"meta.format.percent.gdscript"},strings:{begin:/(r)?("""|'''|["'])/dgv,beginCaptures:{"1":{name:"constant.character.escape.gdscript"}},end:/\2()()/dgv,name:"string.quoted.gdscript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.gdscript"},{include:"#string_percent_placeholders"},{include:"#string_bracket_placeholders"}]},variable_declaration:{begin:/\b(?:(var)|(const))\b/dgv,beginCaptures:{"1":{name:"keyword.language.gdscript storage.type.var.gdscript"},"2":{name:"keyword.language.gdscript storage.type.const.gdscript"}},end:/(?=\n?$)|;/dgv,name:"meta.variable.declaration.gdscript",patterns:[{captures:{"1":{name:"punctuation.separator.annotation.gdscript"},"2":{name:"entity.name.function.gdscript"},"3":{name:"entity.name.function.gdscript"}},match:/(:)?\p{space}*([gs]et)\p{space}+=\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{match:/:=|=(?!=)/dgv,name:"keyword.operator.assignment.gdscript"},{captures:{"1":{name:"punctuation.separator.annotation.gdscript"},"2":{name:"entity.name.type.class.gdscript"}},match:/(:)\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)?/dgv},{captures:{"1":{name:"keyword.language.gdscript"},"2":{name:"entity.name.function.gdscript"},"3":{name:"entity.name.function.gdscript"}},match:/(setget)\p{space}+([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:,\p{space}*([A-Z_a-z][\p{L}\p{M}\p{N}\p{Pc}]*))?/dgv},{include:"#expression"},{include:"#letter"},{include:"#any_variable"},{include:"#any_property"},{include:"#keywords"}]},wordlike_operator:{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.wordlike.gdscript"}},scopeName:"source.gdscript",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|