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
data/grammars/source.baml.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"baml","scopeName":"source.baml","patterns":[{"include":"#comments"},{"include":"#client"},{"include":"#retry-policy"},{"include":"#generator"},{"include":"#template-string"},{"include":"#block-attribute"},{"include":"#enum"},{"include":"#type-alias"},{"include":"#implements-for"},{"include":"#interface"},{"include":"#class"},{"include":"#function"},{"include":"#testset"},{"include":"#test"},{"include":"#let-statement"},{"include":"#semicolon"}],"repository":{"accessor-dot":{"name":"punctuation.accessor.baml","match":"\\."},"array-destructure-pattern":{"name":"meta.pattern.destructure.array.baml","begin":"(?:\\b((?:let|const))\\b\\s*)?(\\[)","end":"(\\])(?:\\s*(:)\\s*((?:(?!\\s*(?:in\\b|if\\b|=\u003e|=|[,}\\)])).)+))?","patterns":[{"include":"#comments"},{"include":"#array-destructure-rest-operator"},{"include":"#pattern"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.array.end.baml"},"2":{"name":"punctuation.separator.colon.baml"},"3":{"patterns":[{"include":"#comments"},{"include":"#type-expression"}]}}},"array-destructure-rest-operator":{"name":"keyword.operator.rest.baml","match":"\\.\\."},"array-expression":{"name":"meta.expression.array.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.baml"}}},"assignment-operator":{"name":"keyword.operator.assignment.baml","match":"="},"associated-type":{"name":"meta.associated-type.baml","begin":"(?:^\\s*|(?\u003c=\\{)\\s*)(type)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#associated-type-extends"},{"include":"#assignment-operator"},{"include":"#type-expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.associated-type.baml"},"2":{"name":"entity.name.type.associated.baml"}}},"associated-type-extends":{"name":"keyword.operator.extends.baml","match":"\\bextends\\b"},"associated-type-projection":{"name":"meta.type.associated-projection.baml","begin":"\\((?=[^)\\r\\n]*\\bas\\b)","end":"(\\))\\s*(\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","patterns":[{"include":"#comments"},{"include":"#type-as-operator"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.type.end.baml"},"2":{"name":"punctuation.accessor.baml"},"3":{"name":"entity.name.type.associated.baml"}}},"attribute":{"name":"meta.attribute.baml","begin":"(@)(?!@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","end":"(?\u003c=\\))|(?=\\s*@|\\s*,|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#attribute-arguments"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"attribute-arguments":{"name":"meta.attribute.arguments.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#attribute-expression-block"},{"include":"#literal"},{"include":"#attribute-unquoted-string"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.begin.bracket.round.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.end.bracket.round.baml"}}},"attribute-expression-block":{"name":"meta.attribute.expression.baml","begin":"\\{\\{","end":"\\}\\}","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.baml"}}},"attribute-path-segment":{"name":"storage.type.annotation.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"attribute-unquoted-string":{"name":"string.unquoted.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"await-expression":{"name":"keyword.operator.await.baml","match":"\\bawait\\b"},"backtick-else":{"name":"meta.interpolation.control.else.baml","match":"(\\$\\{)\\s*(else)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-else-if":{"name":"meta.interpolation.control.else-if.baml","begin":"(\\$\\{)\\s*(else)\\b\\s*(if)\\b","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-else-if-condition"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"},"3":{"name":"keyword.control.conditional.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-else-if-condition":{"name":"meta.if.condition.baml","begin":"\\G\\s*","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"backtick-endfor":{"name":"meta.interpolation.control.endfor.baml","match":"(\\$\\{)\\s*(endfor)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.loop.endfor.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-endif":{"name":"meta.interpolation.control.endif.baml","match":"(\\$\\{)\\s*(endif)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.endif.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-expression-interpolation":{"name":"meta.interpolation.baml","begin":"(\\$\\{)","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-interpolation-let-statement"},{"include":"#block-contents"},{"include":"#expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-for-c-style-let-initializer":{"name":"meta.for.initializer.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#pattern"},{"include":"#let-else-clause"},{"include":"#expression"}]},"backtick-for-open":{"name":"meta.interpolation.control.for.baml","begin":"(\\$\\{)\\s*(for)\\b","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-for-parenthesized-in-header"},{"include":"#backtick-for-parenthesized-c-style-header"},{"include":"#backtick-for-unparenthesized-header"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.loop.for.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-for-parenthesized-c-style-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()","end":"\\)(?=\\s*\\})","patterns":[{"include":"#comments"},{"include":"#backtick-for-c-style-let-initializer"},{"include":"#semicolon"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"backtick-for-parenthesized-in-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()(?=\\s*(?:let|const)\\b(?:(?![=;]).)*\\bin\\b)","end":"\\)(?=\\s*\\})","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"backtick-for-unparenthesized-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#condition-expression"}]},"backtick-if-condition":{"name":"meta.if.condition.baml","begin":"\\G\\s*","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"backtick-if-open":{"name":"meta.interpolation.control.if.baml","begin":"(\\$\\{)\\s*(if)\\b(?=(?:(?![\\{\\}]).)*\\})","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-if-condition"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-interpolation":{"patterns":[{"include":"#backtick-for-open"},{"include":"#backtick-else-if"},{"include":"#backtick-if-open"},{"include":"#backtick-else"},{"include":"#backtick-endfor"},{"include":"#backtick-endif"},{"include":"#backtick-expression-interpolation"}]},"backtick-interpolation-let-pattern":{"name":"meta.pattern.statement.baml","begin":"\\G\\s*","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"backtick-interpolation-let-statement":{"name":"meta.statement.let.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;|\\})","patterns":[{"include":"#comments"},{"include":"#backtick-interpolation-let-pattern"},{"include":"#assignment-operator"},{"include":"#expression"}]},"backtick-string":{"patterns":[{"include":"#backtick-string-8"},{"include":"#backtick-string-7"},{"include":"#backtick-string-6"},{"include":"#backtick-string-5"},{"include":"#backtick-string-4"},{"include":"#backtick-string-3"},{"include":"#backtick-string-2"},{"include":"#backtick-string-1"}]},"backtick-string-1":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{1})(?!\\`)","end":"(?\u003c!\\`)(\\`{1})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-2":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{2})(?!\\`)","end":"(?\u003c!\\`)(\\`{2})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-3":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{3})(?!\\`)","end":"(?\u003c!\\`)(\\`{3})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-4":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{4})(?!\\`)","end":"(?\u003c!\\`)(\\`{4})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-5":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{5})(?!\\`)","end":"(?\u003c!\\`)(\\`{5})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-6":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{6})(?!\\`)","end":"(?\u003c!\\`)(\\`{6})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-7":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{7})(?!\\`)","end":"(?\u003c!\\`)(\\`{7})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-8":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{8})(?!\\`)","end":"(?\u003c!\\`)(\\`{8})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#backtick-string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-escape":{"patterns":[{"include":"#string-escape-control"},{"include":"#string-escape-quoted-delimiter"},{"include":"#backtick-string-escape-delimiter"},{"include":"#string-escape-unknown"}]},"backtick-string-escape-delimiter":{"name":"constant.character.escape.delimiter.baml","match":"\\\\[`$]"},"bare-attribute":{"name":"meta.attribute.baml","match":"(@)(?!@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*|skip)\\b(?=\\s*(?:@|,|\\}|$|//|/\\*))","captures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"bare-binding-pattern":{"name":"meta.pattern.binding.baml","match":"\\b((?:let|const))\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.other.binding.baml"}}},"bigint-literal":{"name":"constant.numeric.bigint.baml","match":"\\b[0-9]+n"},"block-attribute":{"name":"meta.attribute.block.baml","begin":"(@@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","end":"(?\u003c=\\))|(?=\\s*@@|\\s*@|\\s*,|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#attribute-arguments"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"block-comment":{"name":"comment.block.baml","begin":"/\\*","end":"\\*/"},"block-contents":{"patterns":[{"include":"#comments"},{"include":"#testset"},{"include":"#test"},{"include":"#watch-statement"},{"include":"#let-statement"},{"include":"#return-statement"},{"include":"#break-statement"},{"include":"#continue-statement"},{"include":"#defer-statement"},{"include":"#if-else-clause"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#expression"},{"include":"#semicolon"}]},"boolean-literal":{"name":"constant.language.boolean.baml","match":"\\b(?:true|false)\\b"},"break-statement":{"name":"meta.statement.break.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(break)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.flow.break.baml"}}},"byte-string-escape":{"patterns":[{"include":"#byte-string-escape-hex"},{"include":"#byte-string-escape-control"},{"include":"#string-escape-quoted-delimiter"},{"include":"#byte-string-escape-invalid-hex"},{"include":"#byte-string-escape-invalid"}]},"byte-string-escape-control":{"name":"constant.character.escape.control.baml","match":"\\\\[ntr0]"},"byte-string-escape-hex":{"name":"constant.character.escape.hex.baml","match":"\\\\x[0-9A-Fa-f]{2}"},"byte-string-escape-invalid":{"name":"invalid.illegal.escape.baml","match":"\\\\."},"byte-string-escape-invalid-hex":{"name":"invalid.illegal.escape.hex.baml","match":"\\\\x(?:[0-9A-Fa-f]{0,1}(?=[\"\\\\]|$)|[0-9A-Fa-f]?[^0-9A-Fa-f\"\\\\])"},"byte-string-literal":{"name":"string.quoted.binary.double.baml","begin":"\\b(b)(\")","end":"\"","patterns":[{"include":"#byte-string-escape"}],"beginCaptures":{"1":{"name":"storage.type.string.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"call-arguments":{"name":"meta.function-call.arguments.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.end.baml"}}},"catch-binding":{"name":"variable.parameter.catch.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"catch-binding-list":{"name":"meta.catch.binding-list.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#catch-binding"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.catch-binding.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.catch-binding.end.baml"}}},"catch-block":{"name":"meta.block.catch.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#match-arm"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"catch-expression":{"name":"meta.expression.catch.baml","begin":"\\b(catch|catch_all)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#catch-binding-list"},{"include":"#catch-block"}],"beginCaptures":{"1":{"name":"keyword.control.exception.catch.baml"}}},"class":{"name":"meta.class.baml","begin":"^\\s*(class)\\b","end":"(?\u003c=\\})|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#class-header"},{"include":"#class-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.class.baml"}}},"class-body":{"name":"meta.class.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-attribute"},{"include":"#bare-attribute"},{"include":"#attribute"},{"include":"#implements-block"},{"include":"#function"},{"include":"#field"},{"include":"#semicolon"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"class-destructure-body":{"name":"meta.pattern.destructure.class.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#class-destructure-field"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.pattern.destructure.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.pattern.destructure.end.baml"}}},"class-destructure-field":{"name":"meta.pattern.destructure.class.field.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b\\s*(:)?","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#pattern"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"class-destructure-pattern":{"name":"meta.pattern.destructure.class.baml","begin":"\\b(?:((?:let|const))\\s+)?(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b\\s*(?=(?:\u003c[^{}=;\\r\\n]*\u003e\\s*)?\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#class-destructure-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"patterns":[{"include":"#type-reference"}]}}},"class-header":{"name":"meta.class.header.baml","begin":"\\G\\s*","end":"(?=\\{)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#class-name"}]},"class-name":{"name":"entity.name.type.class.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"client":{"name":"meta.client.baml","begin":"^\\s*(client)\\b(?:\\s*(\u003c)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\u003e)\\s*|\\s+)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.client.baml"},"2":{"name":"punctuation.definition.type-parameters.begin.baml"},"3":{"name":"support.type.client.baml"},"4":{"name":"punctuation.definition.type-parameters.end.baml"},"5":{"name":"entity.name.client.baml"}}},"code-block":{"name":"meta.block.code.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"colon-separator":{"name":"punctuation.separator.colon.baml","match":":"},"comma":{"name":"punctuation.separator.comma.baml","match":","},"comments":{"patterns":[{"include":"#line-comment"},{"include":"#block-comment"}]},"condition-expression":{"patterns":[{"include":"#literal"},{"include":"#array-expression"},{"include":"#lambda-expression"},{"include":"#parenthesized-expression"},{"include":"#if-expression"},{"include":"#match-expression"},{"include":"#spawn-expression"},{"include":"#map-expression"},{"include":"#code-block"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#condition-is-pattern-expression"},{"include":"#optional-call-expression"},{"include":"#optional-index-expression"},{"include":"#optional-method-call-expression"},{"include":"#optional-field-access-expression"},{"include":"#upcast-expression"},{"include":"#postfix-method-call-expression"},{"include":"#field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"condition-is-pattern-expression":{"name":"meta.expression.is.baml","begin":"\\b(is)\\b","end":"(?=\\s*(?:\u0026\u0026|\\|\\||=\u003e|[,);\\]}{]|$))","patterns":[{"include":"#comments"},{"include":"#condition-pattern"}],"beginCaptures":{"1":{"name":"keyword.operator.is.baml"}}},"condition-pattern":{"patterns":[{"include":"#comments"},{"include":"#wildcard-binding-pattern"},{"include":"#typed-binding-pattern"},{"include":"#array-destructure-pattern"},{"include":"#bare-binding-pattern"},{"include":"#wildcard-pattern"},{"include":"#type-expression"}]},"config-array":{"patterns":[{"include":"#config-array-body"}]},"config-array-body":{"name":"meta.config.array.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#config-block"},{"include":"#config-array"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.baml"}}},"config-block":{"patterns":[{"include":"#config-block-body"}]},"config-block-body":{"name":"meta.config.block.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#config-field"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"config-field":{"name":"meta.field.config.baml","begin":"(?:^\\s*|(?\u003c=[\\{,])\\s*)(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b|(\"(?:\\\\.|[^\"\\\\])*\"))\\s*(:)?","end":"(?=,|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#config-block"},{"include":"#config-array"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"patterns":[{"include":"#string-literal"}]},"3":{"name":"punctuation.separator.colon.baml"}}},"constructor-body":{"name":"meta.constructor.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#constructor-field"},{"include":"#constructor-field-shorthand"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.constructor.body.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.constructor.body.end.baml"}}},"constructor-expression":{"name":"meta.constructor.expression.baml","begin":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*\\b(?=\\s*(?:\u003c[^{}=;\\r\\n]*\u003e\\s*)?\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#constructor-type-arguments"},{"include":"#constructor-body"}],"beginCaptures":{"0":{"patterns":[{"include":"#accessor-dot"},{"include":"#constructor-type"}]}}},"constructor-field":{"name":"meta.constructor.field.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"constructor-field-shorthand":{"name":"meta.constructor.field.baml","begin":"(?:^|(?\u003c=[{,])|(?\u003c=\\*/))[ \\t]*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)[ \\t]+(?=#+\"|\"|b\"|\\`|\\[|[0-9+-]|true\\b|false\\b|null\\b|env\\b)","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"}}},"constructor-type":{"name":"entity.name.type.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"constructor-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"continue-statement":{"name":"meta.statement.continue.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(continue)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.flow.continue.baml"}}},"declaration-type-parameter":{"name":"meta.type-parameter.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?=,|\u003e(?=\\s*(?:\\(|\\{|requires\\b|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)))","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameter-extends"},{"include":"#declaration-type-parameter-intersection"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"entity.name.type.parameter.baml"}}},"declaration-type-parameter-extends":{"name":"keyword.operator.extends.baml","match":"\\bextends\\b"},"declaration-type-parameter-intersection":{"name":"keyword.operator.type.baml","match":"\u0026"},"declaration-type-parameters":{"name":"meta.type-parameters.baml","begin":"\u003c","end":"\u003e(?=\\s*(?:\\(|\\{|requires\\b|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*))","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameter"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-parameters.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-parameters.end.baml"}}},"defer-statement":{"name":"meta.statement.defer.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(defer)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.flow.defer.baml"}}},"dotted-expression":{"name":"meta.dotted-expression.baml","match":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)((?:\\s*\\.\\s*(?!as\\b\\s*\u003c)\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","captures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#environment-expression-root"},{"include":"#self-expression-root"},{"include":"#expression-identifier"}]},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#expression-identifier"}]}}},"enum":{"name":"meta.enum.baml","begin":"^\\s*(enum)\\b","end":"(?\u003c=\\})|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#enum-header"},{"include":"#enum-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.enum.baml"}}},"enum-body":{"name":"meta.enum.body.baml","begin":"\\{","end":"\\}|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#block-attribute"},{"include":"#enum-variant"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"enum-header":{"name":"meta.enum.header.baml","begin":"\\G\\s*","end":"(?=\\{)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#enum-name"}]},"enum-name":{"name":"entity.name.type.enum.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"enum-variant":{"name":"meta.enum.variant.baml","begin":"(?:^\\s*|(?\u003c=[\\{,])\\s*|\\s+)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?=,|\\s+@@|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#bare-attribute"},{"include":"#attribute"}],"beginCaptures":{"1":{"name":"variable.other.enummember.baml"}}},"environment-expression-root":{"name":"support.other.namespace.baml","match":"\\benv\\b"},"expression":{"patterns":[{"include":"#literal"},{"include":"#array-expression"},{"include":"#lambda-expression"},{"include":"#parenthesized-expression"},{"include":"#if-expression"},{"include":"#match-expression"},{"include":"#spawn-expression"},{"include":"#constructor-expression"},{"include":"#map-expression"},{"include":"#code-block"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#is-pattern-expression"},{"include":"#optional-call-expression"},{"include":"#optional-index-expression"},{"include":"#optional-method-call-expression"},{"include":"#optional-field-access-expression"},{"include":"#upcast-expression"},{"include":"#postfix-method-call-expression"},{"include":"#field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"expression-accessor-operator":{"name":"punctuation.accessor.baml","match":"\\?\\.|\\.|\\$"},"expression-arithmetic-operator":{"name":"keyword.operator.arithmetic.baml","match":"\\+\\+|--|\\+|-|\\*|/|%"},"expression-arrow-operator":{"name":"keyword.operator.arrow.baml","match":"=\u003e|-\u003e"},"expression-bitwise-operator":{"name":"keyword.operator.bitwise.baml","match":"\u0026|\\^|~|\\|"},"expression-comparison-operator":{"name":"keyword.operator.comparison.baml","match":"\u003c=|\u003e=|\u003c|\u003e"},"expression-compound-assignment-operator":{"name":"keyword.operator.assignment.baml","match":"\u003c\u003c=|\u003e\u003e=|\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\^="},"expression-equality-operator":{"name":"keyword.operator.comparison.baml","match":"==|!="},"expression-identifier":{"name":"variable.other.readwrite.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"expression-logical-operator":{"name":"keyword.operator.logical.baml","match":"\u0026\u0026|\\|\\||!"},"expression-nullish-operator":{"name":"keyword.operator.nullish.baml","match":"\\?\\?"},"expression-operator":{"patterns":[{"include":"#expression-arrow-operator"},{"include":"#expression-compound-assignment-operator"},{"include":"#expression-nullish-operator"},{"include":"#expression-logical-operator"},{"include":"#expression-equality-operator"},{"include":"#expression-shift-operator"},{"include":"#expression-comparison-operator"},{"include":"#expression-bitwise-operator"},{"include":"#expression-arithmetic-operator"},{"include":"#assignment-operator"},{"include":"#expression-spread-operator"},{"include":"#expression-accessor-operator"}]},"expression-shift-operator":{"name":"keyword.operator.bitwise.shift.baml","match":"\u003c\u003c|\u003e\u003e"},"expression-spread-operator":{"name":"keyword.operator.spread.baml","match":"\\.\\.\\."},"field":{"name":"meta.field.baml","begin":"(?:^\\s*|(?\u003c=\\{)\\s*)(?!@)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)?","end":"(?=\\})|$","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"field-access-expression":{"name":"meta.field-access.baml","match":"([.$])\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"variable.other.readwrite.baml"}}},"float-literal":{"name":"constant.numeric.float.baml","match":"\\b[0-9]+(?:\\.[0-9]+[eE][+-]?[0-9]+|\\.[0-9]+|[eE][+-]?[0-9]+)"},"for-c-style-let-initializer":{"name":"meta.for.initializer.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#pattern"},{"include":"#let-else-clause"},{"include":"#expression"}]},"for-in-keyword":{"name":"keyword.operator.in.baml","match":"\\bin\\b"},"for-in-pattern":{"name":"meta.pattern.for-in.baml","begin":"(?=(?:let|const)\\b)","end":"(?=\\s+in\\b)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"for-parenthesized-c-style-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()","end":"\\)(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#for-c-style-let-initializer"},{"include":"#semicolon"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"for-parenthesized-in-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()(?=\\s*(?:let|const)\\b(?:(?![=;]).)*\\bin\\b)","end":"\\)(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"for-statement":{"name":"meta.statement.for.baml","begin":"\\b(for)\\b","end":"(?\u003c=\\})(?=\\s*(?:;|$))|(?=;|$)","patterns":[{"include":"#comments"},{"include":"#for-parenthesized-in-header"},{"include":"#for-parenthesized-c-style-header"},{"include":"#for-unparenthesized-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.loop.for.baml"}}},"for-unparenthesized-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#condition-expression"}]},"function":{"name":"meta.function.baml","begin":"^\\s*(function)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#function-parameters"},{"include":"#function-return-type"},{"include":"#function-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.baml"},"2":{"name":"entity.name.function.baml"}}},"function-block":{"name":"meta.block.function.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#llm-client-field"},{"include":"#llm-prompt-field"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"function-call-expression":{"name":"meta.function-call.baml","begin":"\\b(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\\.)\\s*)?((?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*)*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c[^(){};]*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#function-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#environment-expression-root"},{"include":"#self-expression-root"},{"include":"#expression-identifier"}]},"2":{"name":"punctuation.accessor.baml"},"3":{"patterns":[{"include":"#accessor-dot"},{"include":"#expression-identifier"}]},"4":{"name":"entity.name.function.baml"}}},"function-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"function-parameters":{"name":"meta.parameters.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#self-parameter"},{"include":"#parameter"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.baml"}}},"function-return-type":{"name":"meta.return-type.baml","begin":"(-\u003e)","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.arrow.baml"}}},"generator":{"name":"meta.generator.baml","begin":"^\\s*(generator)\\b(?:\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*))?\\s*(?=\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.generator.baml"},"2":{"name":"entity.name.generator.baml"}}},"if-condition":{"name":"meta.if.condition.baml","begin":"\\G(?!\\s*else\\b)\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"if-else-clause":{"name":"meta.else.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(else)\\b","end":"(?!\\s*else\\b)(?:(?\u003c=\\})(?=\\s*(?:[,);]|$))|(?=,|\\)|;|$))","patterns":[{"include":"#comments"},{"include":"#if-expression"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"if-expression":{"name":"meta.expression.if.baml","begin":"\\b(if)\\b","end":"(?!\\s*else\\b)(?:(?\u003c=\\})(?=\\s*(?:[,);]|$))|(?=,|\\)|;|$))","patterns":[{"include":"#comments"},{"include":"#if-let-pattern"},{"include":"#assignment-operator"},{"include":"#if-condition"},{"include":"#code-block"},{"include":"#if-else-clause"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"if-let-pattern":{"name":"meta.pattern.if-let.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"implements-block":{"name":"meta.implements.baml","begin":"^\\s*(implements|implement)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#implements-target"},{"include":"#implements-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.implements.baml"}}},"implements-body":{"name":"meta.implements.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#associated-type"},{"include":"#interface-field-link"},{"include":"#field"},{"include":"#semicolon"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"implements-for":{"name":"meta.implements-for.baml","begin":"^\\s*(implements|implement)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#implements-for-interface-target"},{"include":"#implements-for-keyword"},{"include":"#implements-for-target"},{"include":"#implements-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.implements.baml"}}},"implements-for-interface-target":{"name":"meta.implements.target.baml","begin":"\\G\\s*","end":"(?=\\s+\\bfor\\b)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"implements-for-keyword":{"name":"keyword.declaration.for.baml","match":"\\bfor\\b"},"implements-for-target":{"name":"meta.implements.for-target.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"implements-target":{"name":"meta.implements.target.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"integer-literal":{"name":"constant.numeric.integer.baml","match":"\\b[0-9]+\\b"},"interface":{"name":"meta.interface.baml","begin":"^\\s*(interface)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#interface-requires-clause"},{"include":"#interface-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.interface.baml"},"2":{"name":"entity.name.type.interface.baml"}}},"interface-body":{"name":"meta.interface.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#interface-method-signature"},{"include":"#function"},{"include":"#associated-type"},{"include":"#field"},{"include":"#semicolon"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"interface-field-link":{"name":"meta.interface-field-link.baml","begin":"(?:^\\s*|(?\u003c=\\{)\\s*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s+(as)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"variable.other.property.interface.baml"},"2":{"name":"keyword.operator.as.baml"},"3":{"name":"variable.other.property.baml"}}},"interface-method-return-type":{"name":"meta.return-type.baml","begin":"(-\u003e)","end":"(?=;|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.arrow.baml"}}},"interface-method-signature":{"name":"meta.function.signature.baml","begin":"^\\s*(function)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=[^{\\r\\n]*(?:\\r?\\n|;|\\}))","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#function-parameters"},{"include":"#interface-method-return-type"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.baml"},"2":{"name":"entity.name.function.baml"}}},"interface-requires-clause":{"name":"meta.interface.requires.baml","begin":"\\b(requires)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.declaration.requires.baml"}}},"is-pattern-expression":{"name":"meta.expression.is.baml","begin":"\\b(is)\\b","end":"(?=\\s*(?:\u0026\u0026|\\|\\||=\u003e|[,);\\]}]|$))","patterns":[{"include":"#comments"},{"include":"#pattern"}],"beginCaptures":{"1":{"name":"keyword.operator.is.baml"}}},"lambda-arrow":{"name":"keyword.operator.arrow.baml","match":"-\u003e|=\u003e"},"lambda-expression":{"name":"meta.expression.lambda.baml","begin":"(?=\\((?:[^()]|\\([^()]*\\))*\\)\\s*(?:-\u003e|=\u003e))","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#function-parameters"},{"include":"#lambda-arrow"},{"include":"#lambda-return-type"},{"include":"#lambda-throws-clause"},{"include":"#code-block"}]},"lambda-return-type":{"name":"meta.return-type.lambda.baml","begin":"(?\u003c=-\u003e|=\u003e)\\s*(?!throws\\b)(?=[^\\s\\{])","end":"(?=\\s*(?:throws\\b|\\{))","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"lambda-throws-clause":{"name":"meta.throws.lambda.baml","begin":"\\b(throws)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.throws.baml"}}},"let-else-clause":{"name":"meta.statement.let.else.baml","begin":"\\b(else)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.else.baml"}}},"let-statement":{"name":"meta.statement.let.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(?=(?:let|const)\\b)","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#let-statement-pattern"},{"include":"#assignment-operator"},{"include":"#let-else-clause"},{"include":"#expression"}]},"let-statement-pattern":{"name":"meta.pattern.statement.baml","begin":"\\G\\s*","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"line-comment":{"name":"comment.line.double-slash.baml","match":"//.*$"},"literal":{"patterns":[{"include":"#byte-string-literal"},{"include":"#type-literal"}]},"llm-client-field":{"name":"meta.field.llm.client.baml","begin":"^\\s*(client)\\b\\s*(:)?(?!\\s*\\.)","end":"$","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.other.llm.client.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"llm-prompt-field":{"name":"meta.field.llm.prompt.baml","begin":"^\\s*(prompt)\\b\\s*(:)?","end":"$","patterns":[{"include":"#comments"},{"include":"#template-string-body"},{"include":"#backtick-string"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.other.llm.prompt.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"map-entry":{"name":"meta.map.entry.baml","begin":"\\s*(?=(?:\"|#|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*\\s*:))","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#map-entry-key"},{"include":"#string-literal"},{"include":"#raw-string"},{"include":"#colon-separator"},{"include":"#expression"}]},"map-entry-key":{"name":"meta.map-entry-key.baml","match":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)((?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b(?=\\s*:)","captures":{"1":{"name":"variable.other.property.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#map-entry-key-segment"}]}}},"map-entry-key-segment":{"name":"variable.other.property.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"map-expression":{"name":"meta.expression.map.baml","begin":"\\{(?=\\s*(?:\\}|[\"#]|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*\\s*:))","end":"\\}","patterns":[{"include":"#comments"},{"include":"#map-entry"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.map.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.map.end.baml"}}},"match-arm":{"name":"meta.match.arm.baml","begin":"(?=\\S)(?![,}])","end":"(?=,|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#match-arm-pattern"},{"include":"#match-arm-guard"},{"include":"#match-arm-arrow"},{"include":"#expression"}]},"match-arm-arrow":{"name":"keyword.operator.arrow.baml","match":"=\u003e"},"match-arm-guard":{"name":"meta.match.guard.baml","begin":"\\b(if)\\b","end":"(?=\\s*=\u003e)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"match-arm-pattern":{"name":"meta.pattern.match.baml","begin":"\\G\\s*","end":"(?=\\s*(?:if\\b|=\u003e))","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"match-block":{"name":"meta.block.match.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#match-arm"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"match-expression":{"name":"meta.expression.match.baml","begin":"\\b(match)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#match-scrutinee-group"},{"include":"#match-block"},{"include":"#match-scrutinee"}],"beginCaptures":{"1":{"name":"keyword.control.match.baml"}}},"match-scrutinee":{"name":"meta.match.scrutinee.baml","begin":"(?=[^\\s\\{])","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#literal"},{"include":"#array-expression"},{"include":"#spawn-expression"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"match-scrutinee-group":{"name":"meta.match.scrutinee.group.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#expression"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.baml"}}},"namespace-root":{"name":"support.other.namespace.baml","match":"\\b(?:root|baml)\\b"},"namespace-segment":{"name":"entity.name.namespace.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"null-literal":{"name":"constant.language.null.baml","match":"\\bnull\\b"},"numeric-literal":{"patterns":[{"include":"#bigint-literal"},{"include":"#float-literal"},{"include":"#integer-literal"}]},"optional-call-expression":{"name":"meta.function-call.optional.baml","begin":"(\\?\\.)\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"}}},"optional-field-access-expression":{"name":"meta.field-access.optional.baml","match":"(\\?\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"variable.other.readwrite.baml"}}},"optional-index-arguments":{"name":"meta.index.arguments.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.end.baml"}}},"optional-index-expression":{"name":"meta.index.optional.baml","begin":"(\\?\\.)\\s*(?=\\[)","end":"(?\u003c=\\])","patterns":[{"include":"#comments"},{"include":"#optional-index-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"}}},"optional-method-call-expression":{"name":"meta.function-call.optional.member.baml","begin":"(\\?\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c[^(){};]*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#optional-method-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"entity.name.function.baml"}}},"optional-method-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"optional-operator":{"name":"keyword.operator.optional.baml","match":"\\?"},"parameter":{"name":"meta.parameter.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)?","end":"(?=,|\\))","patterns":[{"include":"#comments"},{"include":"#parameter-type-parens"},{"include":"#parameter-type-arguments"},{"include":"#parameter-default"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"variable.parameter.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"parameter-default":{"name":"meta.parameter.default.baml","begin":"=","end":"(?=,|\\))","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.baml"}}},"parameter-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"parameter-type-parens":{"name":"meta.group.type.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type.end.baml"}}},"parenthesized-expression":{"name":"meta.group.expression.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.baml"}}},"pattern":{"patterns":[{"include":"#comments"},{"include":"#wildcard-binding-pattern"},{"include":"#typed-binding-pattern"},{"include":"#class-destructure-pattern"},{"include":"#array-destructure-pattern"},{"include":"#bare-binding-pattern"},{"include":"#wildcard-pattern"},{"include":"#type-expression"}]},"postfix-method-call-expression":{"name":"meta.function-call.member.baml","begin":"([.$])\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c[^(){};]*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#postfix-method-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"entity.name.function.baml"}}},"postfix-method-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"primitive-type":{"name":"support.type.primitive.baml","match":"\\b(?:int|float|bigint|string|bool|image|audio|map|json|unknown|never|Self)\\b"},"raw-string":{"patterns":[{"include":"#raw-string-8"},{"include":"#raw-string-7"},{"include":"#raw-string-6"},{"include":"#raw-string-5"},{"include":"#raw-string-4"},{"include":"#raw-string-3"},{"include":"#raw-string-2"},{"include":"#raw-string-1"}]},"raw-string-1":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{1})\"","end":"\"(#{1})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-2":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{2})\"","end":"\"(#{2})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-3":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{3})\"","end":"\"(#{3})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-4":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{4})\"","end":"\"(#{4})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-5":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{5})\"","end":"\"(#{5})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-6":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{6})\"","end":"\"(#{6})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-7":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{7})\"","end":"\"(#{7})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-8":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{8})\"","end":"\"(#{8})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"retry-policy":{"name":"meta.retry-policy.baml","begin":"^\\s*(retry_policy)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.retry-policy.baml"},"2":{"name":"entity.name.retry-policy.baml"}}},"return-statement":{"name":"meta.statement.return.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(return)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.flow.return.baml"}}},"self-expression-root":{"name":"variable.language.self.baml","match":"\\bself\\b"},"self-parameter":{"name":"meta.parameter.baml","begin":"\\b(self)\\b(?=\\s*(?:,|\\)))","end":"(?=\\s*(?:,|\\)))","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"variable.language.self.baml"}}},"semicolon":{"name":"punctuation.terminator.statement.baml","match":";"},"spawn-expression":{"name":"meta.expression.spawn.baml","begin":"\\b(spawn)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#spawn-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.operator.spawn.baml"}}},"spawn-header":{"name":"meta.spawn.header.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#spawn-name"},{"include":"#spawn-with-clause"}]},"spawn-name":{"name":"meta.spawn.name.baml","begin":"\\G\\s*(?!with\\b)(?=[^\\{\\r\\n])","end":"(?=\\s+with\\b|\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"spawn-with-clause":{"name":"meta.spawn.options.baml","begin":"\\b(with)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.operator.with.baml"}}},"string-escape":{"patterns":[{"include":"#string-escape-control"},{"include":"#string-escape-quoted-delimiter"},{"include":"#string-escape-unknown"}]},"string-escape-control":{"name":"constant.character.escape.control.baml","match":"\\\\[ntr0bvf]"},"string-escape-quoted-delimiter":{"name":"constant.character.escape.delimiter.baml","match":"\\\\[\"\\\\]"},"string-escape-unknown":{"name":"constant.character.escape.unknown.baml","match":"\\\\."},"string-literal":{"name":"string.quoted.double.baml","begin":"\"","end":"\"","patterns":[{"include":"#string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"template-comment":{"name":"comment.block.template.baml","begin":"\\{#","end":"#\\}","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.baml"}}},"template-control":{"name":"meta.template.control.baml","begin":"\\{%","end":"%\\}","patterns":[{"include":"#comments"},{"include":"#template-keyword"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.template.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.template.end.baml"}}},"template-interpolation":{"name":"meta.template.interpolation.baml","begin":"\\{\\{","end":"\\}\\}","patterns":[{"include":"#comments"},{"include":"#template-keyword"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.interpolation.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"template-keyword":{"name":"keyword.control.template.baml","match":"\\b(?:for|endfor|if|elif|else|endif|in|set|filter|endfilter|macro|endmacro|raw|endraw)\\b"},"template-quoted-string-body":{"name":"string.quoted.double.template.baml","begin":"\"","end":"\"","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-1":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{1})(\")","end":"(\")(#{1})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-2":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{2})(\")","end":"(\")(#{2})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-3":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{3})(\")","end":"(\")(#{3})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-4":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{4})(\")","end":"(\")(#{4})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-5":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{5})(\")","end":"(\")(#{5})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-6":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{6})(\")","end":"(\")(#{6})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-7":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{7})(\")","end":"(\")(#{7})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-8":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{8})(\")","end":"(\")(#{8})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-string":{"name":"meta.template-string.baml","begin":"^\\s*(template_string)\\b","end":"(?:(?\u003c=#)|(?\u003c=\"))(?=\\s*(?:\\r?\\n|$))|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#template-string-name"},{"include":"#function-parameters"},{"include":"#template-string-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.template-string.baml"}}},"template-string-body":{"patterns":[{"include":"#template-raw-string-body-8"},{"include":"#template-raw-string-body-7"},{"include":"#template-raw-string-body-6"},{"include":"#template-raw-string-body-5"},{"include":"#template-raw-string-body-4"},{"include":"#template-raw-string-body-3"},{"include":"#template-raw-string-body-2"},{"include":"#template-raw-string-body-1"},{"include":"#template-quoted-string-body"}]},"template-string-name":{"name":"entity.name.function.template-string.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"test":{"name":"meta.test.baml","begin":"^\\s*(test)\\b(?!(?:[^\\S\\r\\n]+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*[^\\S\\r\\n]*\\{[^\\S\\r\\n]*(?:functions|type_builder)\\b))","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#test-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.test.baml"}}},"test-header":{"name":"meta.test.header.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#test-with-keyword"},{"include":"#condition-expression"}]},"test-with-keyword":{"name":"keyword.operator.with.baml","match":"\\bwith\\b"},"testset":{"name":"meta.testset.baml","begin":"^\\s*(testset)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#test-header"},{"include":"#testset-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.testset.baml"}}},"testset-body":{"name":"meta.testset.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"throw-expression":{"name":"keyword.control.flow.throw.baml","match":"\\bthrow\\b"},"type-alias":{"name":"meta.type-alias.baml","begin":"^\\s*(type)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(=)","end":"(?\u003c=;)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.type-alias.baml"},"2":{"name":"entity.name.type.alias.baml"},"3":{"name":"keyword.operator.assignment.baml"}}},"type-arrow-operator":{"name":"keyword.operator.arrow.baml","match":"-\u003e"},"type-as-operator":{"name":"keyword.operator.as.baml","match":"\\bas\\b"},"type-expression":{"patterns":[{"include":"#comments"},{"include":"#primitive-type"},{"include":"#type-literal"},{"include":"#type-arrow-operator"},{"include":"#type-throws-operator"},{"include":"#associated-type-projection"},{"include":"#type-reference"},{"include":"#bare-attribute"},{"include":"#attribute"},{"include":"#type-as-operator"},{"include":"#assignment-operator"},{"include":"#optional-operator"},{"include":"#union-operator"},{"include":"#type-punctuation"},{"include":"#colon-separator"}]},"type-literal":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"},{"include":"#raw-string"},{"include":"#backtick-string"}]},"type-punctuation":{"name":"punctuation.definition.type.baml","match":"[\\[\\]\u003c\u003e,()]"},"type-reference":{"name":"meta.type-reference.baml","match":"\\b(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\\.)\\s*)?((?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*)*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#namespace-segment"}]},"2":{"name":"punctuation.accessor.baml"},"3":{"patterns":[{"include":"#namespace-segment"},{"include":"#accessor-dot"}]},"4":{"name":"entity.name.type.baml"}}},"type-throws-operator":{"name":"keyword.operator.throws.baml","match":"\\bthrows\\b"},"typed-binding-pattern":{"name":"meta.pattern.binding.baml","match":"\\b((?:let|const))\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b\\s*(:)","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.other.binding.baml"},"3":{"name":"punctuation.separator.colon.baml"}}},"union-operator":{"name":"keyword.operator.type.baml","match":"\\|"},"upcast-expression":{"name":"meta.expression.upcast.baml","begin":"(\\.)\\s*(as)\\b(?=\\s*\u003c)","end":"(?\u003c=\u003e)","patterns":[{"include":"#comments"},{"include":"#upcast-type-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"keyword.operator.as.baml"}}},"upcast-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"watch-statement":{"name":"meta.statement.watch.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(watch)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#watch-statement-pattern"},{"include":"#assignment-operator"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.watch.baml"}}},"watch-statement-pattern":{"name":"meta.pattern.watch.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"while-condition":{"name":"meta.while.condition.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"while-let-pattern":{"name":"meta.pattern.while-let.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"while-statement":{"name":"meta.statement.while.baml","begin":"\\b(while)\\b","end":"(?\u003c=\\})(?=\\s*(?:;|$))|(?=;|$)","patterns":[{"include":"#comments"},{"include":"#while-let-pattern"},{"include":"#assignment-operator"},{"include":"#while-condition"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.loop.while.baml"}}},"wildcard-binding-pattern":{"name":"meta.pattern.wildcard.baml","match":"\\b((?:let|const))\\s+(_)\\b","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.language.wildcard.baml"}}},"wildcard-pattern":{"name":"variable.language.wildcard.baml","match":"\\b_\\b"}}}
|
|
1
|
+
{"name":"baml","scopeName":"source.baml","patterns":[{"include":"#comments"},{"include":"#client"},{"include":"#client-value"},{"include":"#retry-policy"},{"include":"#generator"},{"include":"#template-string"},{"include":"#block-attribute"},{"include":"#enum"},{"include":"#type-alias"},{"include":"#implements-for"},{"include":"#interface"},{"include":"#class"},{"include":"#function"},{"include":"#testset"},{"include":"#test"},{"include":"#let-statement"},{"include":"#semicolon"},{"include":"#associated-type"},{"include":"#member-fragment"},{"include":"#type-fragment"}],"repository":{"accessor-dot":{"name":"punctuation.accessor.baml","match":"\\."},"array-destructure-pattern":{"name":"meta.pattern.destructure.array.baml","begin":"(?:\\b((?:let|const))\\b\\s*)?(\\[)","end":"(\\])(?:\\s*(:)\\s*((?:(?!\\s*(?:in\\b|if\\b|=\u003e|=|[,}\\)])).)+))?","patterns":[{"include":"#comments"},{"include":"#array-destructure-rest-operator"},{"include":"#pattern"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.array.end.baml"},"2":{"name":"punctuation.separator.colon.baml"},"3":{"patterns":[{"include":"#comments"},{"include":"#type-expression"}]}}},"array-destructure-rest-operator":{"name":"keyword.operator.rest.baml","match":"\\.\\."},"array-expression":{"name":"meta.expression.array.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.baml"}}},"assignment-operator":{"name":"keyword.operator.assignment.baml","match":"="},"associated-type":{"name":"meta.associated-type.baml","begin":"(?:^\\s*|(?\u003c=\\{)\\s*)(type)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#associated-type-extends"},{"include":"#assignment-operator"},{"include":"#type-expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.associated-type.baml"},"2":{"name":"entity.name.type.associated.baml"}}},"associated-type-extends":{"name":"keyword.operator.expression.extends.baml","match":"\\bextends\\b"},"associated-type-projection":{"name":"meta.type.associated-projection.baml","begin":"\\((?=[^)\\r\\n]*\\bas\\b)","end":"(\\))\\s*(\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","patterns":[{"include":"#comments"},{"include":"#type-as-operator"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.type.end.baml"},"2":{"name":"punctuation.accessor.baml"},"3":{"name":"entity.name.type.associated.baml"}}},"attribute":{"name":"meta.attribute.baml","begin":"(@)(?!@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","end":"(?\u003c=\\))|(?=\\s*@|\\s*,|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#attribute-arguments"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"attribute-arguments":{"name":"meta.attribute.arguments.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#attribute-expression-block"},{"include":"#literal"},{"include":"#attribute-unquoted-string"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.begin.bracket.round.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.annotation-arguments.end.bracket.round.baml"}}},"attribute-expression-block":{"name":"meta.attribute.expression.baml","begin":"\\{\\{","end":"\\}\\}","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.expression.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.expression.end.baml"}}},"attribute-path-segment":{"name":"storage.type.annotation.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"attribute-unquoted-string":{"name":"string.unquoted.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"await-expression":{"name":"keyword.operator.expression.await.baml","match":"\\bawait\\b"},"backtick-else":{"name":"meta.interpolation.control.else.baml","match":"(\\$\\{)\\s*(else)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-else-if":{"name":"meta.interpolation.control.else-if.baml","begin":"(\\$\\{)\\s*(else)\\b\\s*(if)\\b","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-else-if-condition"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"},"3":{"name":"keyword.control.conditional.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-else-if-condition":{"name":"meta.if.condition.baml","begin":"\\G\\s*","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"backtick-endfor":{"name":"meta.interpolation.control.endfor.baml","match":"(\\$\\{)\\s*(endfor)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.loop.endfor.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-endif":{"name":"meta.interpolation.control.endif.baml","match":"(\\$\\{)\\s*(endif)\\s*(\\})","captures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.endif.baml"},"3":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-expression-interpolation":{"name":"meta.interpolation.baml","begin":"(\\$\\{)","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-interpolation-let-statement"},{"include":"#block-contents"},{"include":"#expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-for-c-style-let-initializer":{"name":"meta.for.initializer.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#pattern"},{"include":"#let-else-clause"},{"include":"#expression"}]},"backtick-for-open":{"name":"meta.interpolation.control.for.baml","begin":"(\\$\\{)\\s*(for)\\b","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-for-parenthesized-in-header"},{"include":"#backtick-for-parenthesized-c-style-header"},{"include":"#backtick-for-unparenthesized-header"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.loop.for.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-for-parenthesized-c-style-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()","end":"\\)(?=\\s*\\})","patterns":[{"include":"#comments"},{"include":"#backtick-for-c-style-let-initializer"},{"include":"#semicolon"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"backtick-for-parenthesized-in-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()(?=\\s*(?:let|const)\\b(?:(?![=;]).)*\\bin\\b)","end":"\\)(?=\\s*\\})","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"backtick-for-unparenthesized-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#condition-expression"}]},"backtick-if-condition":{"name":"meta.if.condition.baml","begin":"\\G\\s*","end":"(?=\\})","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"backtick-if-open":{"name":"meta.interpolation.control.if.baml","begin":"(\\$\\{)\\s*(if)\\b(?=(?:(?![\\{\\}]).)*\\})","end":"\\}","patterns":[{"include":"#comments"},{"include":"#backtick-if-condition"}],"beginCaptures":{"1":{"name":"punctuation.section.interpolation.begin.baml"},"2":{"name":"keyword.control.conditional.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"backtick-interpolation":{"patterns":[{"include":"#backtick-for-open"},{"include":"#backtick-else-if"},{"include":"#backtick-if-open"},{"include":"#backtick-else"},{"include":"#backtick-endfor"},{"include":"#backtick-endif"},{"include":"#backtick-expression-interpolation"}]},"backtick-interpolation-let-pattern":{"name":"meta.pattern.statement.baml","begin":"\\G\\s*","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"backtick-interpolation-let-statement":{"name":"meta.statement.let.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;|\\})","patterns":[{"include":"#comments"},{"include":"#backtick-interpolation-let-pattern"},{"include":"#assignment-operator"},{"include":"#expression"}]},"backtick-string":{"patterns":[{"include":"#backtick-string-8"},{"include":"#backtick-string-7"},{"include":"#backtick-string-6"},{"include":"#backtick-string-5"},{"include":"#backtick-string-4"},{"include":"#backtick-string-3"},{"include":"#backtick-string-2"},{"include":"#backtick-string-1"}]},"backtick-string-1":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{1})(?!\\`)","end":"(?\u003c!\\`)(\\`{1})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-2":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{2})(?!\\`)","end":"(?\u003c!\\`)(\\`{2})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-3":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{3})(?!\\`)","end":"(?\u003c!\\`)(\\`{3})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-4":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{4})(?!\\`)","end":"(?\u003c!\\`)(\\`{4})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-5":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{5})(?!\\`)","end":"(?\u003c!\\`)(\\`{5})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-6":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{6})(?!\\`)","end":"(?\u003c!\\`)(\\`{6})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-7":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{7})(?!\\`)","end":"(?\u003c!\\`)(\\`{7})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-8":{"name":"string.interpolated.baml","begin":"(?\u003c!\\`)(\\`{8})(?!\\`)","end":"(?\u003c!\\`)(\\`{8})(?!\\`)","patterns":[{"include":"#backtick-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"backtick-string-escape-delimiter":{"name":"constant.character.escape.delimiter.baml","match":"\\\\[`$]"},"bare-attribute":{"name":"meta.attribute.baml","match":"(@)(?!@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*|skip)\\b(?=\\s*(?:@|,|\\}|$|//|/\\*))","captures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"bare-binding-pattern":{"name":"meta.pattern.binding.baml","match":"\\b((?:let|const))\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.other.binding.baml"}}},"bigint-literal":{"name":"constant.numeric.bigint.baml","match":"\\b[0-9]+n"},"block-attribute":{"name":"meta.attribute.block.baml","begin":"(@@)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","end":"(?\u003c=\\))|(?=\\s*@@|\\s*@|\\s*,|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#attribute-arguments"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.baml storage.type.annotation.baml"},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#attribute-path-segment"}]}}},"block-comment":{"name":"comment.block.baml","begin":"/\\*","end":"\\*/"},"block-contents":{"patterns":[{"include":"#comments"},{"include":"#testset"},{"include":"#test"},{"include":"#watch-statement"},{"include":"#let-type-statement"},{"include":"#let-statement"},{"include":"#return-statement"},{"include":"#break-statement"},{"include":"#continue-statement"},{"include":"#defer-statement"},{"include":"#if-else-clause"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#expression"},{"include":"#semicolon"}]},"boolean-literal":{"name":"constant.language.boolean.baml","match":"\\b(?:true|false)\\b"},"braced-expression":{"name":"meta.expression.braced.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#block-contents"},{"include":"#colon-separator"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"break-statement":{"name":"meta.statement.break.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(break)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.flow.break.baml"}}},"byte-string-escape":{"patterns":[{"include":"#byte-string-escape-hex"},{"include":"#string-escape-control"},{"include":"#string-escape-quoted-delimiter"},{"include":"#backtick-string-escape-delimiter"},{"include":"#byte-string-escape-invalid"},{"include":"#byte-string-non-ascii"}]},"byte-string-escape-hex":{"name":"constant.character.escape.hex.baml","match":"\\\\x[0-9A-Fa-f]{2}"},"byte-string-escape-invalid":{"name":"invalid.illegal.escape.baml","match":"\\\\(?:x[0-9A-Fa-f]?|u(?:\\{[^}\"\\\\]*\\}?|[0-9A-Fa-f]{0,4})|.|$)"},"byte-string-literal":{"name":"string.quoted.binary.double.baml","begin":"\\b(b)(\")","end":"\"","patterns":[{"include":"#byte-string-escape"}],"beginCaptures":{"1":{"name":"storage.type.string.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"byte-string-non-ascii":{"name":"invalid.illegal.character.baml","match":"[^\\x00-\\x7F]+"},"call-arguments":{"name":"meta.function-call.arguments.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.end.baml"}}},"catch-binding":{"name":"variable.parameter.catch.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"catch-binding-list":{"name":"meta.catch.binding-list.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#catch-binding"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.catch-binding.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.catch-binding.end.baml"}}},"catch-block":{"name":"meta.block.catch.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#match-arm"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"catch-expression":{"name":"meta.expression.catch.baml","begin":"\\b(catch|catch_all)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#catch-binding-list"},{"include":"#catch-block"}],"beginCaptures":{"1":{"name":"keyword.control.exception.catch.baml"}}},"class":{"name":"meta.class.baml","begin":"^\\s*(class)\\b","end":"(?\u003c=\\})|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#class-header"},{"include":"#class-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.class.baml"}}},"class-body":{"name":"meta.class.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-attribute"},{"include":"#bare-attribute"},{"include":"#attribute"},{"include":"#implements-block"},{"include":"#function"},{"include":"#field"},{"include":"#semicolon"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"class-destructure-body":{"name":"meta.pattern.destructure.class.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#class-destructure-field"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.pattern.destructure.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.pattern.destructure.end.baml"}}},"class-destructure-field":{"name":"meta.pattern.destructure.class.field.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b\\s*(:)?","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#pattern"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"class-destructure-pattern":{"name":"meta.pattern.destructure.class.baml","begin":"\\b(?:((?:let|const))\\s+)?(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b\\s*(?=(?:\u003c[^{}=;\\r\\n]*\u003e\\s*)?\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#class-destructure-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"patterns":[{"include":"#type-reference"}]}}},"class-header":{"name":"meta.class.header.baml","begin":"\\G\\s*","end":"(?=\\{)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#class-name"}]},"class-name":{"name":"entity.name.type.class.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"client":{"name":"meta.client.baml","begin":"^\\s*(client)\\b(?:\\s*(\u003c)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\u003e)\\s*|\\s+)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.client.baml"},"2":{"name":"punctuation.definition.type-parameters.begin.baml"},"3":{"name":"support.type.client.baml"},"4":{"name":"punctuation.definition.type-parameters.end.baml"},"5":{"name":"entity.name.client.baml"}}},"client-value":{"name":"meta.client.baml","begin":"^\\s*(client)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(=)(?!=)","end":"(?=;|^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b|^\\s*(?:let|const)\\b)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.declaration.client.baml"},"2":{"name":"entity.name.client.baml"},"3":{"name":"keyword.operator.assignment.baml"}}},"code-block":{"name":"meta.block.code.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"colon-separator":{"name":"punctuation.separator.colon.baml","match":":"},"comma":{"name":"punctuation.separator.comma.baml","match":","},"comments":{"patterns":[{"include":"#line-comment"},{"include":"#block-comment"}]},"condition-expression":{"patterns":[{"include":"#literal"},{"include":"#array-expression"},{"include":"#lambda-expression"},{"include":"#parenthesized-expression"},{"include":"#if-expression"},{"include":"#match-expression"},{"include":"#spawn-expression"},{"include":"#map-expression"},{"include":"#braced-expression"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#condition-is-pattern-expression"},{"include":"#optional-call-expression"},{"include":"#optional-index-expression"},{"include":"#optional-method-call-expression"},{"include":"#optional-field-access-expression"},{"include":"#upcast-expression"},{"include":"#postfix-method-call-expression"},{"include":"#field-access-expression"},{"include":"#tuple-field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"condition-is-pattern-expression":{"name":"meta.expression.is.baml","begin":"\\b(is)\\b","end":"(?=\\s*(?:\u0026\u0026|\\|\\||=\u003e|[,);\\]}{]|$))","patterns":[{"include":"#comments"},{"include":"#condition-pattern"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.is.baml"}}},"condition-pattern":{"patterns":[{"include":"#comments"},{"include":"#wildcard-binding-pattern"},{"include":"#typed-binding-pattern"},{"include":"#array-destructure-pattern"},{"include":"#tuple-destructure-pattern"},{"include":"#bare-binding-pattern"},{"include":"#wildcard-pattern"},{"include":"#type-expression"}]},"config-array":{"patterns":[{"include":"#config-array-body"}]},"config-array-body":{"name":"meta.config.array.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#config-block"},{"include":"#config-array"},{"include":"#expression"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.baml"}}},"config-block":{"patterns":[{"include":"#config-block-body"}]},"config-block-body":{"name":"meta.config.block.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#config-field"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"config-field":{"name":"meta.field.config.baml","begin":"(?:^\\s*|(?\u003c=[\\{,])\\s*)(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b|(\"(?:\\\\.|[^\"\\\\])*\"))\\s*(:)?","end":"(?=,|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#config-block"},{"include":"#config-array"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"patterns":[{"include":"#string-literal"}]},"3":{"name":"punctuation.separator.colon.baml"}}},"constructor-body":{"name":"meta.constructor.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#constructor-field"},{"include":"#constructor-field-shorthand"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.constructor.body.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.constructor.body.end.baml"}}},"constructor-expression":{"name":"meta.constructor.expression.baml","begin":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*\\b(?=\\s*(?:\u003c[^{}=;\\r\\n]*\u003e\\s*)?\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#constructor-type-arguments"},{"include":"#constructor-body"}],"beginCaptures":{"0":{"patterns":[{"include":"#accessor-dot"},{"include":"#constructor-type"}]}}},"constructor-field":{"name":"meta.constructor.field.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"constructor-field-shorthand":{"name":"meta.constructor.field.baml","begin":"(?:^|(?\u003c=[{,])|(?\u003c=\\*/))[ \\t]*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)[ \\t]+(?=#+\"|\"|b\"|\\`|\\[|[0-9+-]|true\\b|false\\b|null\\b|env\\b)","end":"(?=,|\\})","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"}}},"constructor-type":{"name":"entity.name.type.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"constructor-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"continue-statement":{"name":"meta.statement.continue.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(continue)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"keyword.control.flow.continue.baml"}}},"declaration-type-parameter":{"name":"meta.type-parameter.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?=,|\u003e(?=\\s*(?:\\(|\\{|requires\\b|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)))","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameter-extends"},{"include":"#declaration-type-parameter-intersection"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"entity.name.type.parameter.baml"}}},"declaration-type-parameter-extends":{"name":"keyword.operator.expression.extends.baml","match":"\\bextends\\b"},"declaration-type-parameter-intersection":{"name":"keyword.operator.type.baml","match":"\u0026"},"declaration-type-parameters":{"name":"meta.type-parameters.baml","begin":"\u003c","end":"\u003e(?=\\s*(?:\\(|\\{|requires\\b|\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*))","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameter"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-parameters.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-parameters.end.baml"}}},"defer-statement":{"name":"meta.statement.defer.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(defer)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.flow.defer.baml"}}},"dotted-expression":{"name":"meta.dotted-expression.baml","match":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)((?:\\s*\\.\\s*(?!upcast\\b\\s*\u003c(?:[^(){};\u0026+*/!%^~]|\\([^(){};]*\\))*\u003e\\s*\\()\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*)\\b","captures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#environment-expression-root"},{"include":"#self-expression-root"},{"include":"#expression-identifier"}]},"2":{"patterns":[{"include":"#accessor-dot"},{"include":"#expression-identifier"}]}}},"enum":{"name":"meta.enum.baml","begin":"^\\s*(enum)\\b","end":"(?\u003c=\\})|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#enum-header"},{"include":"#enum-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.enum.baml"}}},"enum-body":{"name":"meta.enum.body.baml","begin":"\\{","end":"\\}|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#block-attribute"},{"include":"#enum-variant"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"enum-header":{"name":"meta.enum.header.baml","begin":"\\G\\s*","end":"(?=\\{)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#enum-name"}]},"enum-name":{"name":"entity.name.type.enum.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"enum-variant":{"name":"meta.enum.variant.baml","begin":"(?:^\\s*|(?\u003c=[\\{,])\\s*|\\s+)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?=,|\\s+@@|\\s*\\}|\\s+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|\\r?\\n\\s*(?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b|@@|\\}))","patterns":[{"include":"#comments"},{"include":"#bare-attribute"},{"include":"#attribute"}],"beginCaptures":{"1":{"name":"variable.other.enummember.baml"}}},"environment-expression-root":{"name":"support.other.namespace.baml","match":"\\benv\\b"},"expression":{"patterns":[{"include":"#literal"},{"include":"#array-expression"},{"include":"#lambda-expression"},{"include":"#parenthesized-expression"},{"include":"#if-expression"},{"include":"#match-expression"},{"include":"#spawn-expression"},{"include":"#map-expression"},{"include":"#constructor-expression"},{"include":"#braced-expression"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#is-pattern-expression"},{"include":"#optional-call-expression"},{"include":"#optional-index-expression"},{"include":"#optional-method-call-expression"},{"include":"#optional-field-access-expression"},{"include":"#upcast-expression"},{"include":"#postfix-method-call-expression"},{"include":"#field-access-expression"},{"include":"#tuple-field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"expression-accessor-operator":{"name":"punctuation.accessor.baml","match":"\\?\\.|\\.|\\$"},"expression-arithmetic-operator":{"name":"keyword.operator.arithmetic.baml","match":"\\+\\+|--|\\+|-|\\*|/|%"},"expression-arrow-operator":{"name":"keyword.operator.arrow.baml","match":"=\u003e|-\u003e"},"expression-bitwise-operator":{"name":"keyword.operator.bitwise.baml","match":"\u0026|\\^|~|\\|"},"expression-comparison-operator":{"name":"keyword.operator.comparison.baml","match":"\u003c=|\u003e=|\u003c|\u003e"},"expression-compound-assignment-operator":{"name":"keyword.operator.assignment.baml","match":"\u003c\u003c=|\u003e\u003e=|\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\^="},"expression-equality-operator":{"name":"keyword.operator.comparison.baml","match":"==|!="},"expression-identifier":{"name":"variable.other.readwrite.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"expression-logical-operator":{"name":"keyword.operator.logical.baml","match":"\u0026\u0026|\\|\\||!"},"expression-nullish-operator":{"name":"keyword.operator.nullish.baml","match":"\\?\\?"},"expression-operator":{"patterns":[{"include":"#expression-arrow-operator"},{"include":"#expression-compound-assignment-operator"},{"include":"#expression-nullish-operator"},{"include":"#expression-logical-operator"},{"include":"#expression-equality-operator"},{"include":"#expression-shift-operator"},{"include":"#expression-comparison-operator"},{"include":"#expression-bitwise-operator"},{"include":"#expression-arithmetic-operator"},{"include":"#assignment-operator"},{"include":"#expression-spread-operator"},{"include":"#expression-accessor-operator"}]},"expression-shift-operator":{"name":"keyword.operator.bitwise.shift.baml","match":"\u003c\u003c|\u003e\u003e"},"expression-spread-operator":{"name":"keyword.operator.spread.baml","match":"\\.\\.\\."},"field":{"name":"meta.field.baml","begin":"(?:^\\s*|(?\u003c=[{,])\\s*)(?!@)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)?","end":"(?=[,}])|$","patterns":[{"include":"#comments"},{"include":"#field-type-arguments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"field-access-expression":{"name":"meta.field-access.baml","match":"([.$])\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"variable.other.readwrite.baml"}}},"field-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#field-type-arguments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"float-literal":{"name":"constant.numeric.float.baml","match":"\\b[0-9]+(?:\\.[0-9]+[eE][+-]?[0-9]+|\\.[0-9]+|[eE][+-]?[0-9]+)"},"for-c-style-let-initializer":{"name":"meta.for.initializer.baml","begin":"(?=(?:let|const)\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#pattern"},{"include":"#let-else-clause"},{"include":"#expression"}]},"for-in-keyword":{"name":"keyword.operator.expression.in.baml","match":"\\bin\\b"},"for-in-pattern":{"name":"meta.pattern.for-in.baml","begin":"(?=(?:let|const)\\b)","end":"(?=\\s+in\\b)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"for-parenthesized-c-style-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()","end":"\\)(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#for-c-style-let-initializer"},{"include":"#semicolon"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"for-parenthesized-in-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(\\()(?=\\s*(?:let|const)\\b(?:(?![=;]).)*\\bin\\b)","end":"\\)(?=\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"punctuation.definition.for-header.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.for-header.end.baml"}}},"for-statement":{"name":"meta.statement.for.baml","begin":"\\b(for)\\b","end":"(?\u003c=\\})(?=\\s*(?:;|$))|(?=;|$)","patterns":[{"include":"#comments"},{"include":"#for-parenthesized-in-header"},{"include":"#for-parenthesized-c-style-header"},{"include":"#for-unparenthesized-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.loop.for.baml"}}},"for-unparenthesized-header":{"name":"meta.for.header.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#for-in-pattern"},{"include":"#for-in-keyword"},{"include":"#condition-expression"}]},"function":{"name":"meta.function.baml","begin":"^\\s*(function)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#function-parameters"},{"include":"#function-return-type"},{"include":"#function-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.baml"},"2":{"name":"entity.name.function.baml"}}},"function-block":{"name":"meta.block.function.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#llm-client-field"},{"include":"#llm-prompt-field"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"function-call-expression":{"name":"meta.function-call.baml","begin":"(?!\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*(?:\\s*\\.\\s*\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)*?\\s*\\.\\s*upcast\\b\\s*\u003c(?:[^(){};\u0026+*/!%^~]|\\([^(){};]*\\))*\u003e\\s*\\()\\b(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\\.)\\s*)?((?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*)*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c(?:[^(){};]|\\([^(){};]*\\))*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#function-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#environment-expression-root"},{"include":"#self-expression-root"},{"include":"#expression-identifier"}]},"2":{"name":"punctuation.accessor.baml"},"3":{"patterns":[{"include":"#accessor-dot"},{"include":"#expression-identifier"}]},"4":{"name":"entity.name.function.baml"}}},"function-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"function-parameters":{"name":"meta.parameters.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#self-parameter"},{"include":"#parameter"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.baml"}}},"function-return-type":{"name":"meta.return-type.baml","begin":"(-\u003e)","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.arrow.baml"}}},"generator":{"name":"meta.generator.baml","begin":"^\\s*(generator)\\b(?:\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*))?\\s*(?=\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.generator.baml"},"2":{"name":"entity.name.generator.baml"}}},"guard-expression":{"patterns":[{"include":"#literal"},{"include":"#array-expression"},{"include":"#guard-lambda-expression"},{"include":"#parenthesized-expression"},{"include":"#if-expression"},{"include":"#match-expression"},{"include":"#spawn-expression"},{"include":"#map-expression"},{"include":"#constructor-expression"},{"include":"#braced-expression"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#is-pattern-expression"},{"include":"#optional-call-expression"},{"include":"#optional-index-expression"},{"include":"#optional-method-call-expression"},{"include":"#optional-field-access-expression"},{"include":"#upcast-expression"},{"include":"#postfix-method-call-expression"},{"include":"#field-access-expression"},{"include":"#tuple-field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"guard-lambda-expression":{"name":"meta.expression.lambda.baml","begin":"(?=\\((?:[^()]|\\([^()]*\\))*\\)\\s*-\u003e)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#function-parameters"},{"include":"#lambda-arrow"},{"include":"#lambda-return-type"},{"include":"#lambda-throws-clause"},{"include":"#code-block"}]},"if-condition":{"name":"meta.if.condition.baml","begin":"\\G(?!\\s*else\\b)\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"if-else-clause":{"name":"meta.else.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(else)\\b","end":"(?!\\s*else\\b)(?:(?\u003c=\\})(?=\\s*(?:[,);]|$))|(?=,|\\)|;|$))","patterns":[{"include":"#comments"},{"include":"#if-expression"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"if-expression":{"name":"meta.expression.if.baml","begin":"\\b(if)\\b","end":"(?!\\s*else\\b)(?:(?\u003c=\\})(?=\\s*(?:[,);]|$))|(?=,|\\)|;|$))","patterns":[{"include":"#comments"},{"include":"#if-let-pattern"},{"include":"#assignment-operator"},{"include":"#if-condition"},{"include":"#code-block"},{"include":"#if-else-clause"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"if-let-pattern":{"name":"meta.pattern.if-let.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"implements-block":{"name":"meta.implements.baml","begin":"^\\s*(implements|implement)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#implements-target"},{"include":"#implements-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.implements.baml"}}},"implements-body":{"name":"meta.implements.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#associated-type"},{"include":"#interface-field-link"},{"include":"#field"},{"include":"#semicolon"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"implements-for":{"name":"meta.implements-for.baml","begin":"^\\s*(implements|implement)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#implements-for-interface-target"},{"include":"#implements-for-keyword"},{"include":"#implements-for-target"},{"include":"#implements-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.implements.baml"}}},"implements-for-interface-target":{"name":"meta.implements.target.baml","begin":"\\G\\s*","end":"(?=\\s+\\bfor\\b)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"implements-for-keyword":{"name":"keyword.declaration.for.baml","match":"\\bfor\\b"},"implements-for-target":{"name":"meta.implements.for-target.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"implements-target":{"name":"meta.implements.target.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"integer-literal":{"name":"constant.numeric.integer.baml","match":"\\b[0-9]+\\b"},"interface":{"name":"meta.interface.baml","begin":"^\\s*(interface)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#interface-requires-clause"},{"include":"#interface-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.interface.baml"},"2":{"name":"entity.name.type.interface.baml"}}},"interface-body":{"name":"meta.interface.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#interface-method-signature"},{"include":"#function"},{"include":"#associated-type"},{"include":"#field"},{"include":"#semicolon"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"interface-field-link":{"name":"meta.interface-field-link.baml","begin":"(?:^\\s*|(?\u003c=\\{)\\s*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s+(as)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"variable.other.property.interface.baml"},"2":{"name":"keyword.operator.expression.as.baml"},"3":{"name":"variable.other.property.baml"}}},"interface-method-return-type":{"name":"meta.return-type.baml","begin":"(-\u003e)","end":"(?=;|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.arrow.baml"}}},"interface-method-signature":{"name":"meta.function.signature.baml","begin":"^\\s*(function)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=[^{\\r\\n]*(?:\\r?\\n|;|\\}))","end":"(?\u003c=;)|(?=\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#declaration-type-parameters"},{"include":"#function-parameters"},{"include":"#interface-method-return-type"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.baml"},"2":{"name":"entity.name.function.baml"}}},"interface-requires-clause":{"name":"meta.interface.requires.baml","begin":"\\b(requires)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.declaration.requires.baml"}}},"is-pattern-expression":{"name":"meta.expression.is.baml","begin":"\\b(is)\\b","end":"(?=\\s*(?:\u0026\u0026|\\|\\||=\u003e|[,);\\]}]|$))","patterns":[{"include":"#comments"},{"include":"#pattern"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.is.baml"}}},"lambda-arrow":{"name":"keyword.operator.arrow.baml","match":"-\u003e|=\u003e"},"lambda-expression":{"name":"meta.expression.lambda.baml","begin":"(?=\\((?:[^()]|\\([^()]*\\))*\\)\\s*(?:-\u003e|=\u003e))","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#function-parameters"},{"include":"#lambda-arrow"},{"include":"#lambda-return-type"},{"include":"#lambda-throws-clause"},{"include":"#code-block"}]},"lambda-return-type":{"name":"meta.return-type.lambda.baml","begin":"(?\u003c=-\u003e|=\u003e)\\s*(?!throws\\b)(?=[^\\s\\{])","end":"(?=\\s*(?:throws\\b|\\{))","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"lambda-throws-clause":{"name":"meta.throws.lambda.baml","begin":"\\b(throws)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.throws.baml"}}},"let-else-clause":{"name":"meta.statement.let.else.baml","begin":"\\b(else)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.else.baml"}}},"let-statement":{"name":"meta.statement.let.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(?=(?:let|const)\\b)","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#let-statement-pattern"},{"include":"#assignment-operator"},{"include":"#let-else-clause"},{"include":"#expression"}]},"let-statement-pattern":{"name":"meta.pattern.statement.baml","begin":"\\G\\s*","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"let-type-bound-intersection":{"name":"keyword.operator.type.baml","match":"\u0026"},"let-type-bounds":{"name":"meta.type-parameter.bounds.baml","begin":"\\b(extends)\\b","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#let-type-bound-intersection"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.extends.baml"}}},"let-type-statement":{"name":"meta.statement.let-type.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(let)\\s+(type)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#let-type-bounds"},{"include":"#assignment-operator"},{"include":"#let-else-clause"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"keyword.declaration.type-binding.baml"},"3":{"name":"entity.name.type.parameter.baml"}}},"line-comment":{"name":"comment.line.double-slash.baml","match":"//.*$"},"literal":{"patterns":[{"include":"#byte-string-literal"},{"include":"#raw-quoted-string-literal"},{"include":"#type-literal"}]},"llm-client-field":{"name":"meta.field.llm.client.baml","begin":"^\\s*(client)\\b\\s*(:)?(?!\\s*\\.)","end":"$","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.other.llm.client.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"llm-prompt-field":{"name":"meta.field.llm.prompt.baml","begin":"^\\s*(prompt)\\b\\s*(:)?","end":"$","patterns":[{"include":"#comments"},{"include":"#template-string-body"},{"include":"#backtick-string"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.other.llm.prompt.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"map-expression":{"name":"meta.expression.map.baml","begin":"\\bmap\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#braced-expression"}],"beginCaptures":{"0":{"name":"support.type.primitive.baml"}}},"match-arm":{"name":"meta.match.arm.baml","begin":"(?=\\S)(?![,}])","end":"(?=,|\\r?\\n|\\})","patterns":[{"include":"#comments"},{"include":"#match-arm-pattern"},{"include":"#match-arm-guard"},{"include":"#match-arm-arrow"},{"include":"#expression"}]},"match-arm-arrow":{"name":"keyword.operator.arrow.baml","match":"=\u003e"},"match-arm-guard":{"name":"meta.match.guard.baml","begin":"\\b(if)\\b","end":"(?=\\s*=\u003e)","patterns":[{"include":"#comments"},{"include":"#guard-expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.baml"}}},"match-arm-pattern":{"name":"meta.pattern.match.baml","begin":"\\G\\s*","end":"(?=\\s*(?:if\\b|=\u003e))","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"match-block":{"name":"meta.block.match.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#match-arm"},{"include":"#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"match-expression":{"name":"meta.expression.match.baml","begin":"\\b(match)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#match-scrutinee-group"},{"include":"#match-block"},{"include":"#match-scrutinee"}],"beginCaptures":{"1":{"name":"keyword.control.match.baml"}}},"match-scrutinee":{"name":"meta.match.scrutinee.baml","begin":"(?=[^\\s\\{])","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#literal"},{"include":"#array-expression"},{"include":"#spawn-expression"},{"include":"#await-expression"},{"include":"#throw-expression"},{"include":"#catch-expression"},{"include":"#tuple-field-access-expression"},{"include":"#expression-operator"},{"include":"#function-call-expression"},{"include":"#dotted-expression"}]},"match-scrutinee-ascription":{"name":"meta.type.annotation.baml","begin":":","end":"(?=\\))","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.baml"}}},"match-scrutinee-group":{"name":"meta.match.scrutinee.group.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#match-scrutinee-ascription"},{"include":"#expression"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.baml"}}},"member-fragment":{"name":"meta.member-fragment.baml","begin":"^\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\\?)?\\s*(:)","end":"$","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"variable.other.property.baml"},"2":{"name":"keyword.operator.optional.baml"},"3":{"name":"punctuation.separator.colon.baml"}}},"namespace-root":{"name":"support.other.namespace.baml","match":"\\b(?:root|baml)\\b"},"namespace-segment":{"name":"entity.name.namespace.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"null-literal":{"name":"constant.language.null.baml","match":"\\bnull\\b"},"numeric-literal":{"patterns":[{"include":"#bigint-literal"},{"include":"#float-literal"},{"include":"#integer-literal"}]},"optional-call-expression":{"name":"meta.function-call.optional.baml","begin":"(\\?\\.)\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"}}},"optional-field-access-expression":{"name":"meta.field-access.optional.baml","match":"(\\?\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"variable.other.readwrite.baml"}}},"optional-index-arguments":{"name":"meta.index.arguments.baml","begin":"\\[","end":"\\]","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.end.baml"}}},"optional-index-expression":{"name":"meta.index.optional.baml","begin":"(\\?\\.)\\s*(?=\\[)","end":"(?\u003c=\\])","patterns":[{"include":"#comments"},{"include":"#optional-index-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"}}},"optional-method-call-expression":{"name":"meta.function-call.optional.member.baml","begin":"(\\?\\.)\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c(?:[^(){};]|\\([^(){};]*\\))*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#optional-method-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"entity.name.function.baml"}}},"optional-method-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"optional-operator":{"name":"keyword.operator.optional.baml","match":"\\?"},"parameter":{"name":"meta.parameter.baml","begin":"\\b(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(:)?","end":"(?=,|\\))","patterns":[{"include":"#comments"},{"include":"#parameter-type-parens"},{"include":"#parameter-type-arguments"},{"include":"#parameter-default"},{"include":"#type-expression"}],"beginCaptures":{"1":{"name":"variable.parameter.baml"},"2":{"name":"punctuation.separator.colon.baml"}}},"parameter-default":{"name":"meta.parameter.default.baml","begin":"=","end":"(?=,|\\))","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.baml"}}},"parameter-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"parameter-type-parens":{"name":"meta.group.type.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type.end.baml"}}},"parenthesized-expression":{"name":"meta.group.expression.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.baml"}}},"pattern":{"patterns":[{"include":"#comments"},{"include":"#wildcard-binding-pattern"},{"include":"#typed-binding-pattern"},{"include":"#class-destructure-pattern"},{"include":"#array-destructure-pattern"},{"include":"#tuple-destructure-pattern"},{"include":"#bare-binding-pattern"},{"include":"#wildcard-pattern"},{"include":"#type-expression"}]},"postfix-method-call-expression":{"name":"meta.function-call.member.baml","begin":"([.$])\\s*(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*(?:\u003c(?:[^(){};]|\\([^(){};]*\\))*\u003e\\s*)?\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#postfix-method-call-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"entity.name.function.baml"}}},"postfix-method-call-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e(?=\\s*\\()","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"primitive-type":{"name":"support.type.primitive.baml","match":"\\b(?:int|float|bigint|string|bool|image|audio|map|json|unknown|never|Self)\\b"},"raw-quoted-string-escaped-char":{"match":"\\\\."},"raw-quoted-string-literal":{"name":"string.quoted.raw.double.baml","begin":"\\b(r)(\")","end":"\"","patterns":[{"include":"#raw-quoted-string-escaped-char"}],"beginCaptures":{"1":{"name":"storage.type.string.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"raw-string":{"patterns":[{"include":"#raw-string-8"},{"include":"#raw-string-7"},{"include":"#raw-string-6"},{"include":"#raw-string-5"},{"include":"#raw-string-4"},{"include":"#raw-string-3"},{"include":"#raw-string-2"},{"include":"#raw-string-1"}]},"raw-string-1":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{1})\"","end":"\"(#{1})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-2":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{2})\"","end":"\"(#{2})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-3":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{3})\"","end":"\"(#{3})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-4":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{4})\"","end":"\"(#{4})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-5":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{5})\"","end":"\"(#{5})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-6":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{6})\"","end":"\"(#{6})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-7":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{7})\"","end":"\"(#{7})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"raw-string-8":{"name":"string.quoted.raw.baml","begin":"(?\u003c!#)(#{8})\"","end":"\"(#{8})","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"}}},"retry-policy":{"name":"meta.retry-policy.baml","begin":"^\\s*(retry_policy)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b(?=\\s*\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#config-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.retry-policy.baml"},"2":{"name":"entity.name.retry-policy.baml"}}},"return-statement":{"name":"meta.statement.return.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(return)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.flow.return.baml"}}},"self-expression-root":{"name":"variable.language.self.baml","match":"\\bself\\b"},"self-parameter":{"name":"meta.parameter.baml","begin":"\\b(self)\\b(?=\\s*(?:,|\\)))","end":"(?=\\s*(?:,|\\)))","patterns":[{"include":"#comments"}],"beginCaptures":{"1":{"name":"variable.language.self.baml"}}},"semicolon":{"name":"punctuation.terminator.statement.baml","match":";"},"spawn-expression":{"name":"meta.expression.spawn.baml","begin":"\\b(spawn)\\b","end":"(?\u003c=\\})|(?=,|;|$)","patterns":[{"include":"#comments"},{"include":"#spawn-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.spawn.baml"}}},"spawn-header":{"name":"meta.spawn.header.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#spawn-name"},{"include":"#spawn-with-clause"}]},"spawn-name":{"name":"meta.spawn.name.baml","begin":"\\G\\s*(?!with\\b)(?=[^\\{\\r\\n])","end":"(?=\\s+with\\b|\\s*\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"spawn-with-clause":{"name":"meta.spawn.modifiers.baml","begin":"\\b(with)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.with.baml"}}},"string-escape":{"patterns":[{"include":"#string-escape-control"},{"include":"#string-escape-quoted-delimiter"},{"include":"#backtick-string-escape-delimiter"},{"include":"#string-escape-hex"},{"include":"#string-escape-unicode"},{"include":"#string-escape-invalid"}]},"string-escape-control":{"name":"constant.character.escape.control.baml","match":"\\\\[ntr0bf]"},"string-escape-hex":{"name":"constant.character.escape.hex.baml","match":"\\\\x[0-7][0-9A-Fa-f]"},"string-escape-invalid":{"name":"invalid.illegal.escape.baml","match":"\\\\(?:x[0-9A-Fa-f]{0,2}|u(?:\\{[^}\"\\\\]*\\}?|[0-9A-Fa-f]{0,3})|.|$)"},"string-escape-quoted-delimiter":{"name":"constant.character.escape.delimiter.baml","match":"\\\\[\"\\\\'/]"},"string-escape-unicode":{"name":"constant.character.escape.unicode.baml","match":"\\\\u(?:[0-9A-Fa-f]{4}|\\{[0-9A-Fa-f](?:_?[0-9A-Fa-f])*\\})"},"string-literal":{"name":"string.quoted.double.baml","begin":"\"","end":"\"","patterns":[{"include":"#string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"template-comment":{"name":"comment.block.template.baml","begin":"\\{#","end":"#\\}","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.baml"}}},"template-control":{"name":"meta.template.control.baml","begin":"\\{%","end":"%\\}","patterns":[{"include":"#comments"},{"include":"#template-keyword"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.template.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.template.end.baml"}}},"template-interpolation":{"name":"meta.template.interpolation.baml","begin":"\\{\\{","end":"\\}\\}","patterns":[{"include":"#comments"},{"include":"#template-keyword"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.interpolation.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.section.interpolation.end.baml"}}},"template-keyword":{"name":"keyword.control.template.baml","match":"\\b(?:for|endfor|if|elif|else|endif|in|set|filter|endfilter|macro|endmacro|raw|endraw)\\b"},"template-quoted-string-body":{"name":"string.quoted.double.template.baml","begin":"\"","end":"\"","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"},{"include":"#string-escape"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-1":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{1})(\")","end":"(\")(#{1})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-2":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{2})(\")","end":"(\")(#{2})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-3":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{3})(\")","end":"(\")(#{3})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-4":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{4})(\")","end":"(\")(#{4})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-5":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{5})(\")","end":"(\")(#{5})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-6":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{6})(\")","end":"(\")(#{6})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-7":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{7})(\")","end":"(\")(#{7})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-raw-string-body-8":{"name":"string.quoted.raw.template.baml","begin":"(?\u003c!#)(#{8})(\")","end":"(\")(#{8})","patterns":[{"include":"#template-comment"},{"include":"#template-control"},{"include":"#template-interpolation"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.baml"},"2":{"name":"punctuation.definition.string.begin.baml"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.baml"},"2":{"name":"punctuation.definition.string.end.baml"}}},"template-string":{"name":"meta.template-string.baml","begin":"^\\s*(template_string)\\b","end":"(?:(?\u003c=#)|(?\u003c=\"))(?=\\s*(?:\\r?\\n|$))|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#template-string-name"},{"include":"#function-parameters"},{"include":"#template-string-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.template-string.baml"}}},"template-string-body":{"patterns":[{"include":"#template-raw-string-body-8"},{"include":"#template-raw-string-body-7"},{"include":"#template-raw-string-body-6"},{"include":"#template-raw-string-body-5"},{"include":"#template-raw-string-body-4"},{"include":"#template-raw-string-body-3"},{"include":"#template-raw-string-body-2"},{"include":"#template-raw-string-body-1"},{"include":"#template-quoted-string-body"}]},"template-string-name":{"name":"entity.name.function.template-string.baml","match":"\\b\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\b"},"test":{"name":"meta.test.baml","begin":"^\\s*(test)\\b(?!(?:[^\\S\\r\\n]+\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*[^\\S\\r\\n]*\\{[^\\S\\r\\n]*(?:functions|type_builder)\\b))","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#test-header"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.declaration.test.baml"}}},"test-header":{"name":"meta.test.header.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#test-with-keyword"},{"include":"#condition-expression"}]},"test-with-keyword":{"name":"keyword.operator.expression.with.baml","match":"\\bwith\\b"},"testset":{"name":"meta.testset.baml","begin":"^\\s*(testset)\\b","end":"(?\u003c=\\})","patterns":[{"include":"#comments"},{"include":"#test-header"},{"include":"#testset-body"}],"beginCaptures":{"1":{"name":"keyword.declaration.testset.baml"}}},"testset-body":{"name":"meta.testset.body.baml","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#block-contents"}],"beginCaptures":{"0":{"name":"punctuation.definition.block.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.block.end.baml"}}},"throw-expression":{"name":"keyword.control.flow.throw.baml","match":"\\bthrow\\b"},"tuple-destructure-pattern":{"name":"meta.pattern.destructure.tuple.baml","begin":"(?:\\b((?:let|const))\\b\\s*)?(\\()(?![^)\"'\\x60\\r\\n]*\\bas\\b[^)\\r\\n]*\\)\\s*\\.)(?!(?:[^()]|\\([^()]*\\))*\\)\\s*(?:-\u003e|[\\[?]))","end":"\\)","patterns":[{"include":"#comments"},{"include":"#pattern"},{"include":"#comma"}],"beginCaptures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"punctuation.definition.group.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.baml"}}},"tuple-field-access-expression":{"name":"meta.field-access.tuple.baml","match":"(?\u003c!\\.)(\\?\\.|\\.)\\s*([0-9]+)\\b","captures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"variable.other.property.baml"}}},"type-alias":{"name":"meta.type-alias.baml","begin":"^\\s*(type)\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(=)","end":"(?\u003c=;)|(?=^\\s*(?:client|retry_policy|generator|template_string|class|enum|interface|implements|implement|function|testset|test|type)\\b)","patterns":[{"include":"#comments"},{"include":"#type-expression"},{"include":"#semicolon"}],"beginCaptures":{"1":{"name":"keyword.declaration.type-alias.baml"},"2":{"name":"entity.name.type.alias.baml"},"3":{"name":"keyword.operator.assignment.baml"}}},"type-arrow-operator":{"name":"keyword.operator.arrow.baml","match":"-\u003e"},"type-as-operator":{"name":"keyword.operator.expression.as.baml","match":"\\bas\\b"},"type-expression":{"patterns":[{"include":"#comments"},{"include":"#primitive-type"},{"include":"#type-literal"},{"include":"#type-arrow-operator"},{"include":"#type-throws-operator"},{"include":"#associated-type-projection"},{"include":"#type-reference"},{"include":"#bare-attribute"},{"include":"#attribute"},{"include":"#type-as-operator"},{"include":"#assignment-operator"},{"include":"#optional-operator"},{"include":"#union-operator"},{"include":"#type-group"},{"include":"#type-punctuation"},{"include":"#colon-separator"}]},"type-fragment":{"name":"meta.type-fragment.baml","begin":"^\\s*(?=\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)(?=[^:=;{}()#\"'\\r\\n]*$)(?=[^\u003c.\\[?|\\r\\n]*[\u003c.\\[?|]|(?:(?:int|float|bigint|string|bool|image|audio|map|json|unknown|never|Self))\\s*$)","end":"$","patterns":[{"include":"#comments"},{"include":"#type-expression"}]},"type-group":{"name":"meta.group.type.baml","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type.end.baml"}}},"type-literal":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"},{"include":"#raw-string"},{"include":"#backtick-string"}]},"type-punctuation":{"name":"punctuation.definition.type.baml","match":"[\\[\\]\u003c\u003e,()]"},"type-reference":{"name":"meta.type-reference.baml","match":"\\b(?:(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\s*(\\.)\\s*)?((?:\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*\\s*\\.\\s*)*)(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b","captures":{"1":{"patterns":[{"include":"#namespace-root"},{"include":"#namespace-segment"}]},"2":{"name":"punctuation.accessor.baml"},"3":{"patterns":[{"include":"#namespace-segment"},{"include":"#accessor-dot"}]},"4":{"name":"entity.name.type.baml"}}},"type-throws-operator":{"name":"keyword.operator.expression.throws.baml","match":"\\bthrows\\b"},"typed-binding-pattern":{"name":"meta.pattern.binding.baml","match":"\\b((?:let|const))\\s+(\\$?[A-Za-z_][A-Za-z0-9_-]*(?:\\$[A-Za-z_][A-Za-z0-9_-]*)*)\\b\\s*(:)","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.other.binding.baml"},"3":{"name":"punctuation.separator.colon.baml"}}},"union-operator":{"name":"keyword.operator.type.baml","match":"\\|"},"upcast-expression":{"name":"meta.expression.upcast.baml","begin":"(\\.)\\s*(upcast)\\b(?=\\s*\u003c(?:[^(){};\u0026+*/!%^~]|\\([^(){};]*\\))*\u003e\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"include":"#upcast-type-arguments"},{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"punctuation.accessor.baml"},"2":{"name":"keyword.operator.expression.upcast.baml"}}},"upcast-type-arguments":{"name":"meta.type-arguments.baml","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"include":"#type-expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.type-arguments.begin.baml"}},"endCaptures":{"0":{"name":"punctuation.definition.type-arguments.end.baml"}}},"watch-statement":{"name":"meta.statement.watch.baml","begin":"(?:^\\s*|\\G\\s*|(?\u003c=[{;}])\\s*)(watch)\\b","end":"(?=[;}]|$)","patterns":[{"include":"#comments"},{"include":"#watch-statement-pattern"},{"include":"#assignment-operator"},{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.control.watch.baml"}}},"watch-statement-pattern":{"name":"meta.pattern.watch.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"while-condition":{"name":"meta.while.condition.baml","begin":"\\G\\s*","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#condition-expression"}]},"while-let-pattern":{"name":"meta.pattern.while-let.baml","begin":"\\G\\s*(?=(?:let|const)\\b)","end":"(?=\\s*=)","patterns":[{"include":"#comments"},{"include":"#pattern"}]},"while-statement":{"name":"meta.statement.while.baml","begin":"\\b(while)\\b","end":"(?\u003c=\\})(?=\\s*(?:;|$))|(?=;|$)","patterns":[{"include":"#comments"},{"include":"#while-let-pattern"},{"include":"#assignment-operator"},{"include":"#while-condition"},{"include":"#code-block"}],"beginCaptures":{"1":{"name":"keyword.control.loop.while.baml"}}},"wildcard-binding-pattern":{"name":"meta.pattern.wildcard.baml","match":"\\b((?:let|const))\\s+(_)\\b","captures":{"1":{"name":"keyword.declaration.binding.baml"},"2":{"name":"variable.language.wildcard.baml"}}},"wildcard-pattern":{"name":"variable.language.wildcard.baml","match":"\\b_\\b"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"BBC BASIC","scopeName":"source.bbcbasic","patterns":[{"include":"#line-number"},{"include":"#cli-command"},{"name":"punctuation.separator.statement.bbcbasic","match":":+"},{"include":"#assembler"},{"include":"#comment"},{"include":"#procedure-definition"},{"include":"#statement"},{"include":"#expression"},{"name":"punctuation.separator.bbcbasic","match":"[,;'~]"}],"repository":{"assembler":{"name":"meta.assembler.bbcbasic","begin":"\\[","end":"\\]","patterns":[{"name":"punctuation.separator.statement.bbcbasic","match":":"},{"name":"entity.name.label.bbcbasic","match":"\\.[A-Za-z_`][\\w`]*%?"},{"name":"comment.line.assembler.bbcbasic","match":"(?:REM|;)[^:]*"},{"begin":"[^\\s:]+","end":"(?=:)|$","patterns":[{"name":"comment.line.assembler.bbcbasic","match":"(?:REM|;)[^:]*"},{"include":"#expression"},{"name":"punctuation.separator.bbcbasic","match":"[!#,@\\[\\]^{}]"}],"beginCaptures":{"0":{"name":"keyword.other.mnemonic.bbcbasic"}}}],"beginCaptures":{"0":{"name":"keyword.control.assembler.begin.bbcbasic"}},"endCaptures":{"0":{"name":"keyword.control.assembler.end.bbcbasic"}}},"cli-command":{"patterns":[{"match":"^\\s*(?:(\\d+)\\s*)?(\\*)(.*)$","captures":{"1":{"name":"constant.numeric.line-number.bbcbasic"},"2":{"name":"keyword.other.cli.bbcbasic"},"3":{"name":"meta.cli-command.bbcbasic"}}},{"match":"(?\u003c=:)\\s*(\\*)(.*)$","captures":{"1":{"name":"keyword.other.cli.bbcbasic"},"2":{"name":"meta.cli-command.bbcbasic"}}},{"match":"(ELSE|OTHERWISE|REPEAT|THEN)\\s*(\\*)(.*)$","captures":{"1":{"name":"keyword.control.bbcbasic"},"2":{"name":"keyword.other.cli.bbcbasic"},"3":{"name":"meta.cli-command.bbcbasic"}}}]},"comment":{"patterns":[{"name":"comment.line.rem.filename.bbcbasic","match":"REM *\u003e.*$"},{"name":"comment.line.rem.bbcbasic","match":"REM.*$"}]},"expression":{"patterns":[{"match":"(FN|PROC)([\\w`]+)","captures":{"1":{"name":"keyword.other.bbcbasic"},"2":{"name":"entity.name.function.bbcbasic"}}},{"name":"support.function.bbcbasic","match":"ABS|ACS|ADVAL|ASC|ASN|ATN|BEATS|BEAT|BGET#|CHR\\$|COS|COUNT|DEG|DIM|EOF#|ERL|ERR|EVAL|EXP|EXT#|GET\\$#|GET\\$|GET|HIMEM|INKEY\\$|INKEY|INSTR|INT|LEFT\\$|LEN|LN|LOG|LOMEM|MID\\$|OPENIN|OPENOUT|OPENUP|PAGE|PI|POINT|POS|PTR#|RAD|REPORT\\$|RIGHT\\$|RND|SGN|SIN|SPC|SQR|STR\\$|STRING\\$|SUMLEN|SUM|TAB|TAN|TEMPO|TIME\\$|TIME|TOP|USR|VAL|VPOS"},{"name":"keyword.operator.word.bbcbasic","match":"AND|DIV|EOR|MOD|NOT|OR"},{"name":"keyword.operator.bbcbasic","match":"\u003c\u003c|\u003c=|\u003c\u003e|\u003c|\u003e=|\u003e\u003e\u003e|\u003e\u003e|\u003e|[-!$()*+/=?^|]"},{"name":"constant.language.bbcbasic","match":"FALSE|TRUE"},{"name":"string.quoted.double.bbcbasic","match":"\"(?:[^\"]|\"\")*\""},{"name":"variable.other.bbcbasic","match":"[A-Za-z_`][\\w`]*[$%\u0026]?"},{"name":"variable.language.bbcbasic","match":"@%"},{"name":"constant.numeric.binary.bbcbasic","match":"%[01]+"},{"name":"constant.numeric.hex.bbcbasic","match":"\u0026[0-9A-Fa-f]+"},{"name":"constant.numeric.bbcbasic","match":"(?:\\d+\\.?\\d*|\\.\\d+)(?:E[-+]?\\d+)?"}]},"line-number":{"match":"^\\s*(\\d+)(?!\\s*\\*)","captures":{"1":{"name":"constant.numeric.line-number.bbcbasic"}}},"procedure-definition":{"match":"(DEF *(?:FN|PROC))([\\w`]+)","captures":{"1":{"name":"storage.type.function.bbcbasic"},"2":{"name":"entity.name.function.bbcbasic"}}},"statement":{"name":"keyword.control.bbcbasic","match":"CIRCLE(?: *FILL)?|DRAW(?: *BY)?|DIM(?!\\()|ELLIPSE(?: *FILL)?|ERROR(?: *EXT)?|FILL(?: *BY)?|INPUT(?:#| *LINE)?|LINE(?: *INPUT)?|LOCAL(?: *DATA| *ERROR)?|MOUSE(?: *COLOUR| *OFF| *ON| *RECTANGLE| *STEP| *TO)?|MOVE(?: *BY)?|ON(?! *ERROR)|ON *ERROR *(?:LOCAL|OFF)?|POINT(?: *BY)?(?!\\()|RECTANGLE(?: *FILL)?|RESTORE(?: *DATA| *ERROR)?|TRACE(?: *CLOSE| *ENDPROC| *OFF| *STEP(?: *FN| *ON| *PROC)?| *TO)?|BEATS|BPUT#|CALL|CASE|CHAIN|CLEAR|CLG|CLOSE#|CLS|COLOR|COLOUR|DATA|ELSE|ENDCASE|ENDIF|ENDPROC|ENDWHILE|END|ENVELOPE|FOR|GCOL|GOSUB|GOTO|IF|INSTALL|LET|LIBRARY|MODE|NEXT|OFF|OF|ON|ORIGIN|OSCLI|OTHERWISE|OVERLAY|PLOT|PRINT#|PRINT|QUIT|READ|REPEAT|REPORT|RETURN|SOUND|STEP|STEREO|STOP|SWAP|SYS|THEN|TINT|TO(?!P)|VDU|VOICES|VOICE|UNTIL|WAIT|WHEN|WHILE|WIDTH"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Bend","scopeName":"source.bend","patterns":[{"name":"comment.line.number-sign.bend","match":"#.*$"},{"name":"string.quoted.double.bend","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.bend","match":"\\\\."}]},{"name":"string.quoted.single.bend","match":"'(?:\\\\.|[^'\\\\])'"},{"match":"\\b(def|law)\\s+([A-Za-z_][A-Za-z0-9_.]*)","captures":{"1":{"name":"keyword.declaration.bend"},"2":{"name":"entity.name.function.bend"}}},{"match":"\\b(type|object)\\s+([A-Za-z_][A-Za-z0-9_]*)","captures":{"1":{"name":"keyword.declaration.bend"},"2":{"name":"entity.name.type.bend"}}},{"name":"storage.modifier.bend","match":"@unsafe\\b"},{"name":"keyword.control.bend","match":"\\b(?:as|ask|bend|bind|case|def|do|else|exs|fold|for|fork|if|import|in|is|lambda|law|let|match|open|return|switch|type|use|when|where|with)\\b"},{"name":"storage.type.bend","match":"\\b(?:Type|Data|Kind|Quant)\\b"},{"name":"constant.numeric.bend","match":"\\b(?:0[xX][0-9a-fA-F_]+|0[bB][01_]+|[0-9][0-9_]*(?:\\.[0-9][0-9_]*)?(?:[eE][+-]?[0-9][0-9_]*)?(?:[ \\t]*n\\b)?)"},{"name":"variable.other.hole.bend","match":"\\?[A-Za-z_][A-Za-z0-9_]*"},{"name":"support.type.bend","match":"\\b[A-Z][A-Za-z0-9_]*\\b"},{"name":"keyword.operator.bend","match":"==|!=|\u003c=|\u003e=|-\u003e|=\u003e|\u003c-|\u003c\u0026\u003e|\\+\\+|\u003c\u003e|[-+*/%\u003c\u003e=\u0026|!@^~\\\\λ]"}]}
|