github-linguist 9.7.0 → 9.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.
- checksums.yaml +4 -4
- data/grammars/documentation.markdown.injection.haxe.json +1 -1
- data/grammars/inline.hbs.json +1 -1
- data/grammars/inline.template.json +1 -1
- data/grammars/markdown.glimmer.codeblock.json +1 -1
- data/grammars/markdown.goose.codeblock.json +1 -0
- data/grammars/markdown.nextflow.codeblock.json +1 -0
- data/grammars/markdown.ocaml.codeblock.json +1 -0
- data/grammars/markdown.reason.codeblock.json +1 -0
- data/grammars/markdown.roc.codeblock.json +1 -0
- data/grammars/nextflow.interpolation.injection.json +1 -0
- data/grammars/nextflow.script.injection.json +1 -0
- data/grammars/source.abl.json +1 -1
- data/grammars/source.abnf.json +1 -1
- data/grammars/source.action.menhir.json +1 -0
- data/grammars/source.ampl.dat.json +1 -0
- data/grammars/source.ampl.json +1 -1
- data/grammars/source.apl.json +1 -1
- data/grammars/source.armasm.json +1 -0
- data/grammars/source.astylerc.json +1 -0
- data/grammars/source.atd.json +1 -0
- data/grammars/source.avisynth.json +1 -0
- data/grammars/source.baml.json +1 -1
- data/grammars/source.bbcbasic.json +1 -0
- data/grammars/source.bend.json +1 -0
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c3.json +1 -1
- data/grammars/source.carbon.json +1 -1
- data/grammars/source.cedar.json +1 -0
- data/grammars/source.cj.json +1 -1
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmhg.json +1 -0
- data/grammars/source.compact.json +1 -0
- data/grammars/source.cram.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.cue.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dataflex.json +1 -0
- data/grammars/source.dax.json +1 -0
- data/grammars/source.ditroff.desc.json +1 -1
- data/grammars/source.dm.json +1 -1
- data/grammars/source.dml.json +1 -0
- data/grammars/source.dune-project.json +1 -0
- data/grammars/source.dune-workspace.json +1 -0
- data/grammars/source.dune.json +1 -1
- data/grammars/source.easycrypt.json +1 -0
- data/grammars/source.emacs.lisp.json +1 -1
- data/grammars/source.env-spec.json +1 -0
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.ets.json +1 -0
- data/grammars/source.fpp.json +1 -1
- data/grammars/source.gjs.json +1 -1
- data/grammars/source.goose.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.gts.json +1 -1
- data/grammars/source.ice.json +1 -1
- data/grammars/source.ifc.json +1 -0
- data/grammars/source.indent-profile.json +1 -0
- data/grammars/source.jac.json +1 -1
- data/grammars/source.julia.console.json +1 -1
- data/grammars/source.kerml.json +1 -0
- data/grammars/source.liquidsoap.json +1 -1
- data/grammars/source.lsf.json +1 -0
- data/grammars/source.luau.json +1 -1
- data/grammars/source.lumscript.json +1 -0
- data/grammars/source.m2.json +1 -1
- data/grammars/source.maple.json +1 -0
- data/grammars/source.metafont.json +1 -0
- data/grammars/source.metapost.json +1 -0
- data/grammars/source.mo.json +1 -1
- data/grammars/source.moonbit.config.json +1 -1
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.nextflow-config.json +1 -0
- data/grammars/source.nextflow-groovy.json +1 -1
- data/grammars/source.nextflow-log.json +1 -0
- data/grammars/source.nextflow.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nushell.json +1 -1
- data/grammars/source.ocaml.META.json +1 -0
- data/grammars/source.ocaml.interface.json +1 -0
- data/grammars/source.ocaml.json +1 -1
- data/grammars/source.ocaml.menhir.json +1 -0
- data/grammars/source.ocaml.merlin.json +1 -0
- data/grammars/source.ocaml.mlx.json +1 -0
- data/grammars/source.ocaml.oasis.json +1 -0
- data/grammars/source.ocaml.ocamlbuild.json +1 -0
- data/grammars/source.ocaml.ocamldoc.json +1 -0
- data/grammars/source.ocaml.ocamlformat.json +1 -0
- data/grammars/source.ocaml.ocamllex.json +1 -0
- data/grammars/source.ocaml.opam-install.json +1 -0
- data/grammars/source.ocaml.opam.json +1 -0
- data/grammars/source.pkl.json +1 -1
- data/grammars/source.pl.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.quint.json +1 -1
- data/grammars/source.rascript.json +1 -1
- data/grammars/source.reason.json +1 -1
- data/grammars/source.roc.json +1 -1
- data/grammars/source.ron.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rpm-spec.json +1 -1
- data/grammars/source.skip.json +1 -0
- data/grammars/source.skript.json +1 -0
- data/grammars/source.slice.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.stim.json +1 -1
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.sysml.json +1 -0
- data/grammars/source.tablegen.json +1 -0
- data/grammars/source.tsp.json +1 -1
- data/grammars/source.tsq.json +1 -0
- data/grammars/source.tsrx.json +1 -0
- data/grammars/source.uiua.json +1 -0
- data/grammars/source.veryl.json +1 -0
- data/grammars/source.vespaSchema.json +1 -1
- data/grammars/source.vespaYQL.json +1 -0
- data/grammars/source.vim9.json +1 -0
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.webassembly.json +1 -1
- data/grammars/source.wesl.json +1 -1
- data/grammars/text.html.cobmd.json +1 -0
- data/grammars/text.html.ember-handlebars.json +1 -1
- data/grammars/text.html.jte.json +1 -1
- data/grammars/text.html.markdown.json +1 -0
- data/grammars/text.html.pfm.json +1 -0
- data/grammars/text.html.ss.json +1 -0
- data/grammars/text.html.statamic.json +1 -1
- data/grammars/text.marko.json +1 -1
- data/grammars/text.roff.json +1 -1
- data/grammars/text.valve-cfg.json +1 -1
- data/grammars/text.vtt.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +2 -2
- data/lib/linguist/documentation.yml +3 -0
- data/lib/linguist/generated.rb +75 -8
- data/lib/linguist/generic.yml +2 -0
- data/lib/linguist/heuristics.yml +159 -57
- data/lib/linguist/languages.yml +382 -6
- data/lib/linguist/languages_data.rb +318 -16
- data/lib/linguist/samples_data.rb +201875 -193977
- data/lib/linguist/strategy/modeline.rb +0 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +65 -7
- data/grammars/source.camlp4.ocaml.json +0 -1
- data/grammars/source.ocamllex.json +0 -1
- data/grammars/source.ocamlyacc.json +0 -1
- data/grammars/source.reason.hover.type.json +0 -1
- data/grammars/source.scm.json +0 -1
- data/grammars/text.plain.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Uiua","scopeName":"source.uiua","patterns":[{"include":"#comments"},{"include":"#strings-multiline-format"},{"include":"#strings-multiline"},{"include":"#strings-format"},{"include":"#strings-normal"},{"include":"#characters"},{"include":"#labels"},{"include":"#module_delim"},{"include":"#strand"},{"include":"#stack"},{"include":"#noadic"},{"include":"#monadic"},{"include":"#dyadic"},{"include":"#mod1"},{"include":"#mod2"},{"include":"#idents"},{"include":"#numbers"}],"repository":{"characters":{"name":"constant.character.escape","match":"@(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|.)|.)"},"comments":{"name":"comment.line.uiua","match":"(#.*$|$[a-zA-Z]*)"},"dyadic":{"name":"entity.name.function.uiua","match":"[==≠\u003c≤\u003e≥+\\-×\\*⨰⨱÷%◿∨ⁿ↧↥∠ℂ≍⊟⊂⊏⊡↯↙↘↻⤸▽⌕⦷∊⨂⊥⍤⯾]|(?\u003c![a-zA-Z$])(eq(u(a(l(s)?)?)?)?|not (e(q(u(a(l(s)?)?)?)?)?)?|less( (t(h(a(n)?)?)?)?)?|le(s(s( (o(r( (e(q(u(a(l)?)?)?)?)?)?)?)?)?)?)?|greater( (t(h(a(n)?)?)?)?)?|greater o(r( (e(q(u(a(l)?)?)?)?)?)?)?|add|sub(t(r(a(c(t)?)?)?)?)?|multip(l(y)?)?|inn(e(r( (p(r(o(d(u(c(t)?)?)?)?)?)?)?)?)?)?|out(e(r( (p(r(o(d(u(c(t)?)?)?)?)?)?)?)?)?)?|div(i(d(e)?)?)?|mod(u(l(o)?)?)?|or|pow(e(r)?)?|min(i(m(u(m)?)?)?)?|max(i(m(u(m)?)?)?)?|ata(n(g(e(n(t)?)?)?)?)?|com(p(l(e(x)?)?)?)?|gen|mat(c(h)?)?|cou(p(l(e)?)?)?|joi(n)?|sel(e(c(t)?)?)?|pic(k)?|res(h(a(p(e)?)?)?)?|tak(e)?|dro(p)?|rot(a(t(e)?)?)?|ori(e(n(t)?)?)?|kee(p)?|fin(d)?|mas(k)?|mem(b(e(r(o(f)?)?)?)?)?|ind(e(x(i(n)?)?)?)?|bas(e)?|ass(e(r(t)?)?)?|val(i(d(a(t(e)?)?)?)?)?|send|regex|map|has|get|remove|compress|bytes|img|gif|apng|layout|\u0026rs|\u0026rb|\u0026ru|\u0026w|\u0026seek|\u0026fwa|\u0026gifs|\u0026apngs|\u0026tcpsrt|\u0026tcpswt|\u0026udpsml|\u0026ffi|\u0026memcpy|compress|\u0026memcpy|\u0026udpsml|\u0026tcpswt|\u0026tcpsrt|\u0026apngs|layout|remove|\u0026gifs|\u0026seek|bytes|regex|\u0026ffi|\u0026fwa|apng|send|\u0026ru|\u0026rb|\u0026rs|gif|img|get|has|map|gen|\u0026w)(?![a-zA-Z])"},"idents":{"name":"variable.parameter.uiua","match":"\\b[a-zA-Z]+['′″‴]*(₋?[₀₁₂₃₄₅₆₇₈₉⌞⌟]|,`?\\d+)*[!‼]*\\b"},"labels":{"name":"label.uiua","match":"\\$[a-zA-Z]*"},"mod1":{"name":"entity.name.type.uiua","match":"[˙˜⊙⋅⟜⊸⤙⤚◠◡∩/∧\\\\≡⍚⊞⧅⧈⍥⊕⊜⧋◇∪⌅°⌝⍩∂∫]|(?\u003c![a-zA-Z$])(self|bac(k(w(a(r(d)?)?)?)?)?|dip|ga(p)?|on|by|wit(h)?|off|abo(v(e)?)?|bel(o(w)?)?|bot(h)?|dump|red(u(c(e)?)?)?|fol(d)?|sca(n)?|row(s)?|inv(e(n(t(o(r(y)?)?)?)?)?)?|tab(l(e)?)?|tup(l(e(s)?)?)?|st(e(n(c(i(l)?)?)?)?)?|rep(e(a(t)?)?)?|gro(u(p)?)?|par(t(i(t(i(o(n)?)?)?)?)?)?|eve(r(t)?)?|con(t(e(n(t)?)?)?)?|rea(c(h)?)?|obv(e(r(s(e)?)?)?)?|un|ant(i)?|cas(e)?|memo|comptime|spawn|pool|quote|der(i(v(a(t(i(v(e)?)?)?)?)?)?)?|inte(g(r(a(l)?)?)?)?|\u0026rl|\u0026ast|comptime|quote|spawn|\u0026ast|pool|memo|dump|\u0026rl)(?![a-zA-Z])"},"mod2":{"name":"keyword.control.uiua","match":"[⊃⊓⍜⍢⬚⨬⍣⍡]|(?\u003c![a-zA-Z$])(for(k)?|bra(c(k(e(t)?)?)?)?|und(e(r)?)?|do|fil(l)?|sw(i(t(c(h)?)?)?)?|try|pat(t(e(r(n)?)?)?)?|path|recur|recur|path)(?![a-zA-Z])"},"module_delim":{"match":"---"},"monadic":{"name":"string.quoted","match":"[¬±¯`⨪⌵√ₑ∿⌊⌈⁅𝕍⧻△⇡⊢⊣⇌♭¤⋯⍉⍆⍏⍖⊚◴⊛⧆□⋕]|(?\u003c![a-zA-Z$])(not|sig(n)?|neg(a(t(e)?)?)?|rec(i(p(r(o(c(a(l)?)?)?)?)?)?)?|abs(o(l(u(t(e( (v(a(l(u(e)?)?)?)?)?)?)?)?)?)?)?|sqr(t)?|exp(o(n(e(n(t(i(a(l)?)?)?)?)?)?)?)?|sin(e)?|flo(o(r)?)?|cei(l(i(n(g)?)?)?)?|rou(n(d)?)?|multiv(e(c(t(o(r)?)?)?)?)?|len(g(t(h)?)?)?|sha(p(e)?)?|ran(g(e)?)?|fir(s(t)?)?|las(t)?|rev(e(r(s(e)?)?)?)?|des(h(a(p(e)?)?)?)?|fix|bit(s)?|tra(n(s(p(o(s(e)?)?)?)?)?)?|sor(t)?|ris(e)?|fal(l)?|whe(r(e)?)?|ded(u(p(l(i(c(a(t(e)?)?)?)?)?)?)?)?|cla(s(s(i(f(y)?)?)?)?)?|occ(u(r(r(e(n(c(e(s)?)?)?)?)?)?)?)?|box|pars(e)?|wait|recv|tryrecv|hsv|oklch|utf(₈)?|graphemes|type|datetime|fft|json|csv|xlsx|binary|repr|pretty|voxels|\u0026s|\u0026pf|\u0026p|\u0026epf|\u0026ep|\u0026exit|\u0026raw|\u0026var|\u0026runi|\u0026runc|\u0026runs|\u0026cd|\u0026sl|\u0026invk|\u0026cl|\u0026fo|\u0026fc|\u0026fmd|\u0026fde|\u0026ftr|\u0026fe|\u0026fld|\u0026fif|\u0026fras|\u0026frab|\u0026ims|\u0026ap|\u0026tcpl|\u0026tcpa|\u0026tcpc|\u0026tlsc|\u0026tcpsnb|\u0026tcpaddr|\u0026fetch|\u0026udpb|\u0026udpr|\u0026camcap|\u0026memfree|\u0026malloc|graphemes|\u0026memfree|\u0026tcpaddr|datetime|\u0026malloc|\u0026camcap|\u0026tcpsnb|tryrecv|\u0026fetch|voxels|pretty|binary|utf₈|\u0026udpr|\u0026udpb|\u0026tlsc|\u0026tcpc|\u0026tcpa|\u0026tcpl|\u0026frab|\u0026fras|\u0026invk|\u0026runs|\u0026runc|\u0026runi|\u0026exit|oklch|\u0026ims|\u0026fif|\u0026fld|\u0026ftr|\u0026fde|\u0026fmd|\u0026var|\u0026raw|\u0026epf|repr|xlsx|json|type|recv|wait|\u0026ap|\u0026fe|\u0026fc|\u0026fo|\u0026cl|\u0026sl|\u0026cd|\u0026ep|\u0026pf|csv|fft|hsv|\u0026p|\u0026s)(?![a-zA-Z])|⋊[a-zA-Z]*"},"noadic":{"name":"entity.name.tag.uiua","match":"[⚂]|(?\u003c![a-zA-Z$])(rand(o(m)?)?|now|timezone|os|osfamily|arch|dllext|exeext|pathsep|numprocs|\u0026b|\u0026sc|\u0026ts|\u0026args|\u0026clip|\u0026asr|\u0026camlist|\u0026camlist|numprocs|osfamily|timezone|pathsep|exeext|dllext|\u0026clip|\u0026args|\u0026asr|arch|\u0026ts|\u0026sc|now|\u0026b|os)(?![a-zA-Z])"},"numbers":{"name":"constant.numeric.uiua","match":"[`¯]?(\\d+|η|π|τ|∞|eta|pi|tau|inf(i(n(i(t(y)?)?)?)?)?)([./]\\d+|e[+-]?\\d+)?"},"stack":{"match":"[∘◌?∘]|(?\u003c![a-zA-Z$])(id(e(n(t(i(t(y)?)?)?)?)?)?|po(p)?|arg(s)?|id(e(n(t(i(t(y)?)?)?)?)?)?)(?![a-zA-Z])"},"strand":{"name":"comment.line","match":"(_|‿)"},"strings-format":{"name":"constant.character.escape","begin":"\\$\"","end":"\"","patterns":[{"name":"string.quoted","match":"\\\\[\\\\\"0nrtW_]"},{"name":"constant.numeric","match":"(?\u003c!\\\\)_"}]},"strings-multiline":{"name":"constant.character.escape","begin":"\\$ ","end":"$"},"strings-multiline-format":{"name":"constant.character.escape","begin":"\\$\\$ ","end":"$","patterns":[{"name":"constant.numeric","match":"(?\u003c!\\\\)_"}]},"strings-normal":{"name":"constant.character.escape","begin":"\"","end":"\"","patterns":[{"name":"string.quoted","match":"\\\\[\\\\\"0nrtW]"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Veryl","scopeName":"source.veryl","patterns":[{"include":"#declarations"},{"include":"#imports"},{"include":"#generics"},{"include":"#keywords"},{"include":"#storages"},{"include":"#strings"},{"include":"#comments"},{"include":"#numbers"},{"include":"#operators"},{"include":"#identifiers"}],"repository":{"comments":{"patterns":[{"name":"comment.block.veryl","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}}},{"name":"comment.line.double-slash.veryl","begin":"//","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.veryl"}}}]},"declarations":{"patterns":[{"begin":"(?\u003c![a-zA-Z0-9_$])module(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.module.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])interface(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.interface.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])package(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.namespace.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])function(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.function.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])struct(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.struct.veryl"}}},{"begin":"(?\u003c![a-zA-Z0-9_$])enum(?![a-zA-Z0-9_$])","end":"((?:r#)?[a-zA-Z_][a-zA-Z0-9_$]*)|(?=\\S)(?!//|/\\*)","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}},"endCaptures":{"1":{"name":"entity.name.type.enum.veryl"}}}]},"generics":{"begin":"(::)(\u003c)","end":"(\u003e)|(?=[;{}])","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"punctuation.separator.namespace.veryl"},"2":{"name":"punctuation.definition.generic.begin.veryl"}},"endCaptures":{"1":{"name":"punctuation.definition.generic.end.veryl"}}},"identifiers":{"patterns":[{"name":"variable.other.identifier.veryl","match":"(?\u003c![a-zA-Z0-9_$])(?:r#|\\$)?[a-zA-Z_][a-zA-Z0-9_$]*"}]},"imports":{"begin":"(?\u003c![a-zA-Z0-9_$])import(?![a-zA-Z0-9_$])","end":";","patterns":[{"name":"punctuation.definition.wildcard.veryl","match":"\\*"},{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.other.veryl"}}},"keywords":{"patterns":[{"name":"keyword.control.veryl","match":"(?\u003c![a-zA-Z0-9_$])(case|default|else|if_reset|if|inside|outside|switch|for|in|repeat|rev|step)(?![a-zA-Z0-9_$])"},{"name":"keyword.other.veryl","match":"(?\u003c![a-zA-Z0-9_$])(embed|enum|function|include|interface|modport|module|package|proto|pub|struct|union|unsafe|alias|always_comb|always_ff|assign|as|bind|block|connect|const|final|gen|import|initial|inst|let|mixin|param|return|break|type|var|false|lsb|msb|reset_active|reset_inactive|true)(?![a-zA-Z0-9_$])"}]},"numbers":{"patterns":[{"name":"constant.numeric.integer.veryl","match":"(?\u003c![a-zA-Z0-9_$])(?:[0-9]+(?:_[0-9]+)*)?'(?:s?[bodh][0-9a-fA-FxzXZ]+(?:_[0-9a-fA-FxzXZ]+)*|[01xzXZ])(?![a-zA-Z0-9_$])"},{"name":"constant.numeric.float.veryl","match":"(?\u003c![a-zA-Z0-9_$])[0-9]+(?:_[0-9]+)*\\.[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?(?![a-zA-Z0-9_$])"},{"name":"constant.numeric.integer.veryl","match":"(?\u003c![a-zA-Z0-9_$])[0-9]+(?:_[0-9]+)*(?![a-zA-Z0-9_$])"}]},"operators":{"patterns":[{"name":"punctuation.separator.namespace.veryl","match":"::"},{"name":"keyword.operator.veryl","match":"\u003c\u003c\u003c=|\u003e\u003e\u003e=|\u003c\u003c=|\u003e\u003e=|\u003c\u003c\u003c|\u003e\u003e\u003e|\u003c\u003c|\u003e\u003e|==\\?|!=\\?|==|!=|\u003c=|\u003e=|\u003c:|\u003e:|\u003c\u003e|-\u003e|\u003c-|\\+:|-:|\\.\\.=|\\.\\.|\\*\\*|\\|\\||\u0026\u0026|~[\u0026|^]|[+*/%\u0026|^\\-]=|[=+*/%\u0026|^~!?\\-]"}]},"storages":{"patterns":[{"name":"storage.type.veryl","match":"(?\u003c![a-zA-Z0-9_$])(bit|bbool|lbool|clock|clock_posedge|clock_negedge|f32|f64|i8|i16|i32|i64|logic|reset|reset_async_high|reset_async_low|reset_sync_high|reset_sync_low|signed|string|tri|p8|p16|p32|p64|u8|u16|u32|u64)(?![a-zA-Z0-9_$])"},{"name":"storage.modifier.veryl","match":"(?\u003c![a-zA-Z0-9_$])(converse|inout|input|output|same)(?![a-zA-Z0-9_$])"}]},"strings":{"name":"string.quoted.double.veryl","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.veryl","match":"\\\\."}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Vespa Schema","scopeName":"source.vespaSchema","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#tensor-type"},{"include":"#indexing-block"},{"include":"#indexing-inline"},{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#rank-properties-block"},{"include":"#match-block"},{"include":"#summary-block"},{"include":"#enum-value-inline"},{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#declarations"},{"include":"#file-path"},{"include":"#schema-keywords"},{"include":"#user-type"},{"include":"#assignment-operator"},{"include":"#schema-functions"},{"include":"#schema-enum-members"},{"include":"#variable-reference"},{"include":"#punctuation"}],"repository":{"assignment-operator":{"name":"keyword.operator.assignment.vespa","match":"[+\\-*/]?="},"boolean-constants":{"name":"support.type.vespa","match":"\\b(on(?!-)|off|true|false)\\b"},"comment":{"name":"comment.line.number-sign.vespa","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.vespa"}}},"container-type":{"begin":"\\b(array|weightedset|map|reference|annotationreference)\\s*(\u003c)","end":"(\u003e)","patterns":[{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#tensor-type"},{"name":"punctuation.separator.vespa","match":","},{"name":"entity.name.type.vespa","match":"\\b[a-zA-Z_]\\w*\\b"}],"beginCaptures":{"1":{"name":"storage.type.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"declarations":{"patterns":[{"match":"\\b(schema)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(document)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(field)\\s+([a-zA-Z_]\\w*)\\s+(type)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"}}},{"match":"\\b(struct)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(rank-profile)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(function)\\s+(?:(inline)\\s+)?([a-zA-Z_]\\w*)\\s*(\\([^)]*\\))","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"storage.modifier.vespa"},"3":{"name":"entity.name.function.vespa"},"4":{"name":"variable.parameter.vespa"}}},{"match":"\\b(annotation)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(document-summary)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(fieldset)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(struct-field)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(import)\\s+(field)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(constant)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(onnx-model)\\s+([a-zA-Z_][\\w-]*)","captures":{"1":{"name":"keyword.declaration.vespa"}}}]},"enum-value-inline":{"match":"(?\u003c![a-zA-Z0-9_-])(match|rank|rank-type|sorting|bolding|stemming|summary-to|distance-metric|normalizing|function|locale|strength|order)(:\\s*)(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)(?![a-zA-Z0-9_-])","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"},"3":{"name":"variable.other.enummember.vespa"}}},"expression-block":{"name":"meta.block.expression.vespa","begin":"\\b(expression)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"expression-inline":{"name":"meta.inline.expression.vespa","begin":"\\b(expression)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"feature-list-block":{"name":"meta.block.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"keyword.control.vespa"},"3":{"name":"entity.other.inherited-class.vespa"},"4":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"feature-list-inline":{"name":"meta.inline.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"file-path":{"match":"\\b(file)\\s*:\\s*(\\S+)","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"string.unquoted.path.vespa"}}},"indexing-block":{"name":"meta.block.indexing.vespa","begin":"\\b(indexing)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"indexing-inline":{"name":"meta.inline.indexing.vespa","begin":"\\b(indexing)\\s*(:)","end":"$","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"indexing-language":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"name":"support.type.indexing.vespa","match":"\\b(attribute|summary|index)\\b"},{"name":"keyword.control.indexing.vespa","match":"\\b(select_input|for_each|default|switch|case|else|if)\\b"},{"name":"entity.name.function.indexing.vespa","match":"\\b(to_epoch_second|base64decode|base64encode|get_language|set_language|get_field|hexdecode|hexencode|lowercase|normalize|substring|to_double|to_string|hostname|to_array|to_float|tokenize|flatten|get_var|set_var|to_bool|to_byte|to_long|to_wset|to_int|to_pos|chunk|embed|input|ngram|split|echo|hash|join|trim|now)\\b"},{"name":"keyword.operator.pipe.indexing.vespa","match":"\\|"},{"include":"#punctuation"}]},"match-block":{"name":"meta.block.match.vespa","begin":"\\b(match)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"numeric-literal":{"patterns":[{"name":"constant.numeric.vespa","match":"\\b(infinity)\\b"},{"name":"constant.numeric.float.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?\\d+\\.\\d*(?:[eE][+-]?\\d+)?[fFdD]?)\\b"},{"name":"constant.numeric.integer.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?(?:0[xX][0-9a-fA-F]+|\\d+)[lL]?)\\b"}]},"primitive-type":{"name":"support.type.vespa","match":"\\b(int|byte|bool|string|double|float|long|position|tag|predicate)\\b"},"punctuation":{"patterns":[{"name":"punctuation.section.block.begin.vespa","match":"\\{"},{"name":"punctuation.section.block.end.vespa","match":"\\}"},{"name":"punctuation.separator.colon.vespa","match":":"},{"name":"punctuation.separator.comma.vespa","match":","},{"name":"punctuation.separator.dot.vespa","match":"\\."}]},"rank-properties-block":{"name":"meta.block.rank-properties.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(rank\\-properties)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#primitive-type"},{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"ranking-expression":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#tensor-type"},{"include":"#primitive-type"},{"include":"#variable-reference"},{"name":"keyword.control.ranking.vespa","match":"\\b(euclidean_distance|cosine_similarity|map_subspaces|l1_normalize|l2_normalize|unpack_bits|cell_cast|xw_plus_b|default|softmax|argmax|argmin|concat|expand|matmul|median|random|reduce|rename|switch|tensor|count|false|merge|range|case|diag|join|prod|true|avg|map(?!\\s*\u003c)|max|min|sum|if|in)\\b"},{"name":"entity.name.function.ranking.vespa","match":"\\b(filter_subspaces|cell_order|hamming|sigmoid|square|atan2|floor|isNan|ldexp|log10|round|acos|asin|atan|ceil|cosh|fabs|fmod|relu|sign|sinh|sqrt|tanh|abs|bit|cos|elu|erf|exp|log|pow|sin|tan|top|f)\\b"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(tensorFromWeightedSet|nativeAttributeMatch|customTokenInputIds|elementCompleteness|randomNormalStable|tokenAttentionMask|elementSimilarity|rankingExpression|tensorFromStructs|nativeDotProduct|nativeFieldMatch|tensorFromLabels|nativeProximity|attributeMatch|distanceToPath|fieldTermMatch|firstPhaseRank|globalSequence|queryTermCount|relevanceScore|textSimilarity|tokenInputIds|itemRawScore|randomNormal|termDistance|tokenTypeIds|elementwise|fieldLength|secondPhase|dotProduct|fieldMatch|firstPhase|matchCount|nativeRank|subqueries|attribute|closeness|freshness|onnxModel|constant|distance|lightgbm|rawScore|closest|foreach|matches|xgboost|random|match|query|bm25|file|onnx|term|age|now)\\s*(?=\\()"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(reciprocal_rank_fusion|normalize_linear|reciprocal_rank)\\s*(?=\\()"},{"name":"keyword.operator.ranking.vespa","match":"[+\\-*/%^.]|\u003e=|\u003c=|!=|==|~=|\u0026\u0026|\\|\\||[\u003c\u003e!]"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.vespa"}}},{"begin":"\\{","end":"\\}","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"support.variable.vespa","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#punctuation"}]},"schema-enum-members":{"patterns":[{"name":"variable.other.enummember.vespa","match":"\\b(sequential|parallel)\\b"}]},"schema-functions":{"patterns":[{"name":"entity.name.function.vespa","match":"\\b(query)\\b"}]},"schema-keywords":{"patterns":[{"name":"keyword.control.vespa","match":"(?\u003c![a-zA-Z0-9_-])(target\\-hits\\-max\\-adjustment\\-factor|neighbors\\-to\\-explore\\-at\\-insert|pre\\-post\\-filter\\-tipping\\-point|dense\\-posting\\-list\\-threshold|ignore\\-default\\-rank\\-features|filter\\-first\\-exploration|raw\\-as\\-base64\\-in\\-summary|multi\\-threaded\\-indexing|enable\\-only\\-bit\\-vector|filter\\-first\\-threshold|num\\-threads\\-per\\-search|approximate\\-threshold|create\\-if\\-nonexistent|matched\\-elements\\-only|num\\-search\\-partitions|post\\-filter\\-threshold|rank\\-score\\-drop\\-limit|total\\-keep\\-rank\\-count|max\\-filter\\-coverage|min\\-hits\\-per\\-thread|enable\\-bit\\-vectors|max\\-links\\-per\\-node|select\\-elements\\-by|total\\-rerank\\-count|exploration\\-slack|document\\-summary|evaluation\\-point|exact\\-terminator|filter\\-threshold|max\\-token\\-length|prefetch\\-tensors|summary\\-features|cutoff\\-strategy|distance\\-metric|interop\\-threads|intraop\\-threads|keep\\-rank\\-count|max\\-occurrences|on\\-second\\-phase|rank\\-properties|execution\\-mode|match\\-features|on\\-first\\-phase|remove\\-if\\-zero|stopword\\-limit|termwise\\-limit|total\\-max\\-hits|adjust\\-target|cutoff\\-factor|query\\-command|rank\\-features|global\\-phase|rank\\-profile|rerank\\-count|second\\-phase|struct\\-field|element\\-gap|enable\\-bm25|fast\\-access|fast\\-search|first\\-phase|lower\\-bound|match\\-phase|upper\\-bound|gpu\\-device|max\\-length|min\\-groups|on\\-summary|onnx\\-model|summary\\-to|fast\\-rank|gram\\-size|rank\\-type|use\\-model|max\\-hits|on\\-match)(?![a-zA-Z0-9_-])"},{"name":"keyword.control.vespa","match":"\\b(significance|normalizing|weightedset(?!\\s*\u003c)|annotation|contextual|descending|dictionary|expression|properties|ascending|attribute|constants|diversity|constant|document(?!-)|fieldset|function|indexing|inherits|override|stemming|strength|bolding|mutable|sorting|summary(?!-)|weakand|fields|import|inline|inputs|locale|mutate|output|schema|search|source|strict|struct(?!-)|weight|alias|arity|field|index|input|macro|match(?!-)|order|paged|title|file|hnsw|rank(?!-)|type|uri|url|as|id)\\b"}]},"string-double":{"name":"string.quoted.double.vespa","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"string-single":{"name":"string.quoted.single.vespa","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"summary-block":{"name":"meta.block.summary.vespa","begin":"\\b(summary)\\s+(?:([a-zA-Z_]\\w*)\\s+(?:(inherits)\\s+([a-zA-Z_]\\w*)\\s*)?)?(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"},"5":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"tensor-type":{"begin":"\\b(tensor)\\s*(\u003c)","end":"(\\))","patterns":[{"name":"storage.type.tensor.vespa","match":"\\b(float|double|bfloat16|int8)\\b"},{"name":"punctuation.definition.typeparameters.vespa","match":"\u003e"},{"name":"punctuation.definition.typeparameters.vespa","match":"\\("},{"match":"\\[(\\d+)\\]","captures":{"1":{"name":"constant.numeric.vespa"}}},{"name":"punctuation.definition.dimension.vespa","match":"\\{\\}"},{"name":"support.variable.vespa","match":"\\b([a-zA-Z_][a-zA-Z_0-9]*)\\b"},{"name":"punctuation.separator.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"user-type":{"match":"(?\u003c=\\btype\\s)(\\s*[a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.type.vespa"}}},"variable-reference":{"name":"variable.language.vespa","match":"(\\$)([a-zA-Z_][a-zA-Z0-9_]*)","captures":{"1":{"name":"punctuation.definition.variable.vespa"},"2":{"name":"variable.language.vespa"}}}}}
|
|
1
|
+
{"name":"Vespa Schema","scopeName":"source.vespaSchema","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#explanation-block"},{"include":"#explanation-inline"},{"include":"#tensor-type"},{"include":"#indexing-block"},{"include":"#indexing-inline"},{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#rank-properties-block"},{"include":"#match-block"},{"include":"#summary-block"},{"include":"#enum-value-inline"},{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#declarations"},{"include":"#file-path"},{"include":"#schema-keywords"},{"include":"#user-type"},{"include":"#assignment-operator"},{"include":"#schema-functions"},{"include":"#schema-enum-members"},{"include":"#variable-reference"},{"include":"#punctuation"}],"repository":{"assignment-operator":{"name":"keyword.operator.assignment.vespa","match":"[+\\-*/]?="},"boolean-constants":{"name":"support.type.vespa","match":"\\b(on(?!-)|off|true|false)\\b"},"comment":{"name":"comment.line.number-sign.vespa","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.vespa"}}},"container-type":{"begin":"\\b(array|weightedset|map|reference|annotationreference)\\s*(\u003c)","end":"(\u003e)","patterns":[{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#tensor-type"},{"name":"punctuation.separator.vespa","match":","},{"name":"entity.name.type.vespa","match":"\\b[a-zA-Z_]\\w*\\b"}],"beginCaptures":{"1":{"name":"storage.type.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"declarations":{"patterns":[{"match":"\\b(schema)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(document)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(field)\\s+([a-zA-Z_]\\w*)\\s+(type)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"}}},{"match":"\\b(struct)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(rank-profile)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"^\\s*(model)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"begin":"\\b(function)\\s+(?:(inline)\\s+)?([a-zA-Z_]\\w*)\\s*(\\()","end":"(?\u003c=\\})","patterns":[{"name":"punctuation.section.parens.end.vespa","match":"\\)"},{"include":"#comment"},{"name":"meta.block.function-body.vespa","begin":"\\{","end":"\\}","patterns":[{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"variable.parameter.vespa","match":"[a-zA-Z_]\\w*"},{"name":"punctuation.separator.comma.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"storage.modifier.vespa"},"3":{"name":"entity.name.function.vespa"},"4":{"name":"punctuation.section.parens.begin.vespa"}}},{"match":"\\b(annotation)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(document-summary)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(fieldset)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(struct-field)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(import)\\s+(field)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(constant)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(onnx-model)\\s+([a-zA-Z_][\\w-]*)","captures":{"1":{"name":"keyword.declaration.vespa"}}}]},"enum-value-inline":{"match":"(?\u003c![a-zA-Z0-9_-])(match|rank|rank-type|sorting|bolding|stemming|summary-to|distance-metric|normalizing|function|locale|strength|order)(:\\s*)(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)(?![a-zA-Z0-9_-])","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"},"3":{"name":"variable.other.enummember.vespa"}}},"explanation-block":{"name":"meta.block.explanation.vespa","contentName":"comment.block.documentation.vespa","begin":"\\b(explanation)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#explanation-tag"},{"include":"#explanation-braces"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"explanation-braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#explanation-tag"},{"include":"#explanation-braces"}]},"explanation-inline":{"name":"meta.inline.explanation.vespa","contentName":"comment.line.documentation.vespa","begin":"\\b(explanation)\\s*(:)","end":"$","beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"explanation-tag":{"match":"^\\s*(@input)\\b(?:\\s+(query\\(\\s*[a-zA-Z_]\\w*\\s*\\)|[a-zA-Z_]\\w*))?","captures":{"1":{"name":"storage.type.class.documentation.vespa"},"2":{"name":"variable.parameter.documentation.vespa"}}},"expression-block":{"name":"meta.block.expression.vespa","begin":"\\b(expression)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"expression-inline":{"name":"meta.inline.expression.vespa","begin":"\\b(expression)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"feature-list-block":{"name":"meta.block.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features|sort-features)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"keyword.control.vespa"},"3":{"name":"entity.other.inherited-class.vespa"},"4":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"feature-list-inline":{"name":"meta.inline.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features|sort-features)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"file-path":{"match":"\\b(file)\\s*:\\s*(\\S+)","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"string.unquoted.path.vespa"}}},"indexing-block":{"name":"meta.block.indexing.vespa","begin":"\\b(indexing)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"indexing-inline":{"name":"meta.inline.indexing.vespa","begin":"\\b(indexing)\\s*(:)","end":"$","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"indexing-language":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"name":"support.type.indexing.vespa","match":"\\b(attribute|summary|index)\\b"},{"name":"keyword.control.indexing.vespa","match":"\\b(for_each_field|select_input|for_each|default|switch|case|else|if)\\b"},{"name":"entity.name.function.indexing.vespa","match":"\\b(exhex16doubleencode|exhex8floatencode|to_epoch_second|exhex16encode|base64decode|base64encode|exhex8encode|get_language|set_language|documentid|get_field|get_value|hexdecode|hexencode|lowercase|normalize|pack_bits|substring|to_double|to_string|to_tensor|binarize|generate|hostname|to_array|to_float|tokenize|flatten|get_var|set_var|to_bool|to_byte|to_long|to_wset|random|to_int|to_pos|to_uri|chunk|embed|input|ngram|split|echo|hash|join|trim|abs|now)\\b"},{"name":"keyword.operator.pipe.indexing.vespa","match":"\\|"},{"include":"#punctuation"}]},"match-block":{"name":"meta.block.match.vespa","begin":"\\b(match)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"numeric-literal":{"patterns":[{"name":"constant.numeric.vespa","match":"\\b(infinity)\\b"},{"name":"constant.numeric.float.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?\\d+\\.\\d*(?:[eE][+-]?\\d+)?[fFdD]?)\\b"},{"name":"constant.numeric.integer.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?(?:0[xX][0-9a-fA-F]+|\\d+)[lL]?)\\b"}]},"primitive-type":{"name":"support.type.vespa","match":"\\b(int|byte|bool|string|double|float|long|position|tag|predicate)\\b"},"punctuation":{"patterns":[{"name":"punctuation.section.block.begin.vespa","match":"\\{"},{"name":"punctuation.section.block.end.vespa","match":"\\}"},{"name":"punctuation.separator.colon.vespa","match":":"},{"name":"punctuation.separator.comma.vespa","match":","},{"name":"punctuation.separator.dot.vespa","match":"\\."}]},"rank-properties-block":{"name":"meta.block.rank-properties.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(rank\\-properties)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#primitive-type"},{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"ranking-expression":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#tensor-type"},{"include":"#primitive-type"},{"include":"#variable-reference"},{"name":"keyword.control.ranking.vespa","match":"\\b(euclidean_distance|cosine_similarity|map_subspaces|l1_normalize|l2_normalize|unpack_bits|cell_cast|xw_plus_b|default|softmax|argmax|argmin|concat|expand|matmul|median|random|reduce|rename|switch|tensor|count|false|merge|range|case|diag|join|prod|true|avg|map(?!\\s*\u003c)|max|min|sum|if|in)\\b"},{"name":"entity.name.function.ranking.vespa","match":"\\b(filter_subspaces|cell_order|hamming|sigmoid|square|atan2|floor|isNan|ldexp|log10|round|acos|asin|atan|ceil|cosh|fabs|fmod|relu|sign|sinh|sqrt|tanh|abs|bit|cos|elu|erf|exp|log|pow|sin|tan|top|f)\\b"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(queryTermDocumentFrequency|tensorFromLabelsWithOffset|tensorFromWeightedSet|nativeAttributeMatch|customTokenInputIds|elementCompleteness|averageFieldLength|randomNormalStable|tokenAttentionMask|elementSimilarity|rankingExpression|tensorFromStructs|nativeDotProduct|nativeFieldMatch|tensorFromLabels|nativeProximity|attributeMatch|distanceToPath|fieldTermMatch|firstPhaseRank|globalSequence|queryTermCount|relevanceScore|textSimilarity|tokenInputIds|itemRawScore|randomNormal|termDistance|tokenTypeIds|elementwise|fieldLength|secondPhase|dotProduct|fieldMatch|firstPhase|matchCount|nativeRank|subqueries|attribute|closeness|freshness|onnxModel|constant|distance|lightgbm|rawScore|closest|foreach|matches|xgboost|random|match|query|bm25|file|onnx|term|age|now)\\s*(?=\\()"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(reciprocal_rank_fusion|matches_for_labels|normalize_linear|num_docs_indexed|bm25_for_labels|reciprocal_rank)\\s*(?=\\()"},{"name":"keyword.operator.ranking.vespa","match":"[+\\-*/%^.]|\u003e=|\u003c=|!=|==|~=|\u0026\u0026|\\|\\||[\u003c\u003e!]"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.vespa"}}},{"begin":"\\{","end":"\\}","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"support.variable.vespa","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#punctuation"}]},"schema-enum-members":{"patterns":[{"name":"variable.other.enummember.vespa","match":"\\b(sequential|parallel)\\b"}]},"schema-functions":{"patterns":[{"name":"entity.name.function.vespa","match":"\\b(query)\\b"}]},"schema-keywords":{"patterns":[{"name":"keyword.control.vespa","match":"(?\u003c![a-zA-Z0-9_-])(target\\-hits\\-max\\-adjustment\\-factor|neighbors\\-to\\-explore\\-at\\-insert|pre\\-post\\-filter\\-tipping\\-point|dense\\-posting\\-list\\-threshold|ignore\\-default\\-rank\\-features|filter\\-first\\-exploration|raw\\-as\\-base64\\-in\\-summary|multi\\-threaded\\-indexing|enable\\-only\\-bit\\-vector|filter\\-first\\-threshold|num\\-threads\\-per\\-search|approximate\\-threshold|create\\-if\\-nonexistent|fast\\-search\\-map\\-field|matched\\-elements\\-only|num\\-search\\-partitions|post\\-filter\\-threshold|rank\\-score\\-drop\\-limit|total\\-keep\\-rank\\-count|max\\-filter\\-coverage|min\\-hits\\-per\\-thread|enable\\-bit\\-vectors|max\\-links\\-per\\-node|select\\-elements\\-by|total\\-rerank\\-count|exploration\\-slack|document\\-summary|evaluation\\-point|exact\\-terminator|filter\\-threshold|max\\-token\\-length|prefetch\\-tensors|summary\\-features|cutoff\\-strategy|distance\\-metric|interop\\-threads|intraop\\-threads|keep\\-rank\\-count|max\\-occurrences|on\\-second\\-phase|rank\\-properties|execution\\-mode|match\\-features|on\\-first\\-phase|remove\\-if\\-zero|stopword\\-limit|termwise\\-limit|total\\-max\\-hits|adjust\\-target|cutoff\\-factor|query\\-command|rank\\-features|sort\\-features|global\\-phase|rank\\-profile|rerank\\-count|second\\-phase|struct\\-field|element\\-gap|enable\\-bm25|fast\\-access|fast\\-search|first\\-phase|lower\\-bound|match\\-phase|upper\\-bound|gpu\\-device|max\\-length|min\\-groups|on\\-summary|onnx\\-model|summary\\-to|fast\\-rank|gram\\-size|rank\\-type|use\\-model|max\\-hits|on\\-match)(?![a-zA-Z0-9_-])"},{"name":"keyword.control.vespa","match":"\\b(significance|linguistics|normalizing|weightedset(?!\\s*\u003c)|annotation|contextual|descending|dictionary|documentid|expression|properties|ascending|attribute|constants|diversity|constant|document(?!-)|fieldset|function|indexing|inherits|override|stemming|strength|bolding|mutable|profile|sorting|summary(?!-)|weakand|fields|import|inline|inputs|locale|mutate|output|schema|search|source|strict|struct(?!-)|weight|alias|arity|field|index|input|macro|match(?!-)|order|paged|title|file|hnsw|rank(?!-)|type|uri|url|as|id)\\b"}]},"string-double":{"name":"string.quoted.double.vespa","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"string-single":{"name":"string.quoted.single.vespa","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"summary-block":{"name":"meta.block.summary.vespa","begin":"\\b(summary)\\s+(?:([a-zA-Z_]\\w*)\\s+(?:(inherits)\\s+([a-zA-Z_]\\w*)\\s*)?)?(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"},"5":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"tensor-type":{"begin":"\\b(tensor)\\s*(?:(\u003c)|(?=\\())","end":"(\\))|$","patterns":[{"name":"storage.type.tensor.vespa","match":"\\b(float|double|bfloat16|int8)\\b"},{"name":"punctuation.definition.typeparameters.vespa","match":"\u003e"},{"name":"punctuation.definition.typeparameters.vespa","match":"\\("},{"match":"\\[(\\d+)\\]","captures":{"1":{"name":"constant.numeric.integer.vespa"}}},{"name":"punctuation.definition.dimension.vespa","match":"\\{\\}"},{"name":"support.variable.vespa","match":"\\b([a-zA-Z_][a-zA-Z_0-9]*)\\b"},{"name":"punctuation.separator.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"user-type":{"match":"(?\u003c=\\btype\\s)(\\s*[a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.type.vespa"}}},"variable-reference":{"name":"variable.language.vespa","match":"(\\$)([a-zA-Z_][a-zA-Z0-9_]*)","captures":{"1":{"name":"punctuation.definition.variable.vespa"},"2":{"name":"variable.language.vespa"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vespa YQL","scopeName":"source.vespaYQL","patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#grouping"},{"include":"#parameter"},{"include":"#number"},{"include":"#keyword"},{"include":"#operator"},{"include":"#constant"},{"include":"#function-call"},{"include":"#identifier"}],"repository":{"comment":{"patterns":[{"name":"comment.line.double-slash.yql","match":"(//).*$","captures":{"1":{"name":"punctuation.definition.comment.yql"}}},{"name":"comment.line.number-sign.yql","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.yql"}}},{"include":"#comment-block"}]},"comment-block":{"name":"comment.block.yql","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.yql"}}},"constant":{"name":"support.type.yql","match":"(?i:(?\u003c!\\w)(false|true)(?![\\w-]))"},"function-call":{"name":"entity.name.function.yql","match":"(?\u003c!\\w)[a-zA-Z_][\\w-]*(?=\\s*\\()"},"grouping":{"name":"meta.grouping.yql","begin":"\\||^(?=\\s*(?:each|all)\\s*\\()","end":"(?=;)|^(?=\\s*(?i:select)(?![\\w-]))","patterns":[{"include":"#grouping-expression"}]},"grouping-bucket":{"begin":"(?\u003c![\\w@])(bucket)\\s*([(\\[\u003c])","end":"[)\\]\u003e]","patterns":[{"include":"#grouping-expression"}],"beginCaptures":{"1":{"name":"entity.name.function.yql"},"2":{"name":"punctuation.section.brackets.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.yql"}}},"grouping-expression":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#grouping-bucket"},{"include":"#grouping-parens"},{"include":"#parameter"},{"name":"constant.numeric.yql","match":"(?\u003c![\\w@])-?inf(?![\\w@])"},{"name":"constant.numeric.yql","match":"(?\u003c![\\w.@])(?:0[xX][0-9a-fA-F]+[lL]?|\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?[fFdD]|\\d+\\.\\d*(?:[eE][+-]?\\d+)?|\\d+[eE][+-]?\\d+|\\d+[lL]?)(?![\\w.@])"},{"match":"(?\u003c![\\w@])(time)(\\.)(secondofminute|minuteofhour|monthofyear|dayofmonth|dayofweek|dayofyear|hourofday|date|year)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"match":"(?\u003c![\\w@])(math)(\\.)(acosh|asinh|atanh|floor|hypot|log10|log1p|acos|asin|atan|cbrt|cosh|sinh|sqrt|tanh|cos|exp|log|pow|sin|tan)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"match":"(?\u003c![\\w@])(zcurve)(\\.)(x|y)(?![\\w@])","captures":{"1":{"name":"support.class.yql"},"3":{"name":"entity.name.function.yql"}}},{"name":"keyword.control.yql","match":"(?\u003c![\\w@])(each|all|as|at)(?![\\w@])"},{"name":"keyword.operator.wordlike.yql","match":"(?\u003c![\\w@])(istrue|and|not|in|or)(?![\\w@])"},{"name":"support.type.yql","match":"(?\u003c![\\w@])(false|true)(?![\\w@])"},{"name":"entity.name.function.yql","match":"(?\u003c![\\w@])(interpolatedlookup|normalizesubject|docidnsspecific|fixedwidth|predefined|attribute|debugwait|precision|quantiles|relevance|accuracy|todouble|tostring|reverse|summary|argmax|argmin|bucket|filter|output|stddev|strcat|strlen|tolong|xorbit|alias|count|group|order|range|regex|toraw|where|hint|size|sort|add|avg|cat|max|md5|min|mod|mul|neg|now|sub|sum|uca|xor)(?![\\w@])"},{"name":"entity.name.function.yql","match":"(?\u003c![\\w@])[a-zA-Z][\\w@]*(?=\\s*\\()"},{"name":"variable.other.yql","match":"(?\u003c![\\w@])[a-zA-Z][\\w@]*"},{"name":"keyword.operator.yql","match":"%|\\*|\\+|\\-|/|\u003c|=|\u003e"}]},"grouping-parens":{"begin":"\\(","end":"\\)","patterns":[{"include":"#grouping-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.yql"}}},"identifier":{"name":"variable.other.yql","match":"(?\u003c!\\w)[a-zA-Z_][\\w-]*"},"keyword":{"name":"keyword.control.yql","match":"(?i:(?\u003c!\\w)(not\\s+matches|contains|not\\s+like|order\\s+by|matches|sources|timeout|offset|select|limit|where|desc|from|like|asc)(?![\\w-]))"},"number":{"patterns":[{"name":"constant.numeric.yql","match":"(?\u003c![\\w.-])-?(?:\\d+\\.\\d*|\\.\\d+|\\d+)(?:[eE][+-]?\\d+)?[lL]?(?![\\w.])"}]},"operator":{"patterns":[{"name":"keyword.operator.wordlike.yql","match":"(?i:(?\u003c!\\w)(not\\s+in|and|in|or)(?![\\w-]))"},{"name":"keyword.operator.yql","match":"!=|\u003c=|\u003e=|!|%|\\*|\\+|\\-|/|\u003c|=|\u003e"}]},"parameter":{"name":"variable.parameter.yql","match":"@[a-zA-Z_][\\w-]*"},"string":{"patterns":[{"name":"string.quoted.double.yql","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.yql","match":"\\\\(?:u[0-9a-fA-F]{4}|.)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yql"}}},{"name":"string.quoted.single.yql","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.yql","match":"\\\\(?:u[0-9a-fA-F]{4}|.)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yql"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yql"}}}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vim9 Script","scopeName":"source.vim9","patterns":[{"include":"#vim9script-declaration"},{"include":"#scriptencoding"},{"include":"#comments"},{"include":"#import-statement"},{"include":"#export-statement"},{"include":"#classes"},{"include":"#interfaces"},{"include":"#enums"},{"include":"#autocommands"},{"include":"#commands"},{"include":"#heredoc"},{"include":"#dictionaries"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#module-keywords"},{"include":"#functions"},{"include":"#mappings"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"repository":{"autocmd-clear":{"patterns":[{"name":"keyword.control.autocmd.clear.vim9","match":"\\b(autocmd!)\\b"}]},"autocmd-command":{"patterns":[{"include":"#autocmd-statement"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#ex-commands"},{"include":"#strings"},{"include":"#vim-expansions"}]},"autocmd-events":{"patterns":[{"name":"entity.name.event.vim9","match":"\\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|FileType|Syntax|EncodingChanged|TermChanged|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|ExitPre|VimLeavePre|VimLeave|VimResized|FocusGained|FocusLost|CursorHold|CursorHoldI|CursorMoved|CursorMovedI|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdwinEnter|CmdwinLeave|CmdlineChanged|CmdlineEnter|CmdlineLeave|InsertEnter|InsertChange|InsertLeave|InsertLeavePre|InsertCharPre|TextChanged|TextChangedI|TextChangedP|TextChangedT|TextYankPost|ColorScheme|ColorSchemePre|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|CompleteChanged|User|SourcePre|SourcePost|SourceCmd|FileChangedShell|FileChangedShellPost|FileChangedRO|DiffUpdated|DirChanged|DirChangedPre|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|TerminalOpen|TerminalWinOpen|SafeState|SafeStateAgain|ModeChanged|WinResized|WinScrolled|OptionSet|Signal|VimSuspend|VimResume)\\b"}]},"autocmd-pattern":{"patterns":[{"name":"constant.language.buffer.vim9","match":"\u003cbuffer\u003e"},{"name":"string.unquoted.pattern.vim9","match":"\\*\\.[a-zA-Z0-9_]+|\\*|[a-zA-Z0-9_./]+\\*[a-zA-Z0-9_./]*"}]},"autocmd-statement":{"patterns":[{"name":"meta.autocmd.vim9","begin":"\\b(autocmd)\\b","end":"$","patterns":[{"include":"#autocmd-events"},{"include":"#autocmd-pattern"},{"include":"#autocmd-command"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.autocmd.vim9"}}}]},"autocommands":{"patterns":[{"name":"meta.augroup.vim9","begin":"\\b(augroup)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"\\b(augroup)\\s+(END)\\b","patterns":[{"include":"#autocmd-clear"},{"include":"#autocmd-statement"},{"include":"#control-flow"},{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.augroup.vim9"},"2":{"name":"entity.name.augroup.vim9"}},"endCaptures":{"1":{"name":"keyword.control.augroup.vim9"},"2":{"name":"constant.language.augroup-end.vim9"}}},{"include":"#autocmd-statement"}]},"booleans":{"name":"constant.language.boolean.vim9","match":"\\b(true|false|v:true|v:false|v:null|v:none)\\b"},"builtin-functions":{"patterns":[{"name":"support.function.builtin.vim9","match":"\\b(echo|echomsg|echon|echoerr|echoraw)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(execute|eval|exists|exists_compiled|expand|expandcmd)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(range|len|empty|get|has|has_key|type|typename)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(add|extend|extendnew|remove|insert|reverse|sort|uniq|filter|map|mapnew|reduce|flatten|flattennew|slice)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(join|split|repeat|substitute|trim|tolower|toupper|tr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(strlen|strcharlen|strwidth|strdisplaywidth|strchars|strpart|strcharpart|stridx|strridx|strgetchar|strutf16len|charidx|byteidx|byteidxcomp|utf16idx)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(string|str2nr|str2float|str2list|list2str|char2nr|nr2char|blob2list|list2blob|float2nr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(abs|acos|asin|atan|atan2|ceil|cos|cosh|exp|floor|fmod|log|log10|pow|round|sin|sinh|sqrt|tan|tanh|trunc)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(and|or|xor|invert)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(min|max|count|index|indexof|match|matchend|matchlist|matchstr|matchstrpos|matchfuzzy|matchfuzzypos)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(keys|values|items|copy|deepcopy)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(bufadd|bufexists|buflisted|bufload|bufloaded|bufname|bufnr|bufwinid|bufwinnr|getbufinfo|getbufline|getbufoneline|getbufvar|setbufvar|setbufline|deletebufline|appendbufline)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(winnr|winheight|winwidth|wincol|winline|winrestcmd|winsaveview|winrestview|win_execute|win_findbuf|win_getid|win_gettype|win_gotoid|win_id2tabwin|win_id2win|win_move_separator|win_move_statusline|win_screenpos|win_splitmove|winbufnr|winlayout|getwininfo|getwinpos|getwinposx|getwinposy|getwinvar|setwinvar)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(tabpagenr|tabpagebuflist|tabpagewinnr|gettabinfo|gettabvar|settabvar|gettabwinvar|settabwinvar)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(line|col|virtcol|virtcol2col|charcol|byte2line|line2byte|cursor|setpos|getpos|setcharpos|getcharpos|setcursorcharpos|getcurpos|getcursorcharpos|screenrow|screencol|screenpos|screenchar|screenstring|screenchars|screenattr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(search|searchpos|searchpair|searchpairpos|searchdecl|searchcount)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getline|setline|append|getchangelist|nextnonblank|prevnonblank|indent|cindent|lispindent|shiftwidth)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(filereadable|filewritable|isdirectory|isabsolutepath|executable|exepath|glob|globpath|finddir|findfile|readfile|writefile|readdir|readdirex|readblob|delete|mkdir|rename)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(fnamemodify|fnameescape|simplify|resolve|pathshorten|expand|getfperm|setfperm|getfsize|getftime|getftype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcwd|chdir|haslocaldir)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(system|systemlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getenv|setenv|environ)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(localtime|strftime|strptime|reltime|reltimefloat|reltimestr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(timer_start|timer_stop|timer_stopall|timer_pause|timer_info)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getchar|getcharstr|getcharmod|nr2char|char2nr|keytrans)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(input|inputdialog|inputlist|inputsave|inputrestore|inputsecret|confirm)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(complete|complete_add|complete_check|complete_info|pumvisible|pum_getpos|getcompletion)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcmdline|getcmdpos|getcmdscreenpos|getcmdtype|getcmdwintype|setcmdline|setcmdpos|getcmdcompltype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getreg|setreg|getregtype|getreginfo|reg_recording|reg_executing)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getmarklist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(argc|argidx|arglistid|argv)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getqflist|setqflist|getloclist|setloclist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(taglist|tagfiles|gettagstack|settagstack)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getjumplist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcharsearch|setcharsearch)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(foldclosed|foldclosedend|foldlevel|foldtext|foldtextresult)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(synID|synIDattr|synIDtrans|synstack|synconcealed|diff_filler|diff_hlID)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(hlID|hlexists|hlget|hlset|matchadd|matchaddpos|matcharg|matchdelete|getmatches|setmatches|clearmatches)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(spellbadword|spellsuggest|soundfold)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(mode|state|visualmode)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(feedkeys|eventhandler)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(autocmd_add|autocmd_delete|autocmd_get)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(listener_add|listener_flush|listener_remove)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(did_filetype)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(histadd|histdel|histget|histnr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(maparg|mapcheck|maplist|mapset|hasmapto)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(menu_info)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sign_define|sign_getdefined|sign_getplaced|sign_jump|sign_place|sign_placelist|sign_undefine|sign_unplace|sign_unplacelist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(prop_add|prop_add_list|prop_clear|prop_find|prop_list|prop_remove|prop_type_add|prop_type_change|prop_type_delete|prop_type_get|prop_type_list)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(popup_atcursor|popup_beval|popup_clear|popup_close|popup_create|popup_dialog|popup_filter_menu|popup_filter_yesno|popup_findecho|popup_findinfo|popup_findpreview|popup_getoptions|popup_getpos|popup_hide|popup_list|popup_locate|popup_menu|popup_move|popup_notification|popup_setoptions|popup_settext|popup_show)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(balloon_gettext|balloon_show|balloon_split)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(prompt_getprompt|prompt_setcallback|prompt_setinterrupt|prompt_setprompt)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(term_dumpdiff|term_dumpload|term_dumpwrite|term_getaltscreen|term_getansicolors|term_getattr|term_getcursor|term_getjob|term_getline|term_getscrolled|term_getsize|term_getstatus|term_gettitle|term_gettty|term_list|term_scrape|term_sendkeys|term_setansicolors|term_setapi|term_setkill|term_setrestore|term_setsize|term_start|term_wait|terminalprops)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(job_getchannel|job_info|job_setoptions|job_start|job_status|job_stop)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(ch_canread|ch_close|ch_close_in|ch_evalexpr|ch_evalraw|ch_getbufnr|ch_getjob|ch_info|ch_log|ch_logfile|ch_open|ch_read|ch_readblob|ch_readraw|ch_sendexpr|ch_sendraw|ch_setoptions|ch_status)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sound_clear|sound_playevent|sound_playfile|sound_stop)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(json_encode|json_decode|js_encode|js_decode)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(funcref|function|call)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(garbagecollect)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getscriptinfo|fullcommand)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(undofile|undotree|changenr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(swapname|swapinfo|swapfilelist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(sha256|iconv|escape)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(browse|browsedir)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(foreground|getfontname|getimstatus|getmousepos|getmouseshape|wildmenumode|windowsversion)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(hostname|getpid)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(remote_expr|remote_foreground|remote_peek|remote_read|remote_send|remote_startserver|server2client|serverlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(cscope_connection)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(digraph_get|digraph_getlist|digraph_set|digraph_setlist)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(gettext)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(getcellwidths|setcellwidths|charclass|strtrans)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(glob2regpat|shellescape|fnameescape)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(wordcount)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(debugbreak|interrupt)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(rand|srand|isinf|isnan|islocked|instanceof)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(luaeval|mzeval|perleval|pyeval|py3eval|pyxeval|rubyeval)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(libcall|libcallnr)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(printf|submatch)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(tempname)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(err_teapot)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(assert_beeps|assert_equal|assert_equalfile|assert_exception|assert_fails|assert_false|assert_inrange|assert_match|assert_nobeep|assert_notequal|assert_notmatch|assert_report|assert_true)\\b"},{"name":"support.function.builtin.vim9","match":"\\b(test_alloc_fail|test_autochdir|test_feedinput|test_garbagecollect_now|test_garbagecollect_soon|test_getvalue|test_gui_event|test_ignore_error|test_mswin_event|test_null_blob|test_null_channel|test_null_dict|test_null_function|test_null_job|test_null_list|test_null_partial|test_null_string|test_option_not_set|test_override|test_refcount|test_setmouse|test_settime|test_srand_seed|test_unknown|test_void)\\b"}]},"class-body":{"patterns":[{"include":"#comments"},{"include":"#class-methods"},{"include":"#class-members"},{"include":"#declaration-keywords"},{"include":"#type-annotation"}]},"class-members":{"patterns":[{"match":"\\b(public|static|const|final|var)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"storage.modifier.vim9"},"2":{"name":"variable.other.member.vim9"},"3":{"name":"meta.type.annotation.vim9"},"4":{"name":"storage.type.vim9"}}},{"name":"variable.language.this.vim9","match":"\\bthis\\b"}]},"class-methods":{"patterns":[{"name":"meta.constructor.vim9","begin":"\\b(def)\\s+(new)\\s*\\(","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.control.def.vim9"},"2":{"name":"entity.name.function.constructor.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}},{"name":"meta.method.vim9","begin":"\\b(public\\s+)?(static\\s+)?(abstract\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*|\u003c[^\u003e]+\u003e)","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"storage.modifier.public.vim9"},"2":{"name":"storage.modifier.static.vim9"},"3":{"name":"storage.modifier.abstract.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.method.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}}]},"classes":{"patterns":[{"name":"meta.class.vim9","begin":"\\b(export\\s+)?(abstract\\s+)?(class)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\bendclass\\b","patterns":[{"include":"#comments"},{"name":"meta.method.vim9","begin":"\\b(public\\s+)?(static\\s+)?(abstract\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*)","end":"\\benddef\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"storage.modifier.public.vim9"},"2":{"name":"storage.modifier.static.vim9"},"3":{"name":"storage.modifier.abstract.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.method.vim9"}},"endCaptures":{"0":{"name":"keyword.control.enddef.vim9"}}},{"match":"\\b(public\\s+)?(static\\s+)?(const|final|var)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"storage.modifier.vim9"},"2":{"name":"storage.modifier.vim9"},"3":{"name":"storage.type.vim9"},"4":{"name":"variable.other.member.vim9"},"6":{"name":"storage.type.vim9"}}},{"name":"variable.language.this.vim9","match":"\\bthis\\b"},{"include":"#strings"},{"include":"#numbers"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.modifier.abstract.vim9"},"3":{"name":"keyword.control.class.vim9"},"4":{"name":"entity.name.type.class.vim9"}},"endCaptures":{"0":{"name":"keyword.control.endclass.vim9"}}}]},"command-attribute-values":{"patterns":[{"name":"constant.numeric.nargs.vim9","match":"^[?*+01]$"},{"match":"^(customlist|custom)(,)(.+)$","captures":{"1":{"name":"constant.language.complete.vim9"},"2":{"name":"punctuation.separator.vim9"},"3":{"patterns":[{"include":"#function-reference"}]}}},{"name":"constant.language.complete.vim9","match":"\\b(augroup|buffer|behave|color|command|compiler|cscope|dir|environment|event|expression|file|file_in_path|filetype|function|help|highlight|history|locale|mapclear|mapping|menu|option|packadd|shellcmd|sign|syntax|syntime|tag|tag_listfiles|user|var)\\b"},{"name":"constant.numeric.range.vim9","match":"^%$|^\\d+$"},{"name":"string.unquoted.attribute.vim9","match":".+"}]},"command-attributes":{"patterns":[{"match":"(-)(nargs|complete|range|count|addr|bang|bar|register|buffer|replace)(=)([^\\s]+)","captures":{"1":{"name":"punctuation.definition.attribute.vim9"},"2":{"name":"entity.other.attribute-name.command.vim9"},"3":{"name":"keyword.operator.assignment.vim9"},"4":{"patterns":[{"include":"#command-attribute-values"}]}}},{"match":"(-)(bang|bar|buffer|register)","captures":{"1":{"name":"punctuation.definition.attribute.vim9"},"2":{"name":"entity.other.attribute-name.command.vim9"}}}]},"command-implementation":{"patterns":[{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#vim-expansions"},{"include":"#strings"},{"include":"#operators"}]},"command-name":{"patterns":[{"name":"entity.name.command.vim9","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"}]},"commands":{"patterns":[{"name":"meta.command.vim9","begin":"\\b(command!)\\s+","end":"$","patterns":[{"include":"#command-attributes"},{"include":"#command-name"},{"include":"#command-implementation"}],"beginCaptures":{"1":{"name":"keyword.control.command.vim9"}}}]},"comments":{"patterns":[{"name":"comment.line.number-sign.vim9","match":"#.*$"},{"name":"invalid.deprecated.comment.vim9","match":"^\\s*\".*$"}]},"control-flow":{"patterns":[{"name":"keyword.control.conditional.vim9","match":"\\b(if|elseif|else|endif)\\b"},{"match":"\\b(has)\\s*\\(","captures":{"1":{"name":"support.function.builtin.vim9"}}}]},"control-keywords":{"name":"keyword.control.vim9","match":"\\b(if|elseif|else|endif|for|in|endfor|while|endwhile|try|catch|finally|endtry|return|break|continue|throw|class|endclass|interface|endinterface|enum|endenum|def|enddef)\\b"},"declaration-keywords":{"name":"storage.type.vim9","match":"\\b(var|const|final|public|static|abstract)\\b"},"dictionaries":{"patterns":[{"name":"meta.dictionary.vim9","begin":"\\{","end":"\\}","patterns":[{"include":"#dictionary-key"},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#operators"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#variables"},{"include":"$self"}]}]},"dictionary-key":{"patterns":[{"name":"meta.dictionary-key.single-quoted.vim9","match":"'([^']+)'\\s*:","captures":{"0":{"name":"string.quoted.single.dictionary-key.vim9"}}},{"name":"meta.dictionary-key.double-quoted.vim9","match":"\"([^\"]+)\"\\s*:","captures":{"0":{"name":"string.quoted.double.dictionary-key.vim9"}}},{"name":"meta.dictionary-key.unquoted.vim9","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*:","captures":{"1":{"name":"entity.name.property.vim9"}}}]},"enums":{"patterns":[{"name":"meta.enum.vim9","begin":"\\b(export\\s+)?(enum)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\b(endenum)\\b","patterns":[{"include":"#comments"},{"name":"constant.other.enum.vim9","match":"\\b[A-Z][a-zA-Z0-9_]*\\b"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"keyword.control.enum.vim9"},"3":{"name":"entity.name.type.enum.vim9"}},"endCaptures":{"1":{"name":"keyword.control.endenum.vim9"}}}]},"ex-commands":{"patterns":[{"name":"keyword.control.ex.vim9","match":"\\b(call|echo|echon|echomsg|echoerr|execute|normal|return|throw)\\b"},{"name":"constant.character.key.vim9","match":"\u003cC-u\u003e"}]},"export-statement":{"patterns":[{"name":"meta.export.vim9","match":"\\b(export)\\s+(var|const|final|class|interface)\\b","captures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.type.vim9"}}},{"name":"keyword.control.export.vim9","match":"\\b(export)\\b"}]},"function-body":{"patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#dictionaries"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}]},"function-calls":{"patterns":[{"name":"meta.method-call.arrow.vim9","match":"-\u003e([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.method.vim9"}}},{"name":"meta.method-call.dot.vim9","match":"\\.([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.method.vim9"}}},{"name":"meta.function-call.vim9","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.call.vim9"}}}]},"function-reference":{"patterns":[{"match":"([a-zA-Z_][a-zA-Z0-9_#]*)(\\.([a-zA-Z_][a-zA-Z0-9_]*))?","captures":{"1":{"name":"variable.other.object.vim9"},"3":{"name":"entity.name.function.vim9"}}},{"name":"entity.name.function.vim9","match":"[a-zA-Z_][a-zA-Z0-9_]*"}]},"function-signature":{"patterns":[{"name":"meta.function.parameters.vim9","begin":"(?\u003c=\\()(?!.*\\benddef\\b)","end":"\\)","patterns":[{"include":"#type-annotation"},{"name":"variable.parameter.vim9","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},{"name":"punctuation.separator.parameter.vim9","match":","},{"include":"#comments"}]},{"include":"#type-annotation"}]},"functions":{"patterns":[{"name":"meta.function.vim9","begin":"\\b(export\\s+)?(abstract\\s+)?(static\\s+)?(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*|\u003c[^\u003e]+\u003e)","end":"\\b(enddef)\\b","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#dictionaries"},{"include":"#numbers"},{"include":"#booleans"},{"include":"#control-keywords"},{"include":"#declaration-keywords"},{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#variables"}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"storage.modifier.abstract.vim9"},"3":{"name":"storage.modifier.static.vim9"},"4":{"name":"keyword.control.def.vim9"},"5":{"name":"entity.name.function.vim9"}},"endCaptures":{"1":{"name":"keyword.control.enddef.vim9"}}}]},"heredoc":{"patterns":[{"name":"string.unquoted.heredoc.eval.vim9","begin":"=\u003c\u003c\\s*(trim\\s+)?eval\\s+([A-Z_][A-Z0-9_]*)","end":"^\\2$","patterns":[{"name":"meta.interpolation.vim9","begin":"\\{","end":"\\}","patterns":[{"include":"#builtin-functions"},{"include":"#function-calls"},{"include":"#operators"},{"include":"#numbers"},{"include":"#variables"}],"beginCaptures":{"0":{"name":"punctuation.definition.interpolation.begin.vim9"}},"endCaptures":{"0":{"name":"punctuation.definition.interpolation.end.vim9"}}}],"beginCaptures":{"0":{"patterns":[{"name":"storage.modifier.eval.vim9","match":"eval"}]},"1":{"name":"storage.modifier.trim.vim9"},"2":{"name":"keyword.control.heredoc.vim9"}},"endCaptures":{"0":{"name":"keyword.control.heredoc.vim9"}}},{"name":"string.unquoted.heredoc.vim9","begin":"=\u003c\u003c\\s*(trim\\s+)?([A-Z_][A-Z0-9_]*)","end":"^\\2$","beginCaptures":{"1":{"name":"storage.modifier.trim.vim9"},"2":{"name":"keyword.control.heredoc.vim9"}},"endCaptures":{"0":{"name":"keyword.control.heredoc.vim9"}}}]},"import-statement":{"patterns":[{"name":"meta.import.vim9","match":"\\b(import)\\s+(autoload)?\\s*(['\"])(.*?)\\3(?:\\s+(as)\\s+([a-zA-Z_][a-zA-Z0-9_]*))?","captures":{"1":{"name":"keyword.control.import.vim9"},"2":{"name":"storage.modifier.autoload.vim9"},"3":{"name":"punctuation.definition.string.begin.vim9"},"4":{"name":"string.quoted.import.path.vim9"},"5":{"name":"keyword.control.as.vim9"},"6":{"name":"variable.other.alias.vim9"}}}]},"interfaces":{"patterns":[{"name":"meta.interface.vim9","begin":"\\b(export\\s+)?(interface)\\s+([A-Z][a-zA-Z0-9_]*)","end":"\\bendinterface\\b","patterns":[{"include":"#comments"},{"match":"\\b(def)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(([^)]*)\\)\\s*(:\\s*([a-zA-Z_][a-zA-Z0-9_\u003c\u003e,\\s]*))?","captures":{"1":{"name":"keyword.control.def.vim9"},"2":{"name":"entity.name.function.vim9"},"3":{"patterns":[{"include":"#type-annotation"},{"name":"variable.parameter.vim9","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"}]},"5":{"name":"storage.type.vim9"}}}],"beginCaptures":{"1":{"name":"keyword.control.export.vim9"},"2":{"name":"keyword.control.interface.vim9"},"3":{"name":"entity.name.type.interface.vim9"}},"endCaptures":{"0":{"name":"keyword.control.endinterface.vim9"}}}]},"mapping-lhs":{"patterns":[{"name":"constant.character.key.vim9","match":"\u003c([A-Za-z0-9_-]+|[CMS]-[A-Za-z0-9_-]+)\u003e"},{"name":"entity.name.function.plug.vim9","match":"\u003cPlug\u003e\\(?[A-Za-z0-9_#]+\\)?"},{"name":"constant.character.leader.vim9","match":"\u003c[Ll]eader\u003e"},{"name":"constant.character.leader.vim9","match":"\u003c[Ll]ocal[Ll]eader\u003e"}]},"mapping-modifiers":{"patterns":[{"name":"storage.modifier.mapping.vim9","match":"\u003c(silent|buffer|nowait|script|expr|unique)\u003e"}]},"mapping-rhs":{"patterns":[{"name":"string.quoted.double.vim9","match":"\"[^\"]*\""},{"name":"meta.mapping.command.vim9","begin":":","end":"(?=\u003cCR\u003e|\u003cEsc\u003e|$)","patterns":[{"include":"#strings"},{"include":"#ex-commands"},{"include":"#builtin-functions"},{"include":"#function-calls"}]},{"include":"#mapping-lhs"}]},"mappings":{"patterns":[{"name":"meta.mapping.vim9","begin":"\\b(nore)?(map|noremap|nmap|vmap|xmap|smap|imap|cmap|omap|tmap|lmap|nnoremap|vnoremap|xnoremap|snoremap|inoremap|cnoremap|onoremap|tnoremap|lnoremap)\\b","end":"$","patterns":[{"include":"#mapping-modifiers"},{"include":"#mapping-lhs"},{"include":"#mapping-rhs"}],"beginCaptures":{"0":{"name":"keyword.control.mapping.vim9"}}},{"name":"keyword.control.mapping.vim9","match":"\\b(unmap|nunmap|vunmap|xunmap|sunmap|iunmap|cunmap|ounmap|tunmap|lunmap|mapclear|nmapclear|vmapclear|xmapclear|smapclear|imapclear|cmapclear|omapclear|tmapclear|lmapclear)\\b"}]},"module-keywords":{"name":"keyword.control.import.vim9","match":"\\b(export)\\b"},"numbers":{"patterns":[{"name":"constant.numeric.hex.vim9","match":"\\b0[xX][0-9a-fA-F]+\\b"},{"name":"constant.numeric.binary.vim9","match":"\\b0[bB][01]+\\b"},{"name":"constant.numeric.float.vim9","match":"\\b[0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?\\b"},{"name":"constant.numeric.integer.vim9","match":"\\b[0-9]+\\b"}]},"operators":{"patterns":[{"name":"keyword.operator.assignment.vim9","match":"(?\u003c!=)=(?!=)|\\+=|-=|\\*=|/=|%=|\\.\\.|\\.\\.="},{"name":"keyword.operator.method-call.vim9","match":"-\u003e"},{"name":"keyword.operator.comparison.vim9","match":"\\b(is|isnot)([#?])?\\b|[!=]=([#?])?|[\u003e\u003c]=?([#?])?|[=!]~([#?])?"},{"name":"keyword.operator.logical.vim9","match":"\u0026\u0026|\\|\\||!(?![~=])"},{"name":"keyword.operator.arithmetic.vim9","match":"\\+(?!=)|-(?!=)|\\*(?!=)|/(?!=)|%(?!=)"},{"name":"keyword.operator.lambda.vim9","match":"=\u003e"},{"name":"keyword.operator.ternary.vim9","match":"\\?|:"}]},"scriptencoding":{"patterns":[{"name":"meta.scriptencoding.vim9","match":"^\\s*\\b(scripte(?:ncoding)?)\\s+([a-zA-Z0-9_-]+)","captures":{"1":{"name":"keyword.control.scriptencoding.vim9"},"2":{"name":"string.unquoted.encoding.vim9"}}}]},"strings":{"patterns":[{"name":"string.quoted.single.vim9","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vim9","match":"''"}]},{"name":"string.quoted.double.vim9","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vim9","match":"\\\\[\\\\\"nrtb]"}]},{"name":"string.interpolated.vim9","begin":"\\$\"","end":"\"","patterns":[{"name":"variable.other.interpolated.vim9","match":"\\{[^}]+\\}"},{"name":"constant.character.escape.vim9","match":"\\\\[\\\\\"nrtb]"}]}]},"type-annotation":{"patterns":[{"name":"meta.type.annotation.vim9","match":":\\s*(number|string|bool|void|any|list\u003c[^\u003e]+\u003e|dict\u003c[^\u003e]+\u003e|func\\([^)]*\\)(:\\s*\\w+)?|blob|channel|job)","captures":{"1":{"name":"storage.type.vim9"}}}]},"variables":{"patterns":[{"name":"variable.language.vim9","match":"\\b(g:|b:|w:|t:|v:)[a-zA-Z_][a-zA-Z0-9_]*\\b"},{"name":"variable.other.vim9","match":"\\b[a-z_][a-zA-Z0-9_]*\\b"}]},"vim-expansions":{"patterns":[{"name":"constant.character.expansion.vim9","match":"\u003c(abuf|afile|amatch|sfile|slnum|cword|cWORD|cfile|cexpr|q-args|f-args|args|bang|line1|line2|range|count|reg|mods|client)\u003e"}]},"vim9script-declaration":{"name":"keyword.control.declaration.vim9script","match":"^\\s*\\b(vim9script)\\b"}}}
|
data/grammars/source.wdl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"wdl","scopeName":"source.wdl","patterns":[{"include":"#single-number-sign-comments"},{"include":"#double-number-sign-comments"},{"name":"entity.version.wdl","match":"(version)\\s+(.*)","captures":{"1":{"name":"keyword.other.version.wdl"},"2":{"name":"entity.version.number.wdl"}}},{"contentName":"entity.struct.wdl","begin":"(struct)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.struct.wdl"},"2":{"name":"variable.name.struct.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.struct-start.wdl"}}},{"contentName":"entity.enum.wdl","begin":"(enum)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.enum.wdl"},"2":{"name":"variable.name.enum.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.enum-start.wdl"}}},{"contentName":"entity.task.wdl","begin":"(task)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.task.wdl"},"2":{"name":"variable.name.task.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.task-start.wdl"}}},{"begin":"(workflow)\\s+([A-Za-z][A-Za-z0-9_]+)","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.workflow.wdl"},"2":{"name":"variable.name.workflow.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.workflow-start.wdl"}}},{"include":"#input-block"},{"include":"#command-block-curly"},{"include":"#command-block-heredoc"},{"include":"#output-block"},{"include":"#requirements-block"},{"include":"#hints-block"},{"include":"#runtime-block"},{"include":"#meta-block"},{"include":"#parameter_meta-block"},{"include":"#atom"}],"repository":{"atom":{"patterns":[{"include":"#double-number-sign-comments"},{"include":"#single-number-sign-comments"},{"include":"#numeric"},{"include":"#strings"},{"include":"#keywords"},{"include":"#identity"}]},"bash-arguments":{"name":"string.unquoted.argument.shell","match":"\\b[a-zA-Z0-9/._][a-zA-Z0-9/._-]*\\b"},"bash-arithmetic":{"name":"meta.expression.arithmetic.shell","begin":"(\\(\\()","end":"(\\)\\))","patterns":[{"include":"#bash-variables"},{"include":"#bash-arithmetic-operators"},{"include":"#bash-numeric"},{"include":"#bash-arithmetic-variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.evaluation.begin.shell"}},"endCaptures":{"1":{"name":"punctuation.definition.evaluation.end.shell"}}},"bash-arithmetic-operators":{"name":"keyword.operator.arithmetic.shell","match":"\\*\\*|==|!=|\u003c=|\u003e=|\u0026\u0026|\\|\\||\u003c\u003c|\u003e\u003e|[!~+\\-*/%\u003c\u003e\u0026|^=]"},"bash-arithmetic-variables":{"name":"variable.other.shell","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"bash-assignments":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(=)","captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"keyword.operator.assignment.shell"}}}]},"bash-commands":{"patterns":[{"name":"entity.name.function.shell"}]},"bash-comments":{"name":"comment.line.number-sign.shell","match":"#.*$"},"bash-double-quoted-strings":{"name":"string.quoted.double.shell","begin":"\"","end":"\"","patterns":[{"include":"#bash-variables"},{"name":"constant.character.escape.shell","match":"\\\\([\"$`\\\\\\r\\n])"}]},"bash-heredoc-generic":{"name":"string.unquoted.heredoc.shell","begin":"(\u003c\u003c-?)\\s*([a-zA-Z_][a-zA-Z0-9_]*)","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.shell"}}},"bash-heredoc-python":{"contentName":"source.python.embedded.shell","begin":"(\u003c\u003c-?)\\s*([pP][yY][tT][hH][oO][nN])","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"},{"include":"source.python"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.python.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.python.shell"}}},"bash-heredocs":{"patterns":[{"include":"#bash-heredoc-python"},{"include":"#bash-heredoc-generic"}]},"bash-in-wdl":{"patterns":[{"include":"#bash-heredocs"},{"include":"#bash-comments"},{"include":"#bash-strings"},{"include":"#bash-arithmetic"},{"include":"#bash-variables"},{"include":"#bash-assignments"},{"include":"#bash-options"},{"include":"#bash-keywords"},{"include":"#bash-commands"},{"include":"#bash-arguments"}]},"bash-keywords":{"patterns":[{"name":"keyword.control.shell","match":"\\b(if|then|else|fi|for|in|while|do|done|case|esac|until|select)\\b"},{"name":"support.function.builtin.shell","match":"\\b(echo|set|unset|export|readonly|shift|source|local|declare|getopts|read|let)\\b"}]},"bash-numeric":{"name":"constant.numeric.shell","match":"\\b(0[xX][0-9a-fA-F]+|\\d+)\\b"},"bash-options":{"patterns":[{"name":"constant.other.option.shell","match":"(?\u003c=^|\\s)(--[a-zA-Z0-9][a-zA-Z0-9-]*|-\\w+)\\b"}]},"bash-single-quoted-strings":{"name":"string.quoted.single.shell","begin":"'","end":"'"},"bash-strings":{"patterns":[{"include":"#bash-single-quoted-strings"},{"include":"#bash-double-quoted-strings"}]},"bash-variables":{"patterns":[{"name":"variable.other.shell","match":"(\\$)[a-zA-Z_][a-zA-Z0-9_]*","captures":{"1":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.other.shell","begin":"\\$\\{","end":"\\}","beginCaptures":{"0":{"name":"punctuation.definition.variable.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.parameter.special.shell","match":"\\$([0-9@*#?$$!_])"}]},"command-block-curly":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+({)","end":"^(?:\\s*)(})(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.bracket.curly.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"command-block-heredoc":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+(\u003c\u003c\u003c)","end":"^(?:\\s*)(\u003e\u003e\u003e)(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.heredoc.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"double-number-sign-comments":{"name":"comment.line.double-number-sign.documentation","begin":"(?:\\s*)(?:##) ?","while":"(?:^|\\G)\\s*(?:##) ?","patterns":[{"include":"text.md"}]},"double-quoted-strings":{"name":"string.quoted.double.wdl","begin":"\"","end":"\"","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"escaped-character":{"name":"constant.character.escape.wdl","match":"(\\\\\\\\)|(\\\\n)|(\\\\t)|(\\\\')|(\\\\\")|(\\\\~)|(\\\\\\$)|(\\\\[0-7]{3})|(\\\\x[0-9a-fA-F]{2})|(\\\\u[0-9a-fA-F]{4})|(\\\\U[0-9a-fA-F]{8})","captures":{"1":{"name":"constant.character.escape.backslash.wdl"},"10":{"name":"constant.character.escape.four-byte-unicode.wdl"},"11":{"name":"constant.character.escape.eight-byte-unicode.wdl"},"2":{"name":"constant.character.escape.newline.wdl"},"3":{"name":"constant.character.escape.tab.wdl"},"4":{"name":"constant.character.escape.single-quote.wdl"},"5":{"name":"constant.character.escape.double-quote.wdl"},"6":{"name":"constant.character.escape.tilde.wdl"},"7":{"name":"constant.character.escape.dollar-sign.wdl"},"8":{"name":"constant.character.escape.octal.wdl"},"9":{"name":"constant.character.escape.hex.wdl"}}},"hints-block":{"name":"entity.hints-block.wdl","begin":"(?:\\s*)(hints)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.hints.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.hints-start.wdl"}}},"identity":{"name":"variable.other.wdl","match":"\\b[A-Za-z][A-Za-z0-9_]*\\b"},"input-block":{"name":"entity.input-block.wdl","begin":"(?:\\s*)(input)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.input.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.input-start.wdl"}}},"keywords":{"patterns":[{"name":"keyword.other.wdl","match":"\\b(import|version)\\b"},{"name":"storage.modifier.wdl","match":"\\b(alias|as|in|scatter)\\b"},{"name":"keyword.control.wdl","match":"\\b(call|else|if|then)\\b"},{"name":"storage.type","match":"\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime)\\b\\s*(?!:)"},{"name":"constant.language.wdl","match":"\\b(true|false|left|right|null)\\b"},{"name":"keyword.wdl","match":"\\b(after|alias|as|call|command|else|enum|env|false|hints|if|in|import|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|then|true|version)\\b\\s*(?!:)"},{"name":"entity.name.type.wdl","match":"\\b(Array|Boolean|Directory|File|Float|Int|Map|None|Object|Pair|String)\\b"}]},"meta-block":{"name":"entity.meta-block.wdl","begin":"(?:\\s*)(meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.meta-start.wdl"}}},"multi-line-strings":{"name":"string.unquoted.multi-line.wdl","begin":"\u003c\u003c\u003c","end":"\u003e\u003e\u003e","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"numeric":{"name":"constant.numeric.wdl","match":"-?(?:[0-9]+\\.[0-9]*(e|E)?|[0-9]+(e|E)?|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]|0)"},"output-block":{"name":"entity.output-block.wdl","begin":"(?:\\s*)(output)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.output.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.output-start.wdl"}}},"parameter_meta-block":{"name":"entity.parameter_meta-block.wdl","begin":"(?:\\s*)(parameter_meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.parameter_meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.parameter_meta-start.wdl"}}},"placeholder":{"name":"meta.other.placeholder.wdl","begin":"[$~]{","end":"}","patterns":[{"include":"source.wdl"}]},"requirements-block":{"name":"entity.requirements-block.wdl","begin":"(?:\\s*)(requirements)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.requirements.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.requirements-start.wdl"}}},"runtime-block":{"name":"entity.runtime-block.wdl","begin":"(?:\\s*)(runtime)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.runtime.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.runtime-start.wdl"}}},"single-number-sign-comments":{"name":"comment.line.number-sign.documentation","begin":"(?:\\s*)(?:#(?!#))","while":"(?:^|\\G)(?:\\s*)(?:#(?!#))"},"single-quoted-strings":{"name":"string.quoted.single.wdl","begin":"'","end":"'","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"strings":{"patterns":[{"include":"#single-quoted-strings"},{"include":"#double-quoted-strings"},{"include":"#multi-line-strings"}]}}}
|
|
1
|
+
{"name":"wdl","scopeName":"source.wdl","patterns":[{"include":"#single-number-sign-comments"},{"include":"#double-number-sign-comments"},{"name":"entity.version.wdl","match":"(version)\\s+(.*)","captures":{"1":{"name":"keyword.other.version.wdl"},"2":{"name":"entity.version.number.wdl"}}},{"match":"(?\u003c!\\.)\\b(import)\\b(?=\\s*(?:\"(?:[^\"\\\\]|\\\\.)*\"|'(?:[^'\\\\]|\\\\.)*'))","captures":{"1":{"name":"keyword.other.import.wdl"}}},{"contentName":"entity.struct.wdl","begin":"(struct)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.struct.wdl"},"2":{"name":"variable.name.struct.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.struct-start.wdl"}}},{"contentName":"entity.enum.wdl","begin":"(enum)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.enum.wdl"},"2":{"name":"variable.name.enum.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.enum-start.wdl"}}},{"contentName":"entity.task.wdl","begin":"(task)\\s+([A-Za-z][A-Za-z0-9_]+)?","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.task.wdl"},"2":{"name":"variable.name.task.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.task-start.wdl"}}},{"begin":"(workflow)\\s+([A-Za-z][A-Za-z0-9_]+)","end":"({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"storage.type.workflow.wdl"},"2":{"name":"variable.name.workflow.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.workflow-start.wdl"}}},{"include":"#input-block"},{"include":"#command-block-curly"},{"include":"#command-block-heredoc"},{"include":"#output-block"},{"include":"#requirements-block"},{"include":"#hints-block"},{"include":"#runtime-block"},{"include":"#meta-block"},{"include":"#parameter_meta-block"},{"include":"#atom"}],"repository":{"atom":{"patterns":[{"include":"#double-number-sign-comments"},{"include":"#single-number-sign-comments"},{"include":"#numeric"},{"include":"#strings"},{"include":"#keywords"},{"include":"#identity"}]},"bash-arguments":{"name":"string.unquoted.argument.shell","match":"\\b[a-zA-Z0-9/._][a-zA-Z0-9/._-]*\\b"},"bash-arithmetic":{"name":"meta.expression.arithmetic.shell","begin":"(\\(\\()","end":"(\\)\\))","patterns":[{"include":"#bash-variables"},{"include":"#bash-arithmetic-operators"},{"include":"#bash-numeric"},{"include":"#bash-arithmetic-variables"}],"beginCaptures":{"1":{"name":"punctuation.definition.evaluation.begin.shell"}},"endCaptures":{"1":{"name":"punctuation.definition.evaluation.end.shell"}}},"bash-arithmetic-operators":{"name":"keyword.operator.arithmetic.shell","match":"\\*\\*|==|!=|\u003c=|\u003e=|\u0026\u0026|\\|\\||\u003c\u003c|\u003e\u003e|[!~+\\-*/%\u003c\u003e\u0026|^=]"},"bash-arithmetic-variables":{"name":"variable.other.shell","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"bash-assignments":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(=)","captures":{"1":{"name":"variable.other.assignment.shell"},"2":{"name":"keyword.operator.assignment.shell"}}}]},"bash-commands":{"patterns":[{"name":"entity.name.function.shell"}]},"bash-comments":{"name":"comment.line.number-sign.shell","match":"#.*$"},"bash-double-quoted-strings":{"name":"string.quoted.double.shell","begin":"\"","end":"\"","patterns":[{"include":"#bash-variables"},{"name":"constant.character.escape.shell","match":"\\\\([\"$`\\\\\\r\\n])"}]},"bash-heredoc-generic":{"name":"string.unquoted.heredoc.shell","begin":"(\u003c\u003c-?)\\s*([a-zA-Z_][a-zA-Z0-9_]*)","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.shell"}}},"bash-heredoc-python":{"contentName":"source.python.embedded.shell","begin":"(\u003c\u003c-?)\\s*([pP][yY][tT][hH][oO][nN])","end":"^\\s*(\\2)\\s*$","patterns":[{"include":"#placeholder"},{"include":"source.python"}],"beginCaptures":{"1":{"name":"keyword.operator.heredoc.shell"},"2":{"name":"entity.name.tag.heredoc.python.shell"}},"endCaptures":{"1":{"name":"entity.name.tag.heredoc.python.shell"}}},"bash-heredocs":{"patterns":[{"include":"#bash-heredoc-python"},{"include":"#bash-heredoc-generic"}]},"bash-in-wdl":{"patterns":[{"include":"#bash-heredocs"},{"include":"#bash-comments"},{"include":"#bash-strings"},{"include":"#bash-arithmetic"},{"include":"#bash-variables"},{"include":"#bash-assignments"},{"include":"#bash-options"},{"include":"#bash-keywords"},{"include":"#bash-commands"},{"include":"#bash-arguments"}]},"bash-keywords":{"patterns":[{"name":"keyword.control.shell","match":"\\b(if|then|else|fi|for|in|while|do|done|case|esac|until|select)\\b"},{"name":"support.function.builtin.shell","match":"\\b(echo|set|unset|export|readonly|shift|source|local|declare|getopts|read|let)\\b"}]},"bash-numeric":{"name":"constant.numeric.shell","match":"\\b(0[xX][0-9a-fA-F]+|\\d+)\\b"},"bash-options":{"patterns":[{"name":"constant.other.option.shell","match":"(?\u003c=^|\\s)(--[a-zA-Z0-9][a-zA-Z0-9-]*|-\\w+)\\b"}]},"bash-single-quoted-strings":{"name":"string.quoted.single.shell","begin":"'","end":"'"},"bash-strings":{"patterns":[{"include":"#bash-single-quoted-strings"},{"include":"#bash-double-quoted-strings"}]},"bash-variables":{"patterns":[{"name":"variable.other.shell","match":"(\\$)[a-zA-Z_][a-zA-Z0-9_]*","captures":{"1":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.other.shell","begin":"\\$\\{","end":"\\}","beginCaptures":{"0":{"name":"punctuation.definition.variable.shell"}},"endCaptures":{"0":{"name":"punctuation.definition.variable.shell"}}},{"name":"variable.parameter.special.shell","match":"\\$([0-9@*#?$$!_])"}]},"command-block-curly":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+({)","end":"^(?:\\s*)(})(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.bracket.curly.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"command-block-heredoc":{"contentName":"source.shell.embedded.wdl","begin":"(?:\\s*)(command)\\s+(\u003c\u003c\u003c)","end":"^(?:\\s*)(\u003e\u003e\u003e)(?:\\s*)$","patterns":[{"include":"#placeholder"},{"include":"#bash-in-wdl"}],"beginCaptures":{"1":{"name":"storage.type.command.wdl"},"2":{"name":"punctuation.heredoc.command-start.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.command-end.wdl"}}},"double-number-sign-comments":{"name":"comment.line.double-number-sign.documentation","begin":"(?:\\s*)(?:##) ?","while":"(?:^|\\G)\\s*(?:##) ?","patterns":[{"include":"text.md"}]},"double-quoted-strings":{"name":"string.quoted.double.wdl","begin":"\"","end":"\"","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"escaped-character":{"name":"constant.character.escape.wdl","match":"(\\\\\\\\)|(\\\\n)|(\\\\t)|(\\\\')|(\\\\\")|(\\\\~)|(\\\\\\$)|(\\\\[0-7]{3})|(\\\\x[0-9a-fA-F]{2})|(\\\\u[0-9a-fA-F]{4})|(\\\\U[0-9a-fA-F]{8})","captures":{"1":{"name":"constant.character.escape.backslash.wdl"},"10":{"name":"constant.character.escape.four-byte-unicode.wdl"},"11":{"name":"constant.character.escape.eight-byte-unicode.wdl"},"2":{"name":"constant.character.escape.newline.wdl"},"3":{"name":"constant.character.escape.tab.wdl"},"4":{"name":"constant.character.escape.single-quote.wdl"},"5":{"name":"constant.character.escape.double-quote.wdl"},"6":{"name":"constant.character.escape.tilde.wdl"},"7":{"name":"constant.character.escape.dollar-sign.wdl"},"8":{"name":"constant.character.escape.octal.wdl"},"9":{"name":"constant.character.escape.hex.wdl"}}},"hints-block":{"name":"entity.hints-block.wdl","begin":"(?:\\s*)(hints)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.hints.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.hints-start.wdl"}}},"identity":{"name":"variable.other.wdl","match":"\\b[A-Za-z][A-Za-z0-9_]*\\b"},"input-block":{"name":"entity.input-block.wdl","begin":"(?:\\s*)(input)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.input.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.input-start.wdl"}}},"keywords":{"patterns":[{"name":"keyword.other.wdl","match":"\\b(version)\\b"},{"name":"storage.modifier.wdl","match":"\\b(alias|as|in|scatter)\\b"},{"name":"keyword.control.wdl","match":"\\b(call|else|if|then)\\b"},{"name":"storage.type","match":"\\b(command|hints|inputs|meta|object|outputs|parameter_meta|requirements|runtime)\\b\\s*(?!:)"},{"name":"constant.language.wdl","match":"\\b(true|false|left|right|null)\\b"},{"name":"keyword.wdl","match":"\\b(after|alias|as|call|command|else|enum|env|false|hints|if|in|input|meta|null|object|output|parameter_meta|requirements|runtime|scatter|then|true|version)\\b\\s*(?!:)"},{"name":"entity.name.type.wdl","match":"\\b(Array|Boolean|Directory|File|Float|Int|Map|None|Object|Pair|String)\\b"}]},"meta-block":{"name":"entity.meta-block.wdl","begin":"(?:\\s*)(meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.meta-start.wdl"}}},"multi-line-strings":{"name":"string.unquoted.multi-line.wdl","begin":"\u003c\u003c\u003c","end":"\u003e\u003e\u003e","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"numeric":{"name":"constant.numeric.wdl","match":"-?(?:[0-9]+\\.[0-9]*(e|E)?|[0-9]+(e|E)?|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]|0)"},"output-block":{"name":"entity.output-block.wdl","begin":"(?:\\s*)(output)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.output.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.output-start.wdl"}}},"parameter_meta-block":{"name":"entity.parameter_meta-block.wdl","begin":"(?:\\s*)(parameter_meta)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.parameter_meta.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.parameter_meta-start.wdl"}}},"placeholder":{"name":"meta.other.placeholder.wdl","begin":"[$~]{","end":"}","patterns":[{"include":"source.wdl"}]},"requirements-block":{"name":"entity.requirements-block.wdl","begin":"(?:\\s*)(requirements)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.requirements.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.requirements-start.wdl"}}},"runtime-block":{"name":"entity.runtime-block.wdl","begin":"(?:\\s*)(runtime)\\b","end":"(?:\\s*)({)","patterns":[{"include":"#atom"}],"beginCaptures":{"1":{"name":"keyword.other.runtime.wdl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.runtime-start.wdl"}}},"single-number-sign-comments":{"name":"comment.line.number-sign.documentation","begin":"(?:\\s*)(?:#(?!#))","while":"(?:^|\\G)(?:\\s*)(?:#(?!#))"},"single-quoted-strings":{"name":"string.quoted.single.wdl","begin":"'","end":"'","patterns":[{"include":"#placeholder"},{"include":"#escaped-character"}]},"strings":{"patterns":[{"include":"#single-quoted-strings"},{"include":"#double-quoted-strings"},{"include":"#multi-line-strings"}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WebAssembly","scopeName":"source.webassembly","patterns":[{"name":"comment.line.hashbang.webassembly","begin":"\\A(#!)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.hashbang.webassembly"}}},{"include":"#main"}],"repository":{"comment-block":{"name":"comment.block.semicolon.webassembly","begin":"\\(;","end":";\\)","patterns":[{"include":"#comment-block"}],"beginCaptures":{"0":{"name":"punctuation.section.comment.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.comment.end.webassembly"}}},"comment-line":{"name":"comment.line.semicolon.webassembly","begin":";;","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.webassembly"}}},"expression":{"patterns":[{"name":"meta.expression.$2.webassembly","begin":"(\\()(\\w+)(?=[\\s()]|$|;;)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.section.expression.begin.webassembly"},"2":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}},{"name":"meta.expression.webassembly","begin":"\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}}]},"instructions":{"patterns":[{"name":"keyword.control.instruction.$1.webassembly","match":"(?x) \\b\n( block\n| br(?:_if|_table|_on_(?:cast|data|func|i31|null))?\n| call(?:_indirect|_ref)?\n| catch_all\n| catch\n| delegate\n| else\n| end\n| if\n| loop\n| nop\n| rethrow\n| return(?:_call(?:_indirect|_ref)?)?\n| then\n| throw\n| try\n| unreachable\n| unwind\n) (?=[\\s()]|$|;;)"},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(\n\t(f32|f64) \\.\n\t( (?\u003c=f32.) (demote_f64|reinterpret_i32)\n\t| (?\u003c=f64.) (promote_f32|reinterpret_i64)\n\t| abs\n\t| add\n\t| atomic (?:\\.\\w+)++\n\t| ceil\n\t| const\n\t| convert_i(32|64)_[su]\n\t| copysign\n\t| div\n\t| eq\n\t| floor\n\t| [gl][et]\n\t| load\n\t| max\n\t| min\n\t| mul\n\t| nearest\n\t| neg?\n\t| ne\n\t| sqrt\n\t| store\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\t(i32|i64) \\.\n\t( (?\u003c=i32.) (reinterpret_f32|wrap_i64)\n\t| (?\u003c=i64.) (extend_i32_[su]|extend32_s|load32_[su]|reinterpret_f64|store32)\n\t| add\n\t| and\n\t| atomic (?:\\.\\w+)++\n\t| clz\n\t| const\n\t| ctz\n\t| div_[su]\n\t| eqz?\n\t| eq\n\t| extend(8|16)_s\n\t| [gl][et]_[su]\n\t| load(8|16)_[su]\n\t| load\n\t| mul\n\t| ne\n\t| x?or\n\t| popcnt\n\t| rem_[su]\n\t| rot[lr]\n\t| shl\n\t| shr_[su]\n\t| store(8|16)?\n\t| sub\n\t| trunc_(sat_)?f(32|64)_[su]\n\t)\n\t|\n\t\n\tv128 \\.\n\t( andnot\n\t| and\n\t| any_true\n\t| atomic (?:\\.\\w+)++\n\t| bitselect\n\t| const\n\t| load((8|16)_lane|(32|64)_(lane|zero)|(8|16|32|64)_splat|(8x8|16x4|32x2)_[su])?\n\t| not\n\t| x?or\n\t| store((8|16|32|64)_lane)?\n\t)\n\t|\n\n\t(f32x4|f64x2) \\.\n\t( (?\u003c=f32x4.) (convert_i32x4_[su]|demote_f64x2_zero)\n\t| (?\u003c=f64x2.) (convert_low_i32x4_[su]|promote_low_f32x4)\n\t| abs\n\t| add\n\t| ceil\n\t| div\n\t| eq\n\t| (extract|replace)_lane\n\t| floor\n\t| [gl][et]\n\t| p?max\n\t| p?min\n\t| mul\n\t| nearest\n\t| neg?\n\t| splat\n\t| sqrt\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\ti8x16 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| narrow_i16x8_[su]\n\t| neg?\n\t| ne\n\t| popcnt\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| shuffle\n\t| splat\n\t| sub\n\t| swizzle\n\t)\n\t|\n\t\n\ti16x8 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i8x16_[su]\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load8x8_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| narrow_i32x4_[su]\n\t| neg?\n\t| ne\n\t| q15mulr_sat_s\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n\t|\n\n\ti32x4 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| dot_i16x8_s\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i16x8_[su]\n\t| extract_lane\n\t| [gl][et]_[su]\n\t| load16x4_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| neg?\n\t| ne\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t| trunc_sat_f32x4_[su]\n\t| trunc_sat_f64x2_[su]_zero\n\t)\n\t|\n\n\ti64x2 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| eq\n\t| ext(end|mul)_(high|low)_i32x4_[su]\n\t| extract_lane\n\t| [gl][et]_s\n\t| load32x2_[su]\n\t| load_splat\n\t| mul\n\t| neg?\n\t| ne\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}},{"match":"\\b([if](?:32|64)(\\.)\\w+)(/)([if](?:32|64))","captures":{"1":{"name":"entity.name.function.instruction.$1.webassembly"},"2":{"name":"punctuation.separator.method.period.webassembly"},"3":{"name":"punctuation.separator.method.slash.webassembly"},"4":{"patterns":[{"include":"#type"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n( (array|struct) (\\. (len|new(_default)?_with_rtt|get_[su]|[gs]et))?\n| (current|grow)_memory\n| data\\.drop\n| drop\n| elem\\.drop\n| field\n| i31 \\. (new|get_[su])\n| ([gs]et|tee)_(local|global)\n| global\\.[gs]et\n| local\\.([gs]et|tee)\n| memory\\.(atomic\\.(notify|wait32|wait64)|copy|fill|grow|init|size)\n| ref(\\.([ai]s_(data|func|i31|non_null)|cast|eq|func|is_null|null|test))?\n| rtt(\\.(canon|sub))?\n| select\n| table\\.(copy|fill|get|grow|init|set|size)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}},{"name":"storage.type.$1.webassembly","match":"(?x) \\b\n( anyfunc\n| data\n| declare\n| element\n| elem\n| export\n| extern\n| func\n| global\n| import\n| item\n| local\n| memory\n| module\n| mut\n| offset\n| param\n| result\n| start\n| table\n| type\n) (?=[\\s()]|$|;;)"},{"name":"support.function.scripting.webassembly","match":"(?x) \\b\n( assert_exhaustion\n| assert_invalid\n| assert_malformed\n| assert_return (?:_(?:arithmetic|canonical)_nan)?\n| assert_trap\n| assert_unlinkable\n| binary\n| input\n| invoke\n| get\n| output\n| quote\n| ref\\.extern\n| ref\\.host\n| register\n| script\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"name":"punctuation.separator.method.period.webassembly","match":"\\."}]}}}]},"main":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#expression"},{"include":"#instructions"},{"include":"#type"},{"include":"#number"},{"include":"#name"},{"include":"#string"},{"include":"#optional-immediate"}]},"name":{"name":"variable.other.name.webassembly","match":"(\\$)[-A-Za-z0-9_.+*/\\\\^~=\u003c\u003e!?@#$%\u0026|:'`]+","captures":{"1":{"name":"punctuation.definition.variable.webassembly"}}},"number":{"patterns":[{"name":"constant.language.nan.with-payload.webassembly","match":"(?\u003c!\\w)[-+]?nan(:)(0x(?!_)(?:_?[A-Fa-f0-9])+)","captures":{"1":{"name":"punctuation.separator.payload.colon.webassembly"},"2":{"name":"constant.numeric.int.hex.payload.webassembly"}}},{"name":"constant.language.$1.$2.webassembly","match":"(?\u003c!\\w)[-+]?(inf|nan)(?:(?\u003c=nan):(arithmetic|canonical))?(?!\\w)"},{"name":"constant.numeric.float.hex.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? 0x (?!_)(?:_? [A-Fa-f0-9])++\n(?: \\. (?!_)(?:_? [A-Fa-f0-9])*+ )?\n(?: [pP][-+]? (?!_)(?:_? [0-9])++ )?"},{"name":"constant.numeric.float.decimal.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? (?!_)(?:_? \\d)++\n(?: \\. (?!_)(?:_? \\d)*+ )?\n(?: [eE][-+]? (?!_)(?:_? \\d)++ )?"},{"name":"constant.numeric.int.hex.webassembly","match":"(?\u003c!\\w)[-+]?0x(?!_)(?:_?[A-Fa-f0-9])++"},{"name":"constant.numeric.int.decimal.webassembly","match":"(?\u003c!\\w)[-+]?(?!_)(?:_?\\d)++"}]},"optional-immediate":{"match":"(?\u003c!\\w)(align|offset)(=)(?=[-+]?(?:\\d|0x[\\dA-Fa-f]))","captures":{"1":{"name":"variable.parameter.$1.webassembly"},"2":{"name":"keyword.operator.assignment.webassembly"}}},"string":{"name":"string.quoted.double.webassembly","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.newline.webassembly","match":"\\\\n"},{"name":"constant.character.escape.tab.webassembly","match":"\\\\t"},{"name":"constant.character.escape.backslash.webassembly","match":"\\\\{2}"},{"name":"constant.character.escape.quote.single.webassembly","match":"\\\\'"},{"name":"constant.character.escape.quote.double.webassembly","match":"\\\\\""},{"name":"constant.character.escape.hex.unicode.webassembly","match":"\\\\[0-9A-Fa-f]{2}|\\\\u({)[A-Fa-f0-9]+(})","captures":{"1":{"name":"punctuation.definition.unicode-escape.begin.bracket.curly.webassembly"},"2":{"name":"punctuation.definition.unicode-escape.end.bracket.curly.webassembly"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.webassembly"}}},"type":{"patterns":[{"name":"storage.type.number.$1.webassembly","match":"\\b([if](?:32|64)|v128|i8|i16)(?=[\\s()]|$|;;)"},{"name":"storage.type.simd.$1.webassembly","match":"\\b(f32x4|f64x2|i8x16|i16x8|i32x4|i64x2)(?=[\\s()]|$|;;)"},{"name":"storage.type.reference.$1.webassembly","match":"\\b((?:any|data|eq|extern|func|i31)ref)(?=[\\s()]|$|;;)"}]}}}
|
|
1
|
+
{"name":"WebAssembly","scopeName":"source.webassembly","patterns":[{"name":"comment.line.hashbang.webassembly","begin":"\\A(#!)","end":"$","beginCaptures":{"1":{"name":"punctuation.definition.comment.hashbang.webassembly"}}},{"include":"#main"}],"repository":{"comment-block":{"name":"comment.block.semicolon.webassembly","begin":"\\(;","end":";\\)","patterns":[{"include":"#comment-block"}],"beginCaptures":{"0":{"name":"punctuation.section.comment.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.comment.end.webassembly"}}},"comment-line":{"name":"comment.line.semicolon.webassembly","begin":";;","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.webassembly"}}},"dot":{"name":"punctuation.separator.method.period.webassembly","match":"\\."},"expression":{"patterns":[{"name":"meta.expression.$2.webassembly","begin":"(\\()(\\w+)(?=[\\s()]|$|;;)","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"punctuation.section.expression.begin.webassembly"},"2":{"patterns":[{"include":"#main"}]}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}},{"name":"meta.expression.webassembly","begin":"\\(","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.webassembly"}}}]},"instructions":{"patterns":[{"name":"keyword.control.instruction.$1.webassembly","match":"(?x) \\b\n( block\n| br(?:_if|_table|_on_(?:cast(?:_fail)?|data|func|i31|(?:non_)?null))?\n| call(?:_indirect|_ref)?\n| catch_all\n| catch\n| delegate\n| else\n| end\n| if\n| loop\n| nop\n| rethrow\n| return(?:_call(?:_indirect|_ref)?)?\n| then\n| throw(?:_ref)?\n| try(?:_table)?\n| unreachable\n| unwind\n) (?=[\\s()]|$|;;)"},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(\n\t(f32|f64) \\.\n\t( (?\u003c=f32.) (demote_f64|reinterpret_i32)\n\t| (?\u003c=f64.) (promote_f32|reinterpret_i64)\n\t| abs\n\t| add\n\t| atomic (?:\\.\\w+)++\n\t| ceil\n\t| const\n\t| convert_i(32|64)_[su]\n\t| copysign\n\t| div\n\t| eq\n\t| floor\n\t| [gl][et]\n\t| load\n\t| max\n\t| min\n\t| mul\n\t| nearest\n\t| neg?\n\t| ne\n\t| sqrt\n\t| store\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\t(i32|i64) \\.\n\t( (?\u003c=i32.) (reinterpret_f32|wrap_i64)\n\t| (?\u003c=i64.) (extend_i32_[su]|extend32_s|load32_[su]|reinterpret_f64|store32|add128|sub128|mul_wide_[su])\n\t| add\n\t| and\n\t| atomic (?:\\.\\w+)++\n\t| clz\n\t| const\n\t| ctz\n\t| div_[su]\n\t| eqz?\n\t| eq\n\t| extend(8|16)_s\n\t| [gl][et]_[su]\n\t| load(8|16)_[su]\n\t| load\n\t| mul\n\t| ne\n\t| x?or\n\t| popcnt\n\t| rem_[su]\n\t| rot[lr]\n\t| shl\n\t| shr_[su]\n\t| store(8|16)?\n\t| sub\n\t| trunc_(sat_)?f(32|64)_[su]\n\t)\n\t|\n\t\n\tv128 \\.\n\t( andnot\n\t| and\n\t| any_true\n\t| atomic (?:\\.\\w+)++\n\t| bitselect\n\t| const\n\t| load((8|16)_lane|(32|64)_(lane|zero)|(8|16|32|64)_splat|(8x8|16x4|32x2)_[su])?\n\t| not\n\t| x?or\n\t| store((8|16|32|64)_lane)?\n\t)\n\t|\n\n\t(f32x4|f64x2) \\.\n\t( (?\u003c=f32x4.) (convert_i32x4_[su]|demote_f64x2_zero)\n\t| (?\u003c=f64x2.) (convert_low_i32x4_[su]|promote_low_f32x4)\n\t| abs\n\t| add\n\t| ceil\n\t| div\n\t| eq\n\t| (extract|replace)_lane\n\t| floor\n\t| [gl][et]\n\t| p?max\n\t| p?min\n\t| mul\n\t| nearest\n\t| neg?\n\t| relaxed_(madd|max|min|nmadd)\n\t| splat\n\t| sqrt\n\t| sub\n\t| trunc\n\t)\n\t|\n\t\n\ti8x16 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| narrow_i16x8_[su]\n\t| neg?\n\t| ne\n\t| popcnt\n\t| relaxed_(laneselect|swizzle)\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| shuffle\n\t| splat\n\t| sub\n\t| swizzle\n\t)\n\t|\n\t\n\ti16x8 \\.\n\t( abs\n\t| (?:add|sub)_sat_[su]\n\t| add\n\t| all_true\n\t| avgr_u\n\t| bitmask\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i8x16_[su]\n\t| extract_lane_[su]\n\t| [gl][et]_[su]\n\t| load8x8_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| narrow_i32x4_[su]\n\t| neg?\n\t| ne\n\t| q15mulr_sat_s\n\t| relaxed_(dot_i8x16_i7x16_s|laneselect|q15mulr_s)\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n\t|\n\n\ti32x4 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| dot_i16x8_s\n\t| eq\n\t| ext(add_pairwise|(end|mul)_(high|low))_i16x8_[su]\n\t| extract_lane\n\t| [gl][et]_[su]\n\t| load16x4_[su]\n\t| load_splat\n\t| max_[su]\n\t| min_[su]\n\t| mul\n\t| neg?\n\t| ne\n\t| relaxed_(dot_i8x16_i7x16_add_s|laneselect|trunc_(f32x4|f64x2)_[su])\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t| trunc_sat_f32x4_[su]\n\t| trunc_sat_f64x2_[su]_zero\n\t)\n\t|\n\n\ti64x2 \\.\n\t( abs\n\t| add\n\t| all_true\n\t| bitmask\n\t| eq\n\t| ext(end|mul)_(high|low)_i32x4_[su]\n\t| extract_lane\n\t| [gl][et]_s\n\t| load32x2_[su]\n\t| load_splat\n\t| mul\n\t| neg?\n\t| ne\n\t| relaxed_laneselect\n\t| replace_lane\n\t| shl\n\t| shr_[su]\n\t| splat\n\t| sub\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"match":"\\b([if](?:32|64)(\\.)\\w+)(/)([if](?:32|64))","captures":{"1":{"name":"entity.name.function.instruction.$1.webassembly"},"2":{"patterns":[{"include":"#dot"}]},"3":{"name":"punctuation.separator.method.slash.webassembly"},"4":{"patterns":[{"include":"#type"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n(?:array|struct)\n(?:\n\t(\\.)\n\t( len\n\t| new\n\t\t( _data\n\t\t| _default (?:_with_rtt)?\n\t\t| _elem\n\t\t| _fixed\n\t\t| _with_rtt\n\t\t)?\n\t| get_[su]\n\t| [gs]et\n\t| copy\n\t| fill\n\t| (?\u003c=array\\.) init_(data|elem)\n\t)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"name":"entity.name.function.instruction.$1.webassembly","match":"(?x) \\b\n( any\\.convert_extern\n| (current|grow)_memory\n| data\\.drop\n| drop\n| elem\\.drop\n| extern\\.convert_any\n| field\n| i31 \\. (new|get_[su])\n| ([gs]et|tee)_(local|global)\n| global\\.[gs]et\n| local\\.([gs]et|tee)\n| memory\\.(atomic\\.(notify|wait32|wait64)|copy|fill|grow|init|size)\n| ref(\\.([ai]s_(data|func|i31|non_null)|cast|eq|func|i31|is_null|null|test))\n| rtt(\\.(canon|sub))?\n| select\n| table\\.(copy|fill|get|grow|init|set|size)\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}},{"name":"storage.type.$1.webassembly","match":"(?x) \\b\n( anyfunc\n| data\n| declare\n| element\n| elem\n| export\n| extern\n| func\n| global\n| import\n| item\n| local\n| mem\n| memory\n| module\n| mut\n| offset\n| param\n| result\n| start\n| table\n| tag\n| type\n) (?=[\\s()]|$|;;)"},{"name":"support.function.scripting.webassembly","match":"(?x) \\b\n( assert_exhaustion\n| assert_invalid\n| assert_malformed\n| assert_return (?:_(?:arithmetic|canonical)_nan)?\n| assert_trap\n| assert_unlinkable\n| binary\n| input\n| invoke\n| get\n| output\n| quote\n| ref\\.extern\n| ref\\.host\n| register\n| script\n) (?=[\\s()]|$|;;)","captures":{"1":{"patterns":[{"include":"#dot"}]}}}]},"main":{"patterns":[{"include":"#comment-line"},{"include":"#comment-block"},{"include":"#expression"},{"include":"#instructions"},{"include":"#type"},{"include":"#number"},{"include":"#name"},{"include":"#string"},{"include":"#optional-immediate"}]},"name":{"name":"variable.other.name.webassembly","match":"(\\$)[-A-Za-z0-9_.+*/\\\\^~=\u003c\u003e!?@#$%\u0026|:'`]+","captures":{"1":{"name":"punctuation.definition.variable.webassembly"}}},"number":{"patterns":[{"name":"constant.language.nan.with-payload.webassembly","match":"(?\u003c!\\w)[-+]?nan(:)(0x(?!_)(?:_?[A-Fa-f0-9])+)","captures":{"1":{"name":"punctuation.separator.payload.colon.webassembly"},"2":{"name":"constant.numeric.int.hex.payload.webassembly"}}},{"name":"constant.language.$1.$2.webassembly","match":"(?\u003c!\\w)[-+]?(inf|nan)(?:(?\u003c=nan):(arithmetic|canonical))?(?!\\w)"},{"name":"constant.numeric.float.hex.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? 0x (?!_)(?:_? [A-Fa-f0-9])++\n(?: \\. (?!_)(?:_? [A-Fa-f0-9])*+ )?\n(?: [pP][-+]? (?!_)(?:_? [0-9])++ )?"},{"name":"constant.numeric.float.decimal.webassembly","match":"(?x) (?\u003c!\\w)\n[-+]? (?!_)(?:_? \\d)++\n(?: \\. (?!_)(?:_? \\d)*+ )?\n(?: [eE][-+]? (?!_)(?:_? \\d)++ )?"},{"name":"constant.numeric.int.hex.webassembly","match":"(?\u003c!\\w)[-+]?0x(?!_)(?:_?[A-Fa-f0-9])++"},{"name":"constant.numeric.int.decimal.webassembly","match":"(?\u003c!\\w)[-+]?(?!_)(?:_?\\d)++"}]},"optional-immediate":{"match":"(?\u003c!\\w)(align|offset)(=)(?=[-+]?(?:\\d|0x[\\dA-Fa-f]))","captures":{"1":{"name":"variable.parameter.$1.webassembly"},"2":{"name":"keyword.operator.assignment.webassembly"}}},"string":{"name":"string.quoted.double.webassembly","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.newline.webassembly","match":"\\\\n"},{"name":"constant.character.escape.tab.webassembly","match":"\\\\t"},{"name":"constant.character.escape.backslash.webassembly","match":"\\\\{2}"},{"name":"constant.character.escape.quote.single.webassembly","match":"\\\\'"},{"name":"constant.character.escape.quote.double.webassembly","match":"\\\\\""},{"name":"constant.character.escape.hex.unicode.webassembly","match":"\\\\[0-9A-Fa-f]{2}|\\\\u({)[A-Fa-f0-9]+(})","captures":{"1":{"name":"punctuation.definition.unicode-escape.begin.bracket.curly.webassembly"},"2":{"name":"punctuation.definition.unicode-escape.end.bracket.curly.webassembly"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.webassembly"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.webassembly"}}},"type":{"patterns":[{"name":"storage.type.number.$1.webassembly","match":"\\b([if](?:32|64))(?=[\\s()]|$|;;)"},{"name":"storage.type.packed.$1.webassembly","match":"\\b(i8|i16)(?=[\\s()]|$|;;)"},{"name":"storage.type.vector.$1.webassembly","match":"\\b(v128)(?=[\\s()]|$|;;)"},{"name":"storage.type.heap.$1.webassembly","match":"\\b(noexn|nofunc|noextern|none|func|extern|any|eq|i31|struct|array|exn)(?=[\\s()]|$|;;)"},{"name":"storage.type.reference.$1.webassembly","match":"\\b(?:((?:any|data|eq|extern|func|i31|struct|array|exn|null(?:func|exn|extern)?)?ref))(?=[\\s()]|$|;;)"},{"match":"(?\u003c=ref)(?\u003c!\\wref)\\s+(null)(?=[\\s()]|$|;;)","captures":{"1":{"name":"storage.modifier.reference.nullable.webassembly"}}},{"match":"\\b(sub)(?:\\s+(final))?(?=[\\s()]|$|;;)","captures":{"1":{"name":"storage.type.sub.webassembly"},"2":{"name":"storage.modifier.final.webassembly"}}},{"name":"storage.type.recursive.$1.webassembly","match":"\\b(rec)(?=[\\s()]|$|;;)"},{"name":"storage.type.simd.$1.webassembly","match":"\\b(f32x4|f64x2|i8x16|i16x8|i32x4|i64x2)(?=[\\s()]|$|;;)"}]}}}
|
data/grammars/source.wesl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WESL","scopeName":"source.wesl","patterns":[{"include":"#documentation_comment"},{"include":"#keywords"},{"include":"source.wgsl"}],"repository":{"documentation_comment":{"name":"comment.line.documentation.wgsl","match":"\\s*///.*"},"keywords":{"patterns":[{"name":"keyword.control.import.wesl","match":"\\b(import)\\b"},{"name":"keyword.control.wesl","match":"\\b(package|super|as)\\b"},{"name":"keyword.operator.module.wesl","match":"::"}]}}}
|
|
1
|
+
{"name":"WESL","scopeName":"source.wesl","patterns":[{"include":"#documentation_comment"},{"include":"#keywords"},{"include":"source.wgsl"}],"repository":{"documentation_comment":{"name":"comment.line.documentation.wgsl","match":"\\s*///.*"},"keywords":{"patterns":[{"name":"keyword.control.import.wesl","match":"\\b(import)\\b"},{"name":"keyword.control.wesl","match":"\\b(package|super|as)\\b"},{"name":"storage.modifier.wesl","match":"\\b(public|private)\\b"},{"name":"keyword.operator.module.wesl","match":"::"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"COBOL Markdown","scopeName":"text.html.cobmd","patterns":[{"include":"text.md"}]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Glimmer","scopeName":"text.html.ember-handlebars","patterns":[{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}],"repository":{"as-keyword":{"name":"keyword.control","match":"\\s\\b(as)\\b(?=\\s\\|)"},"as-params":{"name":"keyword.block-params.ember-handlebars","begin":"(?\u003c!\\|)(\\|)","end":"(\\|)(?!\\|)","patterns":[{"include":"#variable"}],"beginCaptures":{"1":{"name":"constant.other.symbol.begin.ember-handlebars"}},"endCaptures":{"1":{"name":"constant.other.symbol.end.ember-handlebars"}}},"attention":{"name":"storage.type.class.${1:/downcase}","match":"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\b"},"boolean":{"match":"true|false|undefined|null","captures":{"0":{"name":"string.regexp"},"1":{"name":"string.regexp"},"2":{"name":"string.regexp"}}},"component-tag":{"name":"meta.tag.any.ember-handlebars","begin":"(\u003c\\/?)(@|this.)?([a-zA-Z0-9-_\\$:\\.]+)\\b","end":"(\\/?)(\u003e)","patterns":[{"include":"#tag-like-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"3":{"name":"entity.name.type","patterns":[{"include":"#glimmer-component-path"},{"name":"markup.bold","match":"(@|:|\\$)"}]}},"endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}}},"digit":{"match":"\\d*(\\.)?\\d+","captures":{"0":{"name":"constant.numeric"},"1":{"name":"constant.numeric"},"2":{"name":"constant.numeric"}}},"entities":{"patterns":[{"name":"constant.character.entity.html.ember-handlebars","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html.ember-handlebars"},"3":{"name":"punctuation.definition.entity.html.ember-handlebars"}}},{"name":"invalid.illegal.bad-ampersand.html.ember-handlebars","match":"\u0026"}]},"glimmer-argument":{"match":"\\s(@[a-zA-Z0-9:_.-]+)(=)?","captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars.argument","patterns":[{"name":"markup.italic","match":"(@)"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}}},"glimmer-as-stuff":{"patterns":[{"include":"#as-keyword"},{"include":"#as-params"}]},"glimmer-block":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(#|/)(([@\\$a-zA-Z0-9_/.-]+))","end":"(~?}})","patterns":[{"include":"#glimmer-as-stuff"},{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-component-path"},{"name":"punctuation.definition.tag","match":"(\\/)+"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-bools":{"name":"entity.expression.ember-handlebars","match":"({{~?)(true|false|null|undefined|\\d*(\\.)?\\d+)(~?}})","captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"string.regexp"},"3":{"name":"string.regexp"},"4":{"name":"keyword.operator"}}},"glimmer-comment-block":{"name":"comment.block.glimmer","begin":"{{!--","end":"--}}","patterns":[{"include":"#script"},{"include":"#attention"}],"captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}}},"glimmer-comment-inline":{"name":"comment.inline.glimmer","begin":"{{!","end":"}}","patterns":[{"include":"#script"},{"include":"#attention"}],"captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}}},"glimmer-component-path":{"match":"(::|_|\\$|\\.)","captures":{"1":{"name":"punctuation.definition.tag"}}},"glimmer-control-expression":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(([-a-zA-Z_0-9/]+)\\s)","end":"(~?}})","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"keyword.control"}}},"glimmer-else-block":{"name":"entity.expression.ember-handlebars","match":"({{~?)(else\\s[a-z]+\\s|else)([()@a-zA-Z0-9\\.\\s\\b]+)?(~?}})","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"keyword.control"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"4":{"name":"punctuation.definition.tag"}}},"glimmer-expression":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(([()\\s@a-zA-Z0-9_.-]+))","end":"(~?}})","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"name":"string.regexp","match":"[(]+"},{"name":"string.regexp","match":"[)]+"},{"name":"punctuation.definition.tag","match":"(\\.)+"},{"include":"#glimmer-supexp-content"}]}}},"glimmer-expression-property":{"name":"entity.expression.ember-handlebars","begin":"({{~?)((@|this.)([a-zA-Z0-9_.-]+))","end":"(~?}})","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"4":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-parameter-name":{"match":"\\b([a-zA-Z0-9_-]+)(\\s?=)","captures":{"1":{"name":"variable.parameter.name.ember-handlebars"},"2":{"name":"punctuation.definition.expression.ember-handlebars"}}},"glimmer-parameter-value":{"match":"\\b([a-zA-Z0-9:_.-]+)\\b(?!=)","captures":{"1":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-special-block":{"name":"entity.expression.ember-handlebars","match":"({{~?)(yield|outlet)(~?}})","captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"keyword.control"},"3":{"name":"keyword.operator"}}},"glimmer-subexp":{"name":"entity.subexpression.ember-handlebars","begin":"(\\()([@a-zA-Z0-9.-]+)","end":"(\\))","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.other"},"2":{"name":"keyword.control"}}},"glimmer-supexp-content":{"patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{"name":"entity.unescaped.expression.ember-handlebars","begin":"{{{","end":"}}}","patterns":[{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#glimmer-subexp"},{"include":"#param"}],"captures":{"0":{"name":"keyword.operator"}}},"html-attribute":{"match":"\\s([a-zA-Z0-9:_.-]+)(=)?","captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars","patterns":[{"name":"markup.bold","match":"(\\.\\.\\.attributes)"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}}},"html-comment":{"name":"comment.block.html.ember-handlebars","begin":"\u003c!--","end":"--\\s*\u003e","patterns":[{"include":"#attention"},{"name":"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html.ember-handlebars"}}},"html-tag":{"name":"meta.tag.any.ember-handlebars","begin":"(\u003c\\/?)([a-z0-9-]+)(?!\\.|:)\\b","end":"(\\/?)(\u003e)","patterns":[{"include":"#tag-like-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"entity.name.tag.html.ember-handlebars"}},"endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}}},"param":{"match":"(@|this.)([a-zA-Z0-9_.-]+)","captures":{"0":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"1":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"script":{"begin":"(^[ \\t]+)?(?=\u003c(?i:script)\\b(?!-))","end":"(?!\\G)([ \\t]*$\\n?)?","patterns":[{"name":"meta.embedded.block.html","begin":"(\u003c)((?i:script))\\b","end":"(/)((?i:script))(\u003e)","patterns":[{"begin":"\\G","end":"(?=/)","patterns":[{"begin":"(\u003e)","end":"((\u003c))(?=/(?i:script))","patterns":[{"name":"source.js","begin":"\\G","end":"(?=\u003c/(?i:script))","patterns":[{"begin":"(^[ \\t]+)?(?=//)","end":"(?!\\G)","patterns":[{"name":"comment.line.double-slash.js","begin":"//","end":"(?=\u003c/script)|\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/|(?=\u003c/script)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"include":"source.js"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}}},{"begin":"(?ix:\n\t\t\t\t\t\t\t\t\t\t\t\t(?=\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype\\s*=\\s*\n\t\t\t\t\t\t\t\t\t\t\t\t\t('|\"|)\n\t\t\t\t\t\t\t\t\t\t\t\t\ttext/\n\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx-handlebars\n\t\t\t\t\t\t\t\t\t\t\t\t\t | (x-(handlebars-)?|ng-)?template\n\t\t\t\t\t\t\t\t\t\t\t\t\t | html\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t[\\s\"'\u003e]\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t)","end":"((\u003c))(?=/(?i:script))","patterns":[{"name":"text.html.basic","begin":"(?!\\G)","end":"(?=\u003c/(?i:script))","patterns":[{"include":"text.html.basic"}]}],"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}}},{"begin":"(?=(?i:type))","end":"(\u003c)(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"}}},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}}},"string-double-quoted-handlebars":{"name":"string.quoted.double.ember-handlebars","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-double-quoted-html":{"name":"string.quoted.double.html.ember-handlebars","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\\""},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-single-quoted-handlebars":{"name":"string.quoted.single.ember-handlebars","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\'"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-single-quoted-html":{"name":"string.quoted.single.html.ember-handlebars","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\'"},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"style":{"begin":"(^[ \\t]+)?(?=\u003c(?i:style)\\b(?!-))","end":"(?!\\G)([ \\t]*$\\n?)?","patterns":[{"name":"meta.embedded.block.html","begin":"(?i)(\u003c)(style)(?=\\s|/?\u003e)","end":"(?i)((\u003c)/)(style)\\s*(\u003e)","patterns":[{"name":"meta.tag.metadata.style.start.html","begin":"\\G","end":"(\u003e)","patterns":[{"include":"#glimmer-argument"},{"include":"#html-attribute"}],"captures":{"1":{"name":"punctuation.definition.tag.end.html"}}},{"name":"source.css","begin":"(?!\\G)","end":"(?=\u003c/(?i:style))","patterns":[{"include":"source.css"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}}},"tag-like-content":{"patterns":[{"include":"#glimmer-bools"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#boolean"},{"include":"#digit"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-as-stuff"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]},"variable":{"name":"support.function","match":"\\b([a-zA-Z0-9-_]+)\\b"}}}
|
|
1
|
+
{"name":"Glimmer","scopeName":"text.html.ember-handlebars","patterns":[{"include":"#glimmer-escaped-expression"},{"include":"#style"},{"include":"#script"},{"include":"#glimmer-else-block"},{"include":"#glimmer-bools"},{"include":"#glimmer-literal-expression"},{"include":"#glimmer-special-block"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#html-tag"},{"include":"#component-tag"},{"include":"#html-comment"},{"include":"#entities"}],"repository":{"as-keyword":{"name":"keyword.control","match":"\\s\\b(as)\\b(?=\\s\\|)"},"as-params":{"name":"keyword.block-params.ember-handlebars","begin":"(?\u003c!\\|)(\\|)","end":"(\\|)(?!\\|)","patterns":[{"include":"#variable"}],"beginCaptures":{"1":{"name":"constant.other.symbol.begin.ember-handlebars"}},"endCaptures":{"1":{"name":"constant.other.symbol.end.ember-handlebars"}}},"attention":{"name":"storage.type.class.${1:/downcase}","match":"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\b"},"boolean":{"match":"(?\u003c![\\w@.$:-])(?:(true|false)|(null)|(undefined))(?![\\w$:-])","captures":{"1":{"name":"constant.language.boolean.ember-handlebars"},"2":{"name":"constant.language.null.ember-handlebars"},"3":{"name":"constant.language.undefined.ember-handlebars"}}},"component-tag":{"name":"meta.tag.any.ember-handlebars","begin":"(\u003c\\/?)(@|this.)?([a-zA-Z0-9-_\\$:\\.]+)\\b","end":"(\\/?)(\u003e)|(?=\u003c)","patterns":[{"include":"#tag-like-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"3":{"name":"entity.name.type","patterns":[{"include":"#glimmer-component-path"},{"name":"markup.bold","match":"(@|:|\\$)"}]}},"endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}}},"digit":{"name":"constant.numeric","match":"(?\u003c![\\w@.$:-])-?\\d*\\.?\\d+(?![\\w$:-])"},"entities":{"patterns":[{"name":"constant.character.entity.html.ember-handlebars","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html.ember-handlebars"},"3":{"name":"punctuation.definition.entity.html.ember-handlebars"}}},{"name":"invalid.illegal.bad-ampersand.html.ember-handlebars","match":"\u0026"}]},"glimmer-argument":{"match":"\\s(@[a-zA-Z0-9:_.-]+)(=)?","captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars.argument","patterns":[{"name":"markup.italic","match":"(@)"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}}},"glimmer-as-stuff":{"patterns":[{"include":"#as-keyword"},{"include":"#as-params"}]},"glimmer-block":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(#|/)(([@\\$a-zA-Z0-9_/.-]+))","end":"(~?}})|(?=\u003c|/?\u003e)","patterns":[{"include":"#glimmer-as-stuff"},{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-component-path"},{"name":"punctuation.definition.tag","match":"(\\/)+"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-bools":{"name":"entity.expression.ember-handlebars","match":"({{~?)(true|false|null|undefined|-?\\d*\\.?\\d+)(~?}})","captures":{"1":{"name":"keyword.operator"},"2":{"patterns":[{"include":"#boolean"},{"include":"#digit"}]},"3":{"name":"keyword.operator"}}},"glimmer-comment-block":{"name":"comment.block.glimmer","begin":"{{!--","end":"--}}","patterns":[{"include":"#script"},{"include":"#attention"}],"captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}}},"glimmer-comment-inline":{"name":"comment.inline.glimmer","begin":"{{!","end":"}}","patterns":[{"include":"#script"},{"include":"#attention"}],"captures":{"0":{"name":"punctuation.definition.block.comment.glimmer"}}},"glimmer-component-path":{"match":"(::|_|\\$|\\.)","captures":{"1":{"name":"punctuation.definition.tag"}}},"glimmer-control-expression":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(([-a-zA-Z_0-9/]+)\\s)","end":"(~?}})|(?=\u003c|/?\u003e)","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"keyword.control"}}},"glimmer-else-block":{"name":"entity.expression.ember-handlebars","match":"({{~?)(else\\s[a-z]+\\s|else)([()@a-zA-Z0-9\\.\\s\\b]+)?(~?}})","captures":{"0":{"name":"punctuation.definition.tag"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"keyword.control"},"3":{"name":"keyword.control","patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"4":{"name":"punctuation.definition.tag"}}},"glimmer-escaped-expression":{"match":"(?\u003c!\\\\)(\\\\)(\\{\\{\\{.*?\\}\\}\\}|\\{\\{.*?\\}\\})","captures":{"1":{"name":"constant.character.escape.ember-handlebars"}}},"glimmer-expression":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(([()\\s@a-zA-Z0-9_.-]+))","end":"(~?}})|(?=\u003c|/?\u003e)","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"name":"string.regexp","match":"[(]+"},{"name":"string.regexp","match":"[)]+"},{"name":"punctuation.definition.tag","match":"(\\.)+"},{"include":"#glimmer-supexp-content"}]}}},"glimmer-expression-property":{"name":"entity.expression.ember-handlebars","begin":"({{~?)((@|this.)([a-zA-Z0-9_.-]+))","end":"(~?}})|(?=\u003c|/?\u003e)","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"},"2":{"name":"keyword.operator"},"3":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"4":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-literal-expression":{"name":"entity.expression.ember-handlebars","begin":"({{~?)(?=[\"'])","end":"(~?}})|(?=\u003c|/?\u003e)","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.operator"}}},"glimmer-parameter-name":{"match":"\\b([a-zA-Z0-9_-]+)(\\s?=)","captures":{"1":{"name":"variable.parameter.name.ember-handlebars"},"2":{"name":"punctuation.definition.expression.ember-handlebars"}}},"glimmer-parameter-value":{"match":"\\b([a-zA-Z0-9:_.-]+)\\b(?!=)","captures":{"1":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"glimmer-special-block":{"name":"entity.expression.ember-handlebars","match":"({{~?)(yield|outlet)(~?}})","captures":{"0":{"name":"keyword.operator"},"1":{"name":"keyword.operator"},"2":{"name":"keyword.control"},"3":{"name":"keyword.operator"}}},"glimmer-subexp":{"name":"entity.subexpression.ember-handlebars","begin":"(\\()([@a-zA-Z0-9.-]+)","end":"(\\))","patterns":[{"include":"#glimmer-supexp-content"}],"captures":{"1":{"name":"keyword.other"},"2":{"name":"keyword.control"}}},"glimmer-supexp-content":{"patterns":[{"include":"#glimmer-subexp"},{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#boolean"},{"include":"#digit"},{"include":"#param"},{"include":"#glimmer-parameter-name"},{"include":"#glimmer-parameter-value"}]},"glimmer-unescaped-expression":{"name":"entity.unescaped.expression.ember-handlebars","begin":"{{{","end":"}}}|(?=\u003c|/?\u003e)","patterns":[{"include":"#string-single-quoted-handlebars"},{"include":"#string-double-quoted-handlebars"},{"include":"#glimmer-subexp"},{"include":"#param"}],"captures":{"0":{"name":"keyword.operator"}}},"html-attribute":{"match":"\\s([a-zA-Z0-9:_.-]+)(=)?","captures":{"1":{"name":"entity.other.attribute-name.ember-handlebars","patterns":[{"name":"markup.bold","match":"(\\.\\.\\.attributes)"}]},"2":{"name":"punctuation.separator.key-value.html.ember-handlebars"}}},"html-comment":{"name":"comment.block.html.ember-handlebars","begin":"\u003c!--","end":"--\\s*\u003e","patterns":[{"include":"#attention"},{"name":"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html.ember-handlebars"}}},"html-tag":{"name":"meta.tag.any.ember-handlebars","begin":"(\u003c\\/?)([a-z0-9-]+)(?!\\.|:)\\b","end":"(\\/?)(\u003e)|(?=\u003c)","patterns":[{"include":"#tag-like-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"entity.name.tag.html.ember-handlebars"}},"endCaptures":{"1":{"name":"punctuation.definition.tag"},"2":{"name":"punctuation.definition.tag"}}},"nested-template-element":{"begin":"(\u003c)(template)\\b(?![^\u003e]*/\u003e)","end":"(\u003c/)(template)\\s*(\u003e)","patterns":[{"name":"meta.tag.any.ember-handlebars","begin":"(?\u003c=\u003ctemplate)(?=\\s)","end":"(?=\u003e)","patterns":[{"include":"#tag-like-content"}]},{"begin":"(\u003e)","end":"(?=\u003c/template\\s*\u003e)","patterns":[{"include":"#nested-template-element"},{"include":"$self"}],"beginCaptures":{"0":{"name":"meta.tag.any.ember-handlebars"},"1":{"name":"punctuation.definition.tag"}}}],"beginCaptures":{"0":{"name":"meta.tag.any.ember-handlebars"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"entity.name.tag.html.ember-handlebars"}},"endCaptures":{"0":{"name":"meta.tag.any.ember-handlebars"},"1":{"name":"punctuation.definition.tag"},"2":{"name":"entity.name.tag.html.ember-handlebars"},"3":{"name":"punctuation.definition.tag"}}},"param":{"match":"(@|this.)([a-zA-Z0-9_.-]+)","captures":{"0":{"name":"support.function","patterns":[{"name":"variable.language","match":"(@|this)"},{"name":"punctuation.definition.tag","match":"(\\.)+"}]},"1":{"name":"support.function","patterns":[{"name":"punctuation.definition.tag","match":"(\\.)+"}]}}},"script":{"begin":"(^[ \\t]+)?(?=\u003c(?i:script)\\b(?!-))","end":"(?!\\G)([ \\t]*$\\n?)?","patterns":[{"name":"meta.embedded.block.html","begin":"(\u003c)((?i:script))\\b","end":"(/)((?i:script))(\u003e)","patterns":[{"begin":"\\G","end":"(?=/)","patterns":[{"begin":"(\u003e)","end":"((\u003c))(?=/(?i:script))","patterns":[{"name":"source.js","begin":"\\G","end":"(?=\u003c/(?i:script))","patterns":[{"begin":"(^[ \\t]+)?(?=//)","end":"(?!\\G)","patterns":[{"name":"comment.line.double-slash.js","begin":"//","end":"(?=\u003c/script)|\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.js"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/|(?=\u003c/script)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"include":"source.js"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.end.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.js-ignored-vscode"}}},{"begin":"(?ix:\n\t\t\t\t\t\t\t\t\t\t\t\t(?=\n\t\t\t\t\t\t\t\t\t\t\t\t\ttype\\s*=\\s*\n\t\t\t\t\t\t\t\t\t\t\t\t\t('|\"|)\n\t\t\t\t\t\t\t\t\t\t\t\t\ttext/\n\t\t\t\t\t\t\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tx-handlebars\n\t\t\t\t\t\t\t\t\t\t\t\t\t | (x-(handlebars-)?|ng-)?template\n\t\t\t\t\t\t\t\t\t\t\t\t\t | html\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t[\\s\"'\u003e]\n\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t)","end":"((\u003c))(?=/(?i:script))","patterns":[{"name":"text.html.basic","begin":"(?!\\G)","end":"(?=\u003c/(?i:script))","patterns":[{"include":"text.html.basic"}]}],"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"text.html.basic"}}},{"begin":"(?=(?i:type))","end":"(\u003c)(?=/(?i:script))","endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"}}},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.script.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.script.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"},"3":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}}},"string-double-quoted-handlebars":{"name":"string.quoted.double.ember-handlebars","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-double-quoted-html":{"name":"string.quoted.double.html.ember-handlebars","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\\""},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-single-quoted-handlebars":{"name":"string.quoted.single.ember-handlebars","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\'"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"string-single-quoted-html":{"name":"string.quoted.single.html.ember-handlebars","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.ember-handlebars","match":"\\\\'"},{"include":"#glimmer-bools"},{"include":"#glimmer-expression-property"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ember-handlebars"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.ember-handlebars"}}},"style":{"begin":"(^[ \\t]+)?(?=\u003c(?i:style)\\b(?!-))","end":"(?!\\G)([ \\t]*$\\n?)?","patterns":[{"name":"meta.embedded.block.html","begin":"(?i)(\u003c)(style)(?=\\s|/?\u003e)","end":"(?i)((\u003c)/)(style)\\s*(\u003e)","patterns":[{"name":"meta.tag.metadata.style.start.html","begin":"\\G","end":"(\u003e)","patterns":[{"include":"#glimmer-argument"},{"include":"#html-attribute"}],"captures":{"1":{"name":"punctuation.definition.tag.end.html"}}},{"name":"source.css","begin":"(?!\\G)","end":"(?=\u003c/(?i:style))","patterns":[{"include":"source.css"}]}],"beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"meta.tag.metadata.style.end.html"},"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"source.css-ignored-vscode"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.end.html"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.embedded.leading.html"}},"endCaptures":{"1":{"name":"punctuation.whitespace.embedded.trailing.html"}}},"tag-like-content":{"patterns":[{"include":"#glimmer-bools"},{"include":"#glimmer-literal-expression"},{"include":"#glimmer-unescaped-expression"},{"include":"#glimmer-comment-block"},{"include":"#glimmer-comment-inline"},{"include":"#glimmer-expression-property"},{"include":"#boolean"},{"include":"#digit"},{"include":"#glimmer-control-expression"},{"include":"#glimmer-expression"},{"include":"#glimmer-block"},{"include":"#string-double-quoted-html"},{"include":"#string-single-quoted-html"},{"include":"#glimmer-as-stuff"},{"include":"#glimmer-argument"},{"include":"#html-attribute"}]},"variable":{"name":"support.function","match":"\\b([a-zA-Z0-9-_]+)\\b"}}}
|