@shikijs/langs-precompiled 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +15 -0
- package/dist/1c-query.d.mts +3 -0
- package/dist/1c-query.mjs +2 -0
- package/dist/1c.d.mts +3 -0
- package/dist/1c.mjs +2 -0
- package/dist/abap.d.mts +3 -0
- package/dist/abap.mjs +5 -0
- package/dist/actionscript-3.d.mts +3 -0
- package/dist/actionscript-3.mjs +5 -0
- package/dist/ada.d.mts +3 -0
- package/dist/ada.mjs +5 -0
- package/dist/adoc.d.mts +3 -0
- package/dist/adoc.mjs +2 -0
- package/dist/angular-expression.d.mts +3 -0
- package/dist/angular-expression.mjs +5 -0
- package/dist/angular-html.d.mts +3 -0
- package/dist/angular-html.mjs +16 -0
- package/dist/angular-inline-style.d.mts +3 -0
- package/dist/angular-inline-style.mjs +8 -0
- package/dist/angular-inline-template.d.mts +3 -0
- package/dist/angular-inline-template.mjs +10 -0
- package/dist/angular-let-declaration.d.mts +3 -0
- package/dist/angular-let-declaration.mjs +8 -0
- package/dist/angular-template-blocks.d.mts +3 -0
- package/dist/angular-template-blocks.mjs +10 -0
- package/dist/angular-template.d.mts +3 -0
- package/dist/angular-template.mjs +8 -0
- package/dist/angular-ts.d.mts +3 -0
- package/dist/angular-ts.mjs +19 -0
- package/dist/apache.d.mts +3 -0
- package/dist/apache.mjs +5 -0
- package/dist/apex.d.mts +3 -0
- package/dist/apex.mjs +7 -0
- package/dist/apl.d.mts +3 -0
- package/dist/apl.mjs +17 -0
- package/dist/applescript.d.mts +3 -0
- package/dist/applescript.mjs +7 -0
- package/dist/ara.d.mts +3 -0
- package/dist/ara.mjs +7 -0
- package/dist/asciidoc.d.mts +3 -0
- package/dist/asciidoc.mjs +7 -0
- package/dist/asm.d.mts +3 -0
- package/dist/asm.mjs +7 -0
- package/dist/astro.d.mts +3 -0
- package/dist/astro.mjs +17 -0
- package/dist/awk.d.mts +3 -0
- package/dist/awk.mjs +5 -0
- package/dist/ballerina.d.mts +3 -0
- package/dist/ballerina.mjs +5 -0
- package/dist/bash.d.mts +3 -0
- package/dist/bash.mjs +2 -0
- package/dist/bat.d.mts +3 -0
- package/dist/bat.mjs +5 -0
- package/dist/batch.d.mts +3 -0
- package/dist/batch.mjs +2 -0
- package/dist/be.d.mts +3 -0
- package/dist/be.mjs +2 -0
- package/dist/beancount.d.mts +3 -0
- package/dist/beancount.mjs +5 -0
- package/dist/berry.d.mts +3 -0
- package/dist/berry.mjs +5 -0
- package/dist/bibtex.d.mts +3 -0
- package/dist/bibtex.mjs +5 -0
- package/dist/bicep.d.mts +3 -0
- package/dist/bicep.mjs +5 -0
- package/dist/blade.d.mts +3 -0
- package/dist/blade.mjs +19 -0
- package/dist/bsl.d.mts +3 -0
- package/dist/bsl.mjs +8 -0
- package/dist/c.d.mts +3 -0
- package/dist/c.mjs +7 -0
- package/dist/cadence.d.mts +3 -0
- package/dist/cadence.mjs +7 -0
- package/dist/cairo.d.mts +3 -0
- package/dist/cairo.mjs +8 -0
- package/dist/cdc.d.mts +3 -0
- package/dist/cdc.mjs +2 -0
- package/dist/clarity.d.mts +3 -0
- package/dist/clarity.mjs +5 -0
- package/dist/clj.d.mts +3 -0
- package/dist/clj.mjs +2 -0
- package/dist/clojure.d.mts +3 -0
- package/dist/clojure.mjs +5 -0
- package/dist/closure-templates.d.mts +3 -0
- package/dist/closure-templates.mjs +2 -0
- package/dist/cmake.d.mts +3 -0
- package/dist/cmake.mjs +5 -0
- package/dist/cmd.d.mts +3 -0
- package/dist/cmd.mjs +2 -0
- package/dist/cobol.d.mts +3 -0
- package/dist/cobol.mjs +10 -0
- package/dist/codeowners.d.mts +3 -0
- package/dist/codeowners.mjs +5 -0
- package/dist/codeql.d.mts +3 -0
- package/dist/codeql.mjs +7 -0
- package/dist/coffee.d.mts +3 -0
- package/dist/coffee.mjs +8 -0
- package/dist/coffeescript.d.mts +3 -0
- package/dist/coffeescript.mjs +2 -0
- package/dist/common-lisp.d.mts +3 -0
- package/dist/common-lisp.mjs +7 -0
- package/dist/console.d.mts +3 -0
- package/dist/console.mjs +2 -0
- package/dist/coq.d.mts +3 -0
- package/dist/coq.mjs +5 -0
- package/dist/cpp-macro.d.mts +3 -0
- package/dist/cpp-macro.mjs +13 -0
- package/dist/cpp.d.mts +3 -0
- package/dist/cpp.mjs +15 -0
- package/dist/cql.d.mts +3 -0
- package/dist/cql.mjs +2 -0
- package/dist/crystal.d.mts +3 -0
- package/dist/crystal.mjs +19 -0
- package/dist/cs.d.mts +3 -0
- package/dist/cs.mjs +2 -0
- package/dist/csharp.d.mts +3 -0
- package/dist/csharp.mjs +3 -0
- package/dist/css.d.mts +3 -0
- package/dist/css.mjs +7 -0
- package/dist/csv.d.mts +3 -0
- package/dist/csv.mjs +5 -0
- package/dist/cue.d.mts +3 -0
- package/dist/cue.mjs +5 -0
- package/dist/cypher.d.mts +3 -0
- package/dist/cypher.mjs +5 -0
- package/dist/d.d.mts +3 -0
- package/dist/d.mjs +5 -0
- package/dist/dart.d.mts +3 -0
- package/dist/dart.mjs +5 -0
- package/dist/dax.d.mts +3 -0
- package/dist/dax.mjs +5 -0
- package/dist/desktop.d.mts +3 -0
- package/dist/desktop.mjs +5 -0
- package/dist/diff.d.mts +3 -0
- package/dist/diff.mjs +5 -0
- package/dist/docker.d.mts +3 -0
- package/dist/docker.mjs +5 -0
- package/dist/dockerfile.d.mts +3 -0
- package/dist/dockerfile.mjs +2 -0
- package/dist/dotenv.d.mts +3 -0
- package/dist/dotenv.mjs +5 -0
- package/dist/dream-maker.d.mts +3 -0
- package/dist/dream-maker.mjs +7 -0
- package/dist/edge.d.mts +3 -0
- package/dist/edge.mjs +12 -0
- package/dist/elisp.d.mts +3 -0
- package/dist/elisp.mjs +2 -0
- package/dist/elixir.d.mts +3 -0
- package/dist/elixir.mjs +9 -0
- package/dist/elm.d.mts +3 -0
- package/dist/elm.mjs +8 -0
- package/dist/emacs-lisp.d.mts +3 -0
- package/dist/emacs-lisp.mjs +7 -0
- package/dist/erb.d.mts +3 -0
- package/dist/erb.mjs +10 -0
- package/dist/erl.d.mts +3 -0
- package/dist/erl.mjs +2 -0
- package/dist/erlang.d.mts +3 -0
- package/dist/erlang.mjs +7 -0
- package/dist/es-tag-css.d.mts +3 -0
- package/dist/es-tag-css.mjs +12 -0
- package/dist/es-tag-glsl.d.mts +3 -0
- package/dist/es-tag-glsl.mjs +12 -0
- package/dist/es-tag-html.d.mts +3 -0
- package/dist/es-tag-html.mjs +12 -0
- package/dist/es-tag-sql.d.mts +3 -0
- package/dist/es-tag-sql.mjs +10 -0
- package/dist/es-tag-xml.d.mts +3 -0
- package/dist/es-tag-xml.mjs +8 -0
- package/dist/f.d.mts +3 -0
- package/dist/f.mjs +2 -0
- package/dist/f03.d.mts +3 -0
- package/dist/f03.mjs +2 -0
- package/dist/f08.d.mts +3 -0
- package/dist/f08.mjs +2 -0
- package/dist/f18.d.mts +3 -0
- package/dist/f18.mjs +2 -0
- package/dist/f77.d.mts +3 -0
- package/dist/f77.mjs +2 -0
- package/dist/f90.d.mts +3 -0
- package/dist/f90.mjs +2 -0
- package/dist/f95.d.mts +3 -0
- package/dist/f95.mjs +2 -0
- package/dist/fennel.d.mts +3 -0
- package/dist/fennel.mjs +5 -0
- package/dist/fish.d.mts +3 -0
- package/dist/fish.mjs +5 -0
- package/dist/fluent.d.mts +3 -0
- package/dist/fluent.mjs +5 -0
- package/dist/for.d.mts +3 -0
- package/dist/for.mjs +2 -0
- package/dist/fortran-fixed-form.d.mts +3 -0
- package/dist/fortran-fixed-form.mjs +8 -0
- package/dist/fortran-free-form.d.mts +3 -0
- package/dist/fortran-free-form.mjs +7 -0
- package/dist/fs.d.mts +3 -0
- package/dist/fs.mjs +2 -0
- package/dist/fsharp.d.mts +3 -0
- package/dist/fsharp.mjs +8 -0
- package/dist/fsl.d.mts +3 -0
- package/dist/fsl.mjs +2 -0
- package/dist/ftl.d.mts +3 -0
- package/dist/ftl.mjs +2 -0
- package/dist/gdresource.d.mts +3 -0
- package/dist/gdresource.mjs +10 -0
- package/dist/gdscript.d.mts +3 -0
- package/dist/gdscript.mjs +5 -0
- package/dist/gdshader.d.mts +3 -0
- package/dist/gdshader.mjs +5 -0
- package/dist/genie.d.mts +3 -0
- package/dist/genie.mjs +5 -0
- package/dist/gherkin.d.mts +3 -0
- package/dist/gherkin.mjs +5 -0
- package/dist/git-commit.d.mts +3 -0
- package/dist/git-commit.mjs +8 -0
- package/dist/git-rebase.d.mts +3 -0
- package/dist/git-rebase.mjs +8 -0
- package/dist/gjs.d.mts +3 -0
- package/dist/gjs.mjs +2 -0
- package/dist/gleam.d.mts +3 -0
- package/dist/gleam.mjs +5 -0
- package/dist/glimmer-js.d.mts +3 -0
- package/dist/glimmer-js.mjs +15 -0
- package/dist/glimmer-ts.d.mts +3 -0
- package/dist/glimmer-ts.mjs +15 -0
- package/dist/glsl.d.mts +3 -0
- package/dist/glsl.mjs +8 -0
- package/dist/gnuplot.d.mts +3 -0
- package/dist/gnuplot.mjs +5 -0
- package/dist/go.d.mts +3 -0
- package/dist/go.mjs +7 -0
- package/dist/gql.d.mts +3 -0
- package/dist/gql.mjs +2 -0
- package/dist/graphql.d.mts +3 -0
- package/dist/graphql.mjs +15 -0
- package/dist/groovy.d.mts +3 -0
- package/dist/groovy.mjs +5 -0
- package/dist/gts.d.mts +3 -0
- package/dist/gts.mjs +2 -0
- package/dist/hack.d.mts +3 -0
- package/dist/hack.mjs +3 -0
- package/dist/haml.d.mts +3 -0
- package/dist/haml.mjs +11 -0
- package/dist/handlebars.d.mts +3 -0
- package/dist/handlebars.mjs +14 -0
- package/dist/haskell.d.mts +3 -0
- package/dist/haskell.mjs +7 -0
- package/dist/haxe.d.mts +3 -0
- package/dist/haxe.mjs +5 -0
- package/dist/hbs.d.mts +3 -0
- package/dist/hbs.mjs +2 -0
- package/dist/hcl.d.mts +3 -0
- package/dist/hcl.mjs +5 -0
- package/dist/hjson.d.mts +3 -0
- package/dist/hjson.mjs +5 -0
- package/dist/hlsl.d.mts +3 -0
- package/dist/hlsl.mjs +5 -0
- package/dist/hs.d.mts +3 -0
- package/dist/hs.mjs +2 -0
- package/dist/html-derivative.d.mts +3 -0
- package/dist/html-derivative.mjs +8 -0
- package/dist/html.d.mts +3 -0
- package/dist/html.mjs +11 -0
- package/dist/http.d.mts +3 -0
- package/dist/http.mjs +14 -0
- package/dist/hxml.d.mts +3 -0
- package/dist/hxml.mjs +8 -0
- package/dist/hy.d.mts +3 -0
- package/dist/hy.mjs +5 -0
- package/dist/imba.d.mts +3 -0
- package/dist/imba.mjs +9 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +239 -0
- package/dist/ini.d.mts +3 -0
- package/dist/ini.mjs +7 -0
- package/dist/jade.d.mts +3 -0
- package/dist/jade.mjs +2 -0
- package/dist/java.d.mts +3 -0
- package/dist/java.mjs +7 -0
- package/dist/javascript.d.mts +3 -0
- package/dist/javascript.mjs +7 -0
- package/dist/jinja-html.d.mts +3 -0
- package/dist/jinja-html.mjs +8 -0
- package/dist/jinja.d.mts +3 -0
- package/dist/jinja.mjs +8 -0
- package/dist/jison.d.mts +3 -0
- package/dist/jison.mjs +8 -0
- package/dist/jl.d.mts +3 -0
- package/dist/jl.mjs +2 -0
- package/dist/js.d.mts +3 -0
- package/dist/js.mjs +2 -0
- package/dist/json.d.mts +3 -0
- package/dist/json.mjs +5 -0
- package/dist/json5.d.mts +3 -0
- package/dist/json5.mjs +5 -0
- package/dist/jsonc.d.mts +3 -0
- package/dist/jsonc.mjs +5 -0
- package/dist/jsonl.d.mts +3 -0
- package/dist/jsonl.mjs +5 -0
- package/dist/jsonnet.d.mts +3 -0
- package/dist/jsonnet.mjs +5 -0
- package/dist/jssm.d.mts +3 -0
- package/dist/jssm.mjs +5 -0
- package/dist/jsx.d.mts +3 -0
- package/dist/jsx.mjs +7 -0
- package/dist/julia.d.mts +3 -0
- package/dist/julia.mjs +17 -0
- package/dist/kotlin.d.mts +3 -0
- package/dist/kotlin.mjs +7 -0
- package/dist/kql.d.mts +3 -0
- package/dist/kql.mjs +2 -0
- package/dist/kt.d.mts +3 -0
- package/dist/kt.mjs +2 -0
- package/dist/kts.d.mts +3 -0
- package/dist/kts.mjs +2 -0
- package/dist/kusto.d.mts +3 -0
- package/dist/kusto.mjs +7 -0
- package/dist/latex.d.mts +3 -0
- package/dist/latex.mjs +8 -0
- package/dist/lean.d.mts +3 -0
- package/dist/lean.mjs +5 -0
- package/dist/lean4.d.mts +3 -0
- package/dist/lean4.mjs +2 -0
- package/dist/less.d.mts +3 -0
- package/dist/less.mjs +5 -0
- package/dist/liquid.d.mts +3 -0
- package/dist/liquid.mjs +14 -0
- package/dist/lisp.d.mts +3 -0
- package/dist/lisp.mjs +2 -0
- package/dist/lit.d.mts +3 -0
- package/dist/lit.mjs +2 -0
- package/dist/log.d.mts +3 -0
- package/dist/log.mjs +5 -0
- package/dist/logo.d.mts +3 -0
- package/dist/logo.mjs +7 -0
- package/dist/lua.d.mts +3 -0
- package/dist/lua.mjs +9 -0
- package/dist/luau.d.mts +3 -0
- package/dist/luau.mjs +5 -0
- package/dist/make.d.mts +3 -0
- package/dist/make.mjs +7 -0
- package/dist/makefile.d.mts +3 -0
- package/dist/makefile.mjs +2 -0
- package/dist/markdown-vue.d.mts +3 -0
- package/dist/markdown-vue.mjs +7 -0
- package/dist/markdown.d.mts +3 -0
- package/dist/markdown.mjs +7 -0
- package/dist/marko.d.mts +3 -0
- package/dist/marko.mjs +14 -0
- package/dist/matlab.d.mts +3 -0
- package/dist/matlab.mjs +7 -0
- package/dist/md.d.mts +3 -0
- package/dist/md.mjs +2 -0
- package/dist/mdc.d.mts +3 -0
- package/dist/mdc.mjs +13 -0
- package/dist/mdx.d.mts +3 -0
- package/dist/mdx.mjs +7 -0
- package/dist/mediawiki.d.mts +3 -0
- package/dist/mediawiki.mjs +2 -0
- package/dist/mermaid.d.mts +3 -0
- package/dist/mermaid.mjs +7 -0
- package/dist/mips.d.mts +3 -0
- package/dist/mips.mjs +2 -0
- package/dist/mipsasm.d.mts +3 -0
- package/dist/mipsasm.mjs +7 -0
- package/dist/mmd.d.mts +3 -0
- package/dist/mmd.mjs +2 -0
- package/dist/mojo.d.mts +3 -0
- package/dist/mojo.mjs +7 -0
- package/dist/move.d.mts +3 -0
- package/dist/move.mjs +5 -0
- package/dist/nar.d.mts +3 -0
- package/dist/nar.mjs +2 -0
- package/dist/narrat.d.mts +3 -0
- package/dist/narrat.mjs +5 -0
- package/dist/nextflow.d.mts +3 -0
- package/dist/nextflow.mjs +5 -0
- package/dist/nf.d.mts +3 -0
- package/dist/nf.mjs +2 -0
- package/dist/nginx.d.mts +3 -0
- package/dist/nginx.mjs +8 -0
- package/dist/nim.d.mts +3 -0
- package/dist/nim.mjs +21 -0
- package/dist/nix.d.mts +3 -0
- package/dist/nix.mjs +5 -0
- package/dist/nu.d.mts +3 -0
- package/dist/nu.mjs +2 -0
- package/dist/nushell.d.mts +3 -0
- package/dist/nushell.mjs +7 -0
- package/dist/objc.d.mts +3 -0
- package/dist/objc.mjs +2 -0
- package/dist/objective-c.d.mts +3 -0
- package/dist/objective-c.mjs +7 -0
- package/dist/objective-cpp.d.mts +3 -0
- package/dist/objective-cpp.mjs +7 -0
- package/dist/ocaml.d.mts +3 -0
- package/dist/ocaml.mjs +5 -0
- package/dist/pascal.d.mts +3 -0
- package/dist/pascal.mjs +7 -0
- package/dist/perl.d.mts +3 -0
- package/dist/perl.mjs +17 -0
- package/dist/perl6.d.mts +3 -0
- package/dist/perl6.mjs +2 -0
- package/dist/php.d.mts +3 -0
- package/dist/php.mjs +19 -0
- package/dist/plsql.d.mts +3 -0
- package/dist/plsql.mjs +5 -0
- package/dist/po.d.mts +3 -0
- package/dist/po.mjs +7 -0
- package/dist/polar.d.mts +3 -0
- package/dist/polar.mjs +7 -0
- package/dist/postcss.d.mts +3 -0
- package/dist/postcss.mjs +5 -0
- package/dist/pot.d.mts +3 -0
- package/dist/pot.mjs +2 -0
- package/dist/potx.d.mts +3 -0
- package/dist/potx.mjs +2 -0
- package/dist/powerquery.d.mts +3 -0
- package/dist/powerquery.mjs +5 -0
- package/dist/powershell.d.mts +3 -0
- package/dist/powershell.mjs +7 -0
- package/dist/prisma.d.mts +3 -0
- package/dist/prisma.mjs +5 -0
- package/dist/prolog.d.mts +3 -0
- package/dist/prolog.mjs +5 -0
- package/dist/properties.d.mts +3 -0
- package/dist/properties.mjs +2 -0
- package/dist/proto.d.mts +3 -0
- package/dist/proto.mjs +5 -0
- package/dist/protobuf.d.mts +3 -0
- package/dist/protobuf.mjs +2 -0
- package/dist/ps.d.mts +3 -0
- package/dist/ps.mjs +2 -0
- package/dist/ps1.d.mts +3 -0
- package/dist/ps1.mjs +2 -0
- package/dist/pug.d.mts +3 -0
- package/dist/pug.mjs +12 -0
- package/dist/puppet.d.mts +3 -0
- package/dist/puppet.mjs +5 -0
- package/dist/purescript.d.mts +3 -0
- package/dist/purescript.mjs +3 -0
- package/dist/py.d.mts +3 -0
- package/dist/py.mjs +2 -0
- package/dist/python.d.mts +3 -0
- package/dist/python.mjs +7 -0
- package/dist/ql.d.mts +3 -0
- package/dist/ql.mjs +2 -0
- package/dist/qml.d.mts +3 -0
- package/dist/qml.mjs +8 -0
- package/dist/qmldir.d.mts +3 -0
- package/dist/qmldir.mjs +5 -0
- package/dist/qss.d.mts +3 -0
- package/dist/qss.mjs +5 -0
- package/dist/r.d.mts +3 -0
- package/dist/r.mjs +7 -0
- package/dist/racket.d.mts +3 -0
- package/dist/racket.mjs +5 -0
- package/dist/raku.d.mts +3 -0
- package/dist/raku.mjs +7 -0
- package/dist/razor.d.mts +3 -0
- package/dist/razor.mjs +3 -0
- package/dist/rb.d.mts +3 -0
- package/dist/rb.mjs +2 -0
- package/dist/reg.d.mts +3 -0
- package/dist/reg.mjs +5 -0
- package/dist/regex.d.mts +3 -0
- package/dist/regex.mjs +2 -0
- package/dist/regexp.d.mts +3 -0
- package/dist/regexp.mjs +5 -0
- package/dist/rel.d.mts +3 -0
- package/dist/rel.mjs +5 -0
- package/dist/riscv.d.mts +3 -0
- package/dist/riscv.mjs +7 -0
- package/dist/rs.d.mts +3 -0
- package/dist/rs.mjs +2 -0
- package/dist/rst.d.mts +3 -0
- package/dist/rst.mjs +22 -0
- package/dist/ruby.d.mts +3 -0
- package/dist/ruby.mjs +31 -0
- package/dist/rust.d.mts +3 -0
- package/dist/rust.mjs +5 -0
- package/dist/sas.d.mts +3 -0
- package/dist/sas.mjs +8 -0
- package/dist/sass.d.mts +3 -0
- package/dist/sass.mjs +5 -0
- package/dist/scala.d.mts +3 -0
- package/dist/scala.mjs +7 -0
- package/dist/scheme.d.mts +3 -0
- package/dist/scheme.mjs +7 -0
- package/dist/scss.d.mts +3 -0
- package/dist/scss.mjs +9 -0
- package/dist/sdbl.d.mts +3 -0
- package/dist/sdbl.mjs +5 -0
- package/dist/sh.d.mts +3 -0
- package/dist/sh.mjs +2 -0
- package/dist/shader.d.mts +3 -0
- package/dist/shader.mjs +2 -0
- package/dist/shaderlab.d.mts +3 -0
- package/dist/shaderlab.mjs +8 -0
- package/dist/shell.d.mts +3 -0
- package/dist/shell.mjs +2 -0
- package/dist/shellscript.d.mts +3 -0
- package/dist/shellscript.mjs +7 -0
- package/dist/shellsession.d.mts +3 -0
- package/dist/shellsession.mjs +8 -0
- package/dist/smalltalk.d.mts +3 -0
- package/dist/smalltalk.mjs +7 -0
- package/dist/solidity.d.mts +3 -0
- package/dist/solidity.mjs +5 -0
- package/dist/soy.d.mts +3 -0
- package/dist/soy.mjs +8 -0
- package/dist/sparql.d.mts +3 -0
- package/dist/sparql.mjs +8 -0
- package/dist/spl.d.mts +3 -0
- package/dist/spl.mjs +2 -0
- package/dist/splunk.d.mts +3 -0
- package/dist/splunk.mjs +5 -0
- package/dist/sql.d.mts +3 -0
- package/dist/sql.mjs +7 -0
- package/dist/ssh-config.d.mts +3 -0
- package/dist/ssh-config.mjs +7 -0
- package/dist/stata.d.mts +3 -0
- package/dist/stata.mjs +8 -0
- package/dist/styl.d.mts +3 -0
- package/dist/styl.mjs +2 -0
- package/dist/stylus.d.mts +3 -0
- package/dist/stylus.mjs +7 -0
- package/dist/svelte.d.mts +3 -0
- package/dist/svelte.mjs +15 -0
- package/dist/swift.d.mts +3 -0
- package/dist/swift.mjs +3 -0
- package/dist/system-verilog.d.mts +3 -0
- package/dist/system-verilog.mjs +5 -0
- package/dist/systemd.d.mts +3 -0
- package/dist/systemd.mjs +5 -0
- package/dist/talon.d.mts +3 -0
- package/dist/talon.mjs +2 -0
- package/dist/talonscript.d.mts +3 -0
- package/dist/talonscript.mjs +5 -0
- package/dist/tasl.d.mts +3 -0
- package/dist/tasl.mjs +5 -0
- package/dist/tcl.d.mts +3 -0
- package/dist/tcl.mjs +5 -0
- package/dist/templ.d.mts +3 -0
- package/dist/templ.mjs +13 -0
- package/dist/terraform.d.mts +3 -0
- package/dist/terraform.mjs +5 -0
- package/dist/tex.d.mts +3 -0
- package/dist/tex.mjs +9 -0
- package/dist/tf.d.mts +3 -0
- package/dist/tf.mjs +2 -0
- package/dist/tfvars.d.mts +3 -0
- package/dist/tfvars.mjs +2 -0
- package/dist/toml.d.mts +3 -0
- package/dist/toml.mjs +7 -0
- package/dist/ts-tags.d.mts +3 -0
- package/dist/ts-tags.mjs +18 -0
- package/dist/ts.d.mts +3 -0
- package/dist/ts.mjs +2 -0
- package/dist/tsp.d.mts +3 -0
- package/dist/tsp.mjs +2 -0
- package/dist/tsv.d.mts +3 -0
- package/dist/tsv.mjs +5 -0
- package/dist/tsx.d.mts +3 -0
- package/dist/tsx.mjs +7 -0
- package/dist/turtle.d.mts +3 -0
- package/dist/turtle.mjs +5 -0
- package/dist/twig.d.mts +3 -0
- package/dist/twig.mjs +19 -0
- package/dist/typ.d.mts +3 -0
- package/dist/typ.mjs +2 -0
- package/dist/typescript.d.mts +3 -0
- package/dist/typescript.mjs +7 -0
- package/dist/typespec.d.mts +3 -0
- package/dist/typespec.mjs +5 -0
- package/dist/typst.d.mts +3 -0
- package/dist/typst.mjs +5 -0
- package/dist/v.d.mts +3 -0
- package/dist/v.mjs +7 -0
- package/dist/vala.d.mts +3 -0
- package/dist/vala.mjs +5 -0
- package/dist/vb.d.mts +3 -0
- package/dist/vb.mjs +7 -0
- package/dist/verilog.d.mts +3 -0
- package/dist/verilog.mjs +7 -0
- package/dist/vhdl.d.mts +3 -0
- package/dist/vhdl.mjs +5 -0
- package/dist/vim.d.mts +3 -0
- package/dist/vim.mjs +2 -0
- package/dist/viml.d.mts +3 -0
- package/dist/viml.mjs +5 -0
- package/dist/vimscript.d.mts +3 -0
- package/dist/vimscript.mjs +2 -0
- package/dist/vue-directives.d.mts +3 -0
- package/dist/vue-directives.mjs +5 -0
- package/dist/vue-html.d.mts +3 -0
- package/dist/vue-html.mjs +11 -0
- package/dist/vue-interpolations.d.mts +3 -0
- package/dist/vue-interpolations.mjs +5 -0
- package/dist/vue-sfc-style-variable-injection.d.mts +3 -0
- package/dist/vue-sfc-style-variable-injection.mjs +8 -0
- package/dist/vue.d.mts +3 -0
- package/dist/vue.mjs +27 -0
- package/dist/vy.d.mts +3 -0
- package/dist/vy.mjs +2 -0
- package/dist/vyper.d.mts +3 -0
- package/dist/vyper.mjs +7 -0
- package/dist/wasm.d.mts +3 -0
- package/dist/wasm.mjs +5 -0
- package/dist/wenyan.d.mts +3 -0
- package/dist/wenyan.mjs +5 -0
- package/dist/wgsl.d.mts +3 -0
- package/dist/wgsl.mjs +5 -0
- package/dist/wiki.d.mts +3 -0
- package/dist/wiki.mjs +2 -0
- package/dist/wikitext.d.mts +3 -0
- package/dist/wikitext.mjs +7 -0
- package/dist/wl.d.mts +3 -0
- package/dist/wl.mjs +2 -0
- package/dist/wolfram.d.mts +3 -0
- package/dist/wolfram.mjs +7 -0
- package/dist/xml.d.mts +3 -0
- package/dist/xml.mjs +8 -0
- package/dist/xsl.d.mts +3 -0
- package/dist/xsl.mjs +8 -0
- package/dist/yaml.d.mts +3 -0
- package/dist/yaml.mjs +7 -0
- package/dist/yml.d.mts +3 -0
- package/dist/yml.mjs +2 -0
- package/dist/zenscript.d.mts +3 -0
- package/dist/zenscript.mjs +5 -0
- package/dist/zig.d.mts +3 -0
- package/dist/zig.mjs +5 -0
- package/dist/zsh.d.mts +3 -0
- package/dist/zsh.mjs +2 -0
- package/package.json +358 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Ballerina",fileTypes:["bal"],name:"ballerina",patterns:[{include:"#statements"}],repository:{"access-modifier":{patterns:[{match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(public|private)(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ballerina keyword.other.ballerina"}]},annotationAttachment:{patterns:[{captures:{"1":{name:"punctuation.decorator.ballerina"},"2":{name:"support.type.ballerina"},"3":{name:"punctuation.decorator.ballerina"},"4":{name:"support.type.ballerina"}},match:/(@)([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(:?)\p{space}*((?:[_\$A-Za-z][_\$0-9A-Za-z]*)?)/dgv}]},annotationDefinition:{patterns:[{begin:/\bannotation\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/;/dgv,patterns:[{include:"#code"}]}]},"array-literal":{begin:/\p{space}*(\[)/dgv,beginCaptures:{"1":{name:"meta.brace.square.ballerina"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.ballerina"}},name:"meta.array.literal.ballerina",patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},booleans:{patterns:[{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.ballerina"}]},butClause:{patterns:[{begin:/=>/dgv,beginCaptures:{"0":{name:"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},end:/,|(?=\})/dgv,patterns:[{include:"#code"}]}]},butExp:{patterns:[{begin:/\bbut\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},patterns:[{include:"#butExpBody"},{include:"#comment"}]}]},butExpBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},end:/(?=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},patterns:[{include:"#parameter"},{include:"#butClause"},{include:"#comment"}]}]},call:{patterns:[{match:/(?:')?([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(?=\()/dgv,name:"entity.name.function.ballerina"}]},callableUnitBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/(?=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#workerDef"},{include:"#service-decl"},{include:"#objectDec"},{include:"#function-defn"},{include:"#forkStatement"},{include:"#code"}]}]},"class-body":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},name:"meta.class.body.ballerina",patterns:[{include:"#comment"},{include:"#mdDocumentation"},{include:"#function-defn"},{include:"#var-expr"},{include:"#variable-initializer"},{include:"#access-modifier"},{include:"#keywords"},{begin:/(?<=:)\p{space}*/dgv,end:/(?=\p{space}|[\;\)\,\}\]\:\-\+]|;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)/dgv},{include:"#decl-block"},{include:"#expression"},{include:"#punctuation-comma"},{include:"#punctuation-semicolon"}]},"class-defn":{begin:/(\p{space}+)(class\b)|(?<=^|\n(?!$))class\b(?=\p{space}+|\/[\/\*])/dgv,beginCaptures:{"0":{name:"storage.type.class.ballerina keyword.other.ballerina"}},end:/(?<=\})/dgv,name:"meta.class.ballerina",patterns:[{include:"#keywords"},{captures:{"0":{name:"entity.name.type.class.ballerina"}},match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv},{include:"#class-body"}]},code:{patterns:[{include:"#booleans"},{include:"#matchStatement"},{include:"#butExp"},{include:"#xml"},{include:"#stringTemplate"},{include:"#keywords"},{include:"#strings"},{include:"#comment"},{include:"#mdDocumentation"},{include:"#annotationAttachment"},{include:"#numbers"},{include:"#maps"},{include:"#paranthesised"},{include:"#paranthesisedBracket"},{include:"#regex"}]},comment:{patterns:[{match:/\/\/[^\n]*/dgv,name:"comment.ballerina"}]},constrainType:{patterns:[{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.ballerina"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.ballerina"}},patterns:[{include:"#comment"},{include:"#constrainType"},{match:/\b([_\$A-Za-z][_\$0-9A-Za-z]*)\b/dgv,name:"storage.type.ballerina"}]}]},"control-statement":{patterns:[{begin:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(return)(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))/dgv,beginCaptures:{"0":{name:"keyword.control.flow.ballerina"}},end:/(?=[\;\}]|(?=$|\n)|;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)/dgv,patterns:[{include:"#expression"}]},{include:"#for-loop"},{include:"#if-statement"},{match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(else|if)(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))/dgv,name:"keyword.control.conditional.ballerina"}]},"decl-block":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/(?=\} external;)|(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},name:"meta.block.ballerina",patterns:[{include:"#statements"},{include:"#mdDocumentation"}]},declaration:{patterns:[{include:"#import-declaration"},{include:"#var-expr"},{include:"#typeDefinition"},{include:"#function-defn"},{include:"#service-decl"},{include:"#class-defn"},{include:"#enum-decl"},{include:"#source"},{include:"#keywords"}]},defaultValue:{patterns:[{begin:/[\=\:]/dgv,beginCaptures:{"0":{name:"keyword.operator.ballerina"}},end:/(?=[\,\)])/dgv,patterns:[{include:"#code"}]}]},defaultWithParentheses:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}}}]},documentationBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},end:/(?=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},patterns:[{captures:{"1":{name:"keyword.other.ballerina.documentation"},"2":{name:"keyword.other.ballerina.documentation"},"3":{name:"variable.parameter.ballerina.documentation"},"4":{name:"keyword.other.ballerina.documentation"}},match:/(P|R|T|F|V)(\{\{)([^\n]*)(\}\})/dgv},{begin:/```/dgv,end:/```/dgv,name:"comment.block.code.ballerina.documentation"},{begin:/``/dgv,end:/``/dgv,name:"comment.block.code.ballerina.documentation"},{begin:/`/dgv,end:/`/dgv,name:"comment.block.code.ballerina.documentation"},{match:/[^\n]/dgv,name:"comment.block.ballerina.documentation"}]}]},documentationDef:{patterns:[{begin:/\b(?:documentation|deprecated)\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"delimiter.curly"}},patterns:[{include:"#documentationBody"},{include:"#comment"}]}]},"enum-decl":{begin:/(?:\b(const)\p{space}+)?\b(enum)\p{space}+([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"storage.modifier.ballerina"},"2":{name:"keyword.other.ballerina"},"3":{name:"entity.name.type.enum.ballerina"}},end:/(?<=\})/dgv,name:"meta.enum.declaration.ballerina",patterns:[{include:"#comment"},{include:"#mdDocumentation"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#comment"},{include:"#mdDocumentation"},{begin:/([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"0":{name:"variable.other.enummember.ballerina"}},end:/(?=,|\}|(?=$|\n))/dgv,patterns:[{include:"#comment"},{include:"#variable-initializer"}]},{begin:/(?=(('([^'\\]|\\[^\n])*')|("([^"\\]|\\[^\n])*")|(`([^\`\\]|\\[^\n])*`)|(\[([^\[\]]|\[[^\[\]]*\])+\])))/dgv,end:/(?=,|\}|(?=$|\n))/dgv,patterns:[{include:"#string"},{include:"#array-literal"},{include:"#comment"},{include:"#variable-initializer"}]},{include:"#punctuation-comma"}]}]},errorDestructure:{patterns:[{begin:/error/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/(?==>)/dgv,patterns:[{include:"#code"}]}]},expression:{patterns:[{include:"#keywords"},{include:"#expressionWithoutIdentifiers"},{include:"#identifiers"},{include:"#regex"}]},"expression-operators":{patterns:[{match:/\*=|(?<!\()\/=|%=|\+=|-=/dgv,name:"keyword.operator.assignment.compound.ballerina"},{match:/&=|\^=|<<=|>>=|>>>=|\|=/dgv,name:"keyword.operator.assignment.compound.bitwise.ballerina"},{match:/<<|>>>|>>/dgv,name:"keyword.operator.bitwise.shift.ballerina"},{match:/===|!==|==|!=/dgv,name:"keyword.operator.comparison.ballerina"},{match:/<=|>=|<>|<|>/dgv,name:"keyword.operator.relational.ballerina"},{captures:{"1":{name:"keyword.operator.logical.ballerina"},"2":{name:"keyword.operator.assignment.compound.ballerina"},"3":{name:"keyword.operator.arithmetic.ballerina"}},match:/(?<=[_\$0-9A-Za-z])(!)\p{space}*(?:(\/=)|(\/)(?![\/\*]))/dgv},{match:/!|&&|\|\||\?\?/dgv,name:"keyword.operator.logical.ballerina"},{match:/&|~|\^|\|/dgv,name:"keyword.operator.bitwise.ballerina"},{match:/=/dgv,name:"keyword.operator.assignment.ballerina"},{match:/--/dgv,name:"keyword.operator.decrement.ballerina"},{match:/\+\+/dgv,name:"keyword.operator.increment.ballerina"},{match:/%|\*|\/|-|\+/dgv,name:"keyword.operator.arithmetic.ballerina"}]},expressionWithoutIdentifiers:{patterns:[{include:"#xml"},{include:"#string"},{include:"#stringTemplate"},{include:"#comment"},{include:"#object-literal"},{include:"#ternary-expression"},{include:"#expression-operators"},{include:"#literal"},{include:"#paranthesised"},{include:"#regex"}]},"flags-on-off":{name:"meta.flags.regexp.ballerina",patterns:[{begin:/(\??)([imsx]*)(-?)([imsx]*)(:)/dgv,beginCaptures:{"1":{name:"punctuation.other.non-capturing-group-begin.regexp.ballerina"},"2":{name:"keyword.other.non-capturing-group.flags-on.regexp.ballerina"},"3":{name:"punctuation.other.non-capturing-group.off.regexp.ballerina"},"4":{name:"keyword.other.non-capturing-group.flags-off.regexp.ballerina"},"5":{name:"punctuation.other.non-capturing-group-end.regexp.ballerina"}},end:/()/dgv,name:"constant.other.flag.regexp.ballerina",patterns:[{include:"#regexp"},{include:"#template-substitution-element"}]}]},"for-loop":{begin:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))foreach\p{space}*/dgv,beginCaptures:{"0":{name:"keyword.control.loop.ballerina"},"1":{name:"support.type.primitive.ballerina"}},end:/(?=\{)/dgv,patterns:[{match:/\bin\b/dgv,name:"keyword.other.ballerina"},{include:"#identifiers"},{include:"#comment"},{include:"#var-expr"},{include:"#expression"}]},forkBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/(?=\})/dgv,patterns:[{include:"#workerDef"}]}]},forkStatement:{patterns:[{begin:/\bfork\b/dgv,beginCaptures:{"0":{name:"keyword.control.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#forkBody"}]}]},"function-body":{patterns:[{include:"#comment"},{include:"#functionParameters"},{include:"#decl-block"},{begin:/=>/dgv,beginCaptures:{"0":{name:"meta.arrow.ballerina storage.type.function.arrow.ballerina"}},end:/(?=;)|(?=,)|(?=)(?=\);)/dgv,name:"meta.block.ballerina",patterns:[{include:"#statements"},{include:"#punctuation-comma"}]},{match:/\*/dgv,name:"keyword.generator.asterisk.ballerina"}]},"function-defn":{begin:/(?:(public|private)\p{space}+)?(function\b)/dgv,beginCaptures:{"1":{name:"keyword.other.ballerina"},"2":{name:"keyword.other.ballerina"}},end:/(?<=;)|(?<=\})|(?<=,)|(?=)(?=\);)/dgv,name:"meta.function.ballerina",patterns:[{match:/\bexternal\b/dgv,name:"keyword.ballerina"},{include:"#stringTemplate"},{include:"#annotationAttachment"},{include:"#functionReturns"},{include:"#functionName"},{include:"#functionParameters"},{include:"#punctuation-semicolon"},{include:"#function-body"},{include:"#regex"}]},"function-parameters-body":{patterns:[{include:"#comment"},{include:"#numbers"},{include:"#string"},{include:"#annotationAttachment"},{include:"#recordLiteral"},{include:"#keywords"},{include:"#parameter-name"},{include:"#array-literal"},{include:"#variable-initializer"},{include:"#identifiers"},{include:"#regex"},{match:/,/dgv,name:"punctuation.separator.parameter.ballerina"}]},functionName:{patterns:[{match:/\bfunction\b/dgv,name:"keyword.other.ballerina"},{include:"#type-primitive"},{include:"#self-literal"},{include:"#string"},{captures:{"2":{name:"variable.language.this.ballerina"},"3":{name:"keyword.other.ballerina"},"4":{name:"support.type.primitive.ballerina"},"5":{name:"storage.type.ballerina"},"6":{name:"meta.definition.function.ballerina entity.name.function.ballerina"}},match:/\p{space}+(\b(self)|\b(is|new|isolated|null|function|in)\b|(string|int|boolean|float|byte|decimal|json|xml|anydata)\b|\b(readonly|error|map)\b|([_\$A-Za-z][_\$0-9A-Za-z]*))/dgv}]},functionParameters:{begin:/\(|\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.ballerina"}},end:/\)|\]/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.ballerina"}},name:"meta.parameters.ballerina",patterns:[{include:"#function-parameters-body"}]},functionReturns:{begin:/\p{space}*(returns)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.ballerina"}},end:/(?==>)|(=)|(?=\{)|(\))|(?=;)/dgv,endCaptures:{"1":{name:"keyword.operator.ballerina"}},name:"meta.type.function.return.ballerina",patterns:[{include:"#comment"},{include:"#string"},{include:"#numbers"},{include:"#keywords"},{include:"#type-primitive"},{captures:{"1":{name:"support.type.primitive.ballerina"}},match:/\p{space}*\b(var)(?=\p{space}+|\[|\?)/dgv},{match:/\|/dgv,name:"keyword.operator.ballerina"},{match:/\?/dgv,name:"keyword.operator.optional.ballerina"},{include:"#type-annotation"},{include:"#type-tuple"},{include:"#keywords"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"variable.other.readwrite.ballerina"}]},functionType:{patterns:[{begin:/\bfunction\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/(?=,)|(?=\|)|(?=:)|(?==>)|(?=\))|(?=\])/dgv,patterns:[{include:"#comment"},{include:"#functionTypeParamList"},{include:"#functionTypeReturns"}]}]},functionTypeParamList:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"delimiter.parenthesis"}},end:/\)/dgv,endCaptures:{"0":{name:"delimiter.parenthesis"}},patterns:[{match:/public/dgv,name:"keyword"},{include:"#annotationAttachment"},{include:"#recordLiteral"},{include:"#record"},{include:"#objectDec"},{include:"#functionType"},{include:"#constrainType"},{include:"#parameterTuple"},{include:"#functionTypeType"},{include:"#comment"}]}]},functionTypeReturns:{patterns:[{begin:/\breturns\b/dgv,beginCaptures:{"0":{name:"keyword"}},end:/(?=,)|\||(?=\])|(?=\))/dgv,patterns:[{include:"#functionTypeReturnsParameter"},{include:"#comment"}]}]},functionTypeReturnsParameter:{patterns:[{begin:/((?=record|object|function)|[_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/(?=,)|\||:|(?==>)|(?=\))|(?=\])/dgv,patterns:[{include:"#record"},{include:"#objectDec"},{include:"#functionType"},{include:"#constrainType"},{include:"#defaultValue"},{include:"#comment"},{include:"#parameterTuple"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"default.variable.parameter.ballerina"}]}]},functionTypeType:{patterns:[{begin:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/(?=,)|\||(?=\])|(?=\))/dgv}]},identifiers:{patterns:[{captures:{"1":{name:"punctuation.accessor.ballerina"},"2":{name:"punctuation.accessor.optional.ballerina"},"3":{name:"entity.name.function.ballerina"}},match:/(?:(?:(\.)|(\?\.(?!\p{space}*[\p{Nd}])))\p{space}*)?([_\$A-Za-z][_\$0-9A-Za-z]*)(?=\p{space}*=\p{space}*((((function\p{space}*[\(\<\*])|(function\p{space}+)|([_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*=>)))|((((<\p{space}*(?=$|\n))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?[\(]\p{space}*((([\{\[]\p{space}*)?(?=$|\n))|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\p{space}*((:\p{space}*\{?(?=$|\n))|((\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+\p{space}*)?=\p{space}*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\p{space}*((:\p{space}*\[?(?=$|\n))|((\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+\p{space}*)?=\p{space}*))))))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?[\(]\p{space}*(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*(([\)]\p{space}*:)|((\.\.\.\p{space}*)?[_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*:)))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?\(\p{space}*(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*(([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\p{space}*[_\$A-Za-z]))([^\(\)'"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|('([^'\\]|\\[^\n])*')|("([^"\\]|\\[^\n])*")|(`([^\`\\]|\\[^\n])*`))*)?\)(\p{space}*:\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+)?\p{space}*=>)))))/dgv},{captures:{"1":{name:"punctuation.accessor.ballerina"},"2":{name:"punctuation.accessor.optional.ballerina"},"3":{name:"entity.name.function.ballerina"}},match:/(?:(\.)|(\?\.(?!\p{space}*[\p{Nd}])))\p{space}*(#?[_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(?=\()/dgv},{captures:{"1":{name:"punctuation.accessor.ballerina"},"2":{name:"punctuation.accessor.optional.ballerina"},"3":{name:"variable.other.property.ballerina"}},match:/(?:(\.)|(\?\.(?!\p{space}*[\p{Nd}])))\p{space}*(#?[_\$A-Za-z][_\$0-9A-Za-z]*)/dgv},{include:"#type-primitive"},{include:"#self-literal"},{match:/\b(check|foreach|if|checkpanic)\b/dgv,name:"keyword.control.ballerina"},{include:"#call"},{match:/\b(var)\b/dgv,name:"support.type.primitive.ballerina"},{captures:{"1":{name:"variable.other.readwrite.ballerina"},"3":{name:"punctuation.accessor.ballerina"},"4":{name:"entity.name.function.ballerina"},"5":{name:"punctuation.definition.parameters.begin.ballerina"},"6":{name:"punctuation.definition.parameters.end.ballerina"}},match:/([_\$A-Za-z][_\$0-9A-Za-z]*)((\.)([_\$A-Za-z][_\$0-9A-Za-z]*)(\()(\)))?/dgv},{match:/(')([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,name:"variable.other.property.ballerina"},{include:"#type-annotation"}]},"if-statement":{patterns:[{begin:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(?=\bif\b\p{space}*(?!\{))/dgv,end:/(?<=\})/dgv,patterns:[{include:"#comment"},{begin:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(if)\p{space}*(\()?/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.ballerina"},"2":{name:"meta.brace.round.ballerina"}},end:/(\))|(?=\{)/dgv,endCaptures:{"1":{name:"meta.brace.round.ballerina"}},patterns:[{include:"#decl-block"},{include:"#keywords"},{include:"#identifiers"},{include:"#type-primitive"},{include:"#xml"},{include:"#string"},{include:"#stringTemplate"},{include:"#comment"},{include:"#ternary-expression"},{include:"#expression-operators"},{include:"#literal"},{include:"#paranthesised"},{include:"#regex"}]},{begin:/(?<=\))(?=\p{space}|=)/dgv,end:/(?=\{)/dgv,patterns:[{include:"#literal"},{include:"#keywords"}]},{include:"#decl-block"}]}]},"import-clause":{patterns:[{include:"#comment"},{captures:{"1":{name:"keyword.control.default.ballerina"},"3":{name:"variable.other.readwrite.ballerina meta.import.module.ballerina"},"5":{name:"keyword.control.default.ballerina"},"6":{name:"variable.other.readwrite.alias.ballerina"}},match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(?:(\bdefault)|(\*)|(\b[_\$A-Za-z][_\$0-9A-Za-z]*))/dgv},{match:/([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,name:"variable.other.readwrite.alias.ballerina"}]},"import-declaration":{begin:/\bimport\b/dgv,beginCaptures:{"0":{name:"keyword.control.import.ballerina"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.statement.ballerina"}},name:"meta.import.ballerina",patterns:[{match:/(')([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,name:"variable.other.property.ballerina"},{include:"#keywords"},{include:"#comment"},{include:"#import-clause"},{include:"#punctuation-accessor"}]},keywords:{patterns:[{match:/\b(fork|join|while|returns|transaction|transactional|retry|commit|rollback|typeof|enum|wait|match)\b/dgv,name:"keyword.control.ballerina"},{match:/\b(return|break|continue|check|checkpanic|panic|trap|from|where)\b/dgv,name:"keyword.control.flow.ballerina"},{match:/\b(public|private|external|return|record|object|remote|abstract|client|true|false|fail|import|version)\b/dgv,name:"keyword.other.ballerina"},{match:/\b(as|on|function|resource|listener|const|final|is|null|lock|annotation|source|worker|parameter|field|isolated|in)\b/dgv,name:"keyword.other.ballerina"},{match:/\b(xmlns|table|key|let|new|select|start|flush|default|do|base16|base64|conflict)\b/dgv,name:"keyword.other.ballerina"},{match:/\b(limit|outer|equals|order|by|ascending|descending|class|configurable|variable|module|service|group|collect)\b/dgv,name:"keyword.other.ballerina"},{match:/(=>)/dgv,name:"meta.arrow.ballerina storage.type.function.arrow.ballerina"},{match:/(!|%|\+|-|~=|===|==|=|!=|!==|<|>|&|\||\?:|\.\.\.|<=|>=|&&|\|\||~|>>|>>>)/dgv,name:"keyword.operator.ballerina"},{include:"#types"},{include:"#self-literal"},{include:"#type-primitive"}]},literal:{patterns:[{include:"#booleans"},{include:"#numbers"},{include:"#strings"},{include:"#maps"},{include:"#self-literal"},{include:"#array-literal"}]},maps:{patterns:[{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#code"}]}]},matchBindingPattern:{patterns:[{begin:/var/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/(?==>)|,/dgv,patterns:[{include:"#errorDestructure"},{include:"#code"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"variable.parameter.ballerina"}]}]},matchStatement:{patterns:[{begin:/\bmatch\b/dgv,beginCaptures:{"0":{name:"keyword.control.ballerina"}},end:/\}/dgv,patterns:[{include:"#matchStatementBody"},{include:"#comment"},{include:"#code"}]}]},matchStatementBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},end:/(?=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina.documentation"}},patterns:[{include:"#literal"},{include:"#matchBindingPattern"},{include:"#matchStatementPatternClause"},{include:"#comment"},{include:"#code"}]}]},matchStatementPatternClause:{patterns:[{begin:/=>/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/((\})|;|,)/dgv,patterns:[{include:"#callableUnitBody"},{include:"#code"}]}]},mdDocumentation:{begin:/#/dgv,end:/[\r\n]+/dgv,name:"comment.mddocs.ballerina",patterns:[{include:"#mdDocumentationReturnParamDescription"},{include:"#mdDocumentationParamDescription"}]},mdDocumentationParamDescription:{patterns:[{begin:/(\+\p{space}+)('?[_\$A-Za-z][_\$0-9A-Za-z]*)(\p{space}*-\p{space}+)/dgv,beginCaptures:{"1":{name:"keyword.operator.ballerina"},"2":{name:"variable.other.readwrite.ballerina"},"3":{name:"keyword.operator.ballerina"}},end:/(?=[^\#\r\n]|# *?\+)/dgv,patterns:[{match:/#[^\n]*/dgv,name:"comment.mddocs.paramdesc.ballerina"}]}]},mdDocumentationReturnParamDescription:{patterns:[{begin:/(#) *?(\+) *(return) *(-)?([^\n]*)/dgv,beginCaptures:{"1":{name:"comment.mddocs.ballerina"},"2":{name:"keyword.ballerina"},"3":{name:"keyword.ballerina"},"4":{name:"keyword.ballerina"},"5":{name:"comment.mddocs.returnparamdesc.ballerina"}},end:/(?=[^\#\r\n]|# *?\+)/dgv,patterns:[{match:/#[^\n]*/dgv,name:"comment.mddocs.returnparamdesc.ballerina"}]}]},multiType:{patterns:[{match:/(?<=\|)([_\$A-Za-z][_\$0-9A-Za-z]*)|([_\$A-Za-z][_\$0-9A-Za-z]*)(?=\|)/dgv,name:"storage.type.ballerina"},{match:/\|/dgv,name:"keyword.operator.ballerina"}]},numbers:{patterns:[{match:/\b0[xX][\p{Nd}a-fA-F]+\b|\b\p{Nd}+(?:\.(?:\p{Nd}+|(?=$|\n)))?/dgv,name:"constant.numeric.decimal.ballerina"}]},"object-literal":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},name:"meta.objectliteral.ballerina",patterns:[{include:"#object-member"},{include:"#punctuation-comma"}]},"object-member":{patterns:[{include:"#comment"},{include:"#function-defn"},{include:"#literal"},{include:"#keywords"},{include:"#expression"},{begin:/(?=\[)/dgv,end:/(?=:)|((?<=[\]])(?=\p{space}*[\(\<]))/dgv,name:"meta.object.member.ballerina meta.object-literal.key.ballerina",patterns:[{include:"#comment"}]},{begin:/(?=['"\`])/dgv,end:/(?=:)|((?<=['"\`])(?=((\p{space}*[\(\<\,\}])|(\n*\})|(\p{space}+(as)\p{space}+))))/dgv,name:"meta.object.member.ballerina meta.object-literal.key.ballerina",patterns:[{include:"#comment"},{include:"#string"}]},{begin:/(?=(\b(?<!\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:b|B)[01][01_]*(n)?\b(?!\$))|(\b(?<!\$)0(?:o|O)?[0-7][0-7_]*(n)?\b(?!\$))|((?<!\$)(?:\b\p{Nd}[0-9_]*(\.)\p{Nd}[0-9_]*[eE][\+\-]?\p{Nd}[0-9_]*(n)?\b|\b\p{Nd}[0-9_]*(\.)[eE][\+\-]?\p{Nd}[0-9_]*(n)?\b|\B(\.)\p{Nd}[0-9_]*[eE][\+\-]?\p{Nd}[0-9_]*(n)?\b|\b\p{Nd}[0-9_]*[eE][\+\-]?\p{Nd}[0-9_]*(n)?\b|\b\p{Nd}[0-9_]*(\.)\p{Nd}[0-9_]*(n)?\b|\b\p{Nd}[0-9_]*(\.)(n)?\B|\B(\.)\p{Nd}[0-9_]*(n)?\b|\b\p{Nd}[0-9_]*(n)?\b(?!\.))(?!\$)))/dgv,end:/(?=:)|(?=\p{space}*([\(\<\,\}])|(\p{space}+as\p{space}+))/dgv,name:"meta.object.member.ballerina meta.object-literal.key.ballerina",patterns:[{include:"#comment"},{include:"#numbers"}]},{begin:/(?<=[\]'"\`])(?=\p{space}*[\(\<])/dgv,end:/(?=\}|;|,)|(?<=\})/dgv,name:"meta.method.declaration.ballerina",patterns:[{include:"#function-body"}]},{captures:{"0":{name:"meta.object-literal.key.ballerina"},"1":{name:"constant.numeric.decimal.ballerina"}},match:/(?![_\$A-Za-z])([\p{Nd}]+)\p{space}*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*:)/dgv,name:"meta.object.member.ballerina"},{captures:{"0":{name:"meta.object-literal.key.ballerina"},"1":{name:"entity.name.function.ballerina"}},match:/([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*:(\p{space}*\/\*([^\*]|(\*[^\/]))*\*\/)*\p{space}*((((function\p{space}*[\(\<\*])|(function\p{space}+)|([_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*=>)))|((((<\p{space}*(?=$|\n))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?[\(]\p{space}*((([\{\[]\p{space}*)?(?=$|\n))|((\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})\p{space}*((:\p{space}*\{?(?=$|\n))|((\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+\p{space}*)?=\p{space}*)))|((\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])\p{space}*((:\p{space}*\[?(?=$|\n))|((\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+\p{space}*)?=\p{space}*))))))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?[\(]\p{space}*(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*(([\)]\p{space}*:)|((\.\.\.\p{space}*)?[_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*:)))|((<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<]|<\p{space}*([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\]))([^\=\<\>]|=[^\<])*>)*>)*>\p{space}*)?\(\p{space}*(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*(([_\$A-Za-z]|(\{([^\{\}]|(\{([^\{\}]|\{[^\{\}]*\})*\}))*\})|(\[([^\[\]]|(\[([^\[\]]|\[[^\[\]]*\])*\]))*\])|(\.\.\.\p{space}*[_\$A-Za-z]))([^\(\)'"\`]|(\(([^\(\)]|(\(([^\(\)]|\([^\(\)]*\))*\)))*\))|('([^'\\]|\\[^\n])*')|("([^"\\]|\\[^\n])*")|(`([^\`\\]|\\[^\n])*`))*)?\)(\p{space}*:\p{space}*([^\<\>\(\)\{\}]|<([^\<\>]|<([^\<\>]|<[^\<\>]+>)+>)+>|\([^\(\)]+\)|\{[^\{\}]+\})+)?\p{space}*=>)))))/dgv,name:"meta.object.member.ballerina"},{captures:{"0":{name:"meta.object-literal.key.ballerina"}},match:/[_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*(?=(\/\*([^\*]|(\*[^\/]))*\*\/\p{space}*)*:)/dgv,name:"meta.object.member.ballerina"},{begin:/\.\.\./dgv,beginCaptures:{"0":{name:"keyword.operator.spread.ballerina"}},end:/(?=,|\})/dgv,name:"meta.object.member.ballerina",patterns:[{include:"#expression"}]},{captures:{"1":{name:"variable.other.readwrite.ballerina"}},match:/([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(?=,|\}|(?=$|\n)|\/\/|\/\*)/dgv,name:"meta.object.member.ballerina"},{captures:{"1":{name:"keyword.control.as.ballerina"},"2":{name:"storage.modifier.ballerina"}},match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(as)\p{space}+(const)(?=\p{space}*([\,\}]|(?=$|\n)))/dgv,name:"meta.object.member.ballerina"},{begin:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(as)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.as.ballerina"}},end:/(?=[\;\)\,\}\]\:\?\-\+\>]|\|\||&&|!==|(?=$|\n)|(?<=^|\n(?!$))|((?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(as)\p{space}+))/dgv,name:"meta.object.member.ballerina"},{begin:/(?=[_\$A-Za-z][_\$0-9A-Za-z]*\p{space}*=)/dgv,end:/(?=,|\}|(?=$|\n)|\/\/|\/\*)/dgv,name:"meta.object.member.ballerina",patterns:[{include:"#expression"}]}]},objectDec:{patterns:[{begin:/\bobject\b(?!:)/dgv,beginCaptures:{"0":{name:"keyword.other.ballerina"}},end:/(?<=\})/dgv,patterns:[{include:"#decl-block"}]}]},objectInitBody:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/(?=\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#comment"},{include:"#code"}]}]},objectInitParameters:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.ballerina"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.ballerina"}},patterns:[{include:"#code"},{match:/\b([_\$A-Za-z][_\$0-9A-Za-z]*)\b/dgv,name:"variable.parameter.ballerina"}]}]},objectMemberFunctionDec:{patterns:[{begin:/\bfunction\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#functionParameters"},{match:/\breturns\b/dgv,name:"keyword.ballerina"},{include:"#code"}]}]},parameter:{patterns:[{begin:/((?=record|object|function)|([_\$A-Za-z][_\$0-9A-Za-z]*)(?=\|)|[_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/,|\||:|(?==>)|(?=\))|(?=\])/dgv,patterns:[{include:"#parameterWithDescriptor"},{include:"#record"},{include:"#objectDec"},{include:"#functionType"},{include:"#constrainType"},{include:"#defaultValue"},{include:"#comment"},{include:"#parameterTuple"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"default.variable.parameter.ballerina"}]}]},"parameter-name":{patterns:[{captures:{"1":{name:"support.type.primitive.ballerina"}},match:/\p{space}*\b(var)\p{space}+/dgv},{captures:{"2":{name:"keyword.operator.rest.ballerina"},"3":{name:"support.type.primitive.ballerina"},"4":{name:"keyword.other.ballerina"},"5":{name:"constant.language.boolean.ballerina"},"6":{name:"keyword.control.flow.ballerina"},"7":{name:"storage.type.ballerina"},"8":{name:"variable.parameter.ballerina"},"9":{name:"variable.parameter.ballerina"},"10":{name:"keyword.operator.optional.ballerina"}},match:/(?:(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))\p{space}+)?(?:(\.\.\.)\p{space}*)?(?<!=|:)(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(?:(this)|(string|int|boolean|float|byte|decimal|json|xml|anydata)|\b(is|new|isolated|null|function|in)\b|\b(true|false)\b|\b(check|foreach|if|checkpanic)\b|\b(readonly|error|map)\b|([_\$A-Za-z][_\$0-9A-Za-z]*))(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))\p{space}*(\??)/dgv}]},parameterTuple:{patterns:[{begin:/\[/dgv,end:/(?=,)|(?=\|)|(?=:)|(?==>)|(?=\))/dgv,patterns:[{include:"#record"},{include:"#objectDec"},{include:"#parameterTupleType"},{include:"#parameterTupleEnd"},{include:"#comment"}]}]},parameterTupleEnd:{patterns:[{begin:/\]/dgv,end:/(?=,)|(?=\|)|(?=:)|(?==>)|(?=\))/dgv,patterns:[{include:"#defaultWithParentheses"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"default.variable.parameter.ballerina"}]}]},parameterTupleType:{patterns:[{begin:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/,|\||(?=\])/dgv}]},parameterWithDescriptor:{patterns:[{begin:/&/dgv,beginCaptures:{"0":{name:"keyword.operator.ballerina"}},end:/(?=,)|(?=\|)|(?=\))/dgv,patterns:[{include:"#parameter"}]}]},parameters:{patterns:[{match:/\p{space}*(return|break|continue|check|checkpanic|panic|trap|from|where)\b/dgv,name:"keyword.control.flow.ballerina"},{match:/\p{space}*(let|select)\b/dgv,name:"keyword.other.ballerina"},{match:/,/dgv,name:"punctuation.separator.parameter.ballerina"}]},paranthesised:{begin:/\(/dgv,beginCaptures:{"0":{name:"meta.brace.round.ballerina"}},end:/\)/dgv,endCaptures:{"0":{name:"meta.brace.round.ballerina"}},name:"meta.brace.round.block.ballerina",patterns:[{include:"#self-literal"},{include:"#function-defn"},{include:"#decl-block"},{include:"#comment"},{include:"#string"},{include:"#parameters"},{include:"#annotationAttachment"},{include:"#recordLiteral"},{include:"#stringTemplate"},{include:"#parameter-name"},{include:"#variable-initializer"},{include:"#expression"},{include:"#regex"}]},paranthesisedBracket:{patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#comment"},{include:"#code"}]}]},"punctuation-accessor":{patterns:[{captures:{"1":{name:"punctuation.accessor.ballerina"},"2":{name:"punctuation.accessor.optional.ballerina"}},match:/(?:(\.)|(\?\.(?!\p{space}*[\p{Nd}])))/dgv}]},"punctuation-comma":{patterns:[{match:/,/dgv,name:"punctuation.separator.comma.ballerina"}]},"punctuation-semicolon":{patterns:[{match:/;/dgv,name:"punctuation.terminator.statement.ballerina"}]},record:{begin:/\brecord\b/dgv,beginCaptures:{"0":{name:"keyword.other.ballerina"}},end:/(?<=\})/dgv,name:"meta.record.ballerina",patterns:[{include:"#recordBody"}]},recordBody:{patterns:[{include:"#decl-block"}]},recordLiteral:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.ballerina"}},patterns:[{include:"#code"}]}]},regex:{patterns:[{begin:/(\bre)(\p{space}*)(`)/dgv,beginCaptures:{"1":{name:"support.type.primitive.ballerina"},"3":{name:"punctuation.definition.regexp.template.begin.ballerina"}},end:/`/dgv,endCaptures:{"1":{name:"punctuation.definition.regexp.template.end.ballerina"}},name:"regexp.template.ballerina",patterns:[{include:"#template-substitution-element"},{include:"#regexp"}]}]},"regex-character-class":{patterns:[{match:/\\[wWsSdDtrn]|\./dgv,name:"keyword.other.character-class.regexp.ballerina"},{match:/\\[^pPu]/dgv,name:"constant.character.escape.backslash.regexp"}]},"regex-unicode-properties-general-category":{patterns:[{match:/(Lu|Ll|Lt|Lm|Lo|L|Mn|Mc|Me|M|Nd|Nl|No|N|Pc|Pd|Ps|Pe|Pi|Pf|Po|P|Sm|Sc|Sk|So|S|Zs|Zl|Zp|Z|Cf|Cc|Cn|Co|C)/dgv,name:"constant.other.unicode-property-general-category.regexp.ballerina"}]},"regex-unicode-property-key":{patterns:[{begin:/(sc=|gc=)/dgv,beginCaptures:{"1":{name:"keyword.other.unicode-property-key.regexp.ballerina"}},end:/()/dgv,endCaptures:{"1":{name:"punctuation.other.unicode-property.end.regexp.ballerina"}},name:"keyword.other.unicode-property-key.regexp.ballerina",patterns:[{include:"#regex-unicode-properties-general-category"}]}]},regexp:{patterns:[{match:/\^|\$/dgv,name:"keyword.control.assertion.regexp.ballerina"},{match:/[\?\+\*]|\{(\p{Nd}+,\p{Nd}+|\p{Nd}+,|,\p{Nd}+|\p{Nd}+)\}\??/dgv,name:"keyword.operator.quantifier.regexp.ballerina"},{match:/\|/dgv,name:"keyword.operator.or.regexp.ballerina"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.group.regexp.ballerina"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.group.regexp.ballerina"}},name:"meta.group.assertion.regexp.ballerina",patterns:[{include:"#template-substitution-element"},{include:"#regexp"},{include:"#flags-on-off"},{include:"#unicode-property-escape"}]},{begin:/(\[)(\^)?/dgv,beginCaptures:{"1":{name:"punctuation.definition.character-class.start.regexp.ballerina"},"2":{name:"keyword.operator.negation.regexp.ballerina"}},end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.character-class.end.regexp.ballerina"}},name:"constant.other.character-class.set.regexp.ballerina",patterns:[{captures:{"1":{name:"constant.character.numeric.regexp"},"2":{name:"constant.character.escape.backslash.regexp"},"3":{name:"constant.character.numeric.regexp"},"4":{name:"constant.character.escape.backslash.regexp"}},match:/(?:[^\n]|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\[^pPu]))-(?:[^\]\\]|(\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\[^pPu]))/dgv,name:"constant.other.character-class.range.regexp.ballerina"},{include:"#regex-character-class"},{include:"#unicode-values"},{include:"#unicode-property-escape"}]},{include:"#template-substitution-element"},{include:"#regex-character-class"},{include:"#unicode-values"},{include:"#unicode-property-escape"}]},"self-literal":{patterns:[{captures:{"1":{name:"variable.language.this.ballerina"},"2":{name:"punctuation.accessor.ballerina"},"3":{name:"entity.name.function.ballerina"}},match:/(\bself\b)\p{space}*([^\n])\p{space}*([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(?=\()/dgv},{match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))self\b(?!\$)/dgv,name:"variable.language.this.ballerina"}]},"service-decl":{begin:/\bservice\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/(?=;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)|(?<=\})|(?<=,)/dgv,name:"meta.service.declaration.ballerina",patterns:[{include:"#class-defn"},{include:"#serviceName"},{include:"#serviceOn"},{include:"#serviceBody"},{include:"#objectDec"}]},serviceBody:{patterns:[{include:"#comment"},{include:"#mdDocumentation"},{include:"#documentationDef"},{include:"#decl-block"}]},serviceName:{patterns:[{include:"#string"},{match:/(\/([_\$A-Za-z][_\$0-9A-Za-z]*)|"[_\$A-Za-z][_\$0-9A-Za-z]*")/dgv,name:"entity.service.path.ballerina"}]},serviceOn:{patterns:[{begin:/on/dgv,beginCaptures:{"0":{name:"keyword.other.ballerina"}},end:/(?=\{)/dgv,patterns:[{include:"#code"}]}]},source:{patterns:[{begin:/(\bsource\b)\p{space}+([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.other.ballerina"},"2":{name:"variable.other.readwrite.ballerina"}},end:/(?=,)|(?=;)/dgv}]},statements:{patterns:[{include:"#stringTemplate"},{include:"#declaration"},{include:"#control-statement"},{include:"#decl-block"},{include:"#expression"},{include:"#punctuation-semicolon"},{include:"#string"},{include:"#comment"},{include:"#mdDocumentation"},{include:"#keywords"},{include:"#annotationAttachment"},{include:"#regex"}]},string:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ballerina"}},end:/(")|([^\\\n](?=$|\n))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.ballerina"},"2":{name:"invalid.illegal.newline.ballerina"}},name:"string.quoted.double.ballerina",patterns:[{include:"#string-character-escape"}]}]},"string-character-escape":{patterns:[{match:/\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\{[0-9A-Fa-f]+\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|[^\n]|(?=$|\n))/dgv,name:"constant.character.escape.ballerina"}]},stringTemplate:{patterns:[{begin:/((string)|([_\$A-Za-z][_\$0-9A-Za-z]*))?(`)/dgv,beginCaptures:{"1":{name:"entity.name.function.tagged-template.ballerina"},"2":{name:"support.type.primitive.ballerina"},"4":{name:"punctuation.definition.string.template.begin.ballerina"}},end:/\\?`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.template.end.ballerina"}},name:"string.template.ballerina",patterns:[{include:"#template-substitution-element"},{include:"#string-character-escape"}]}]},strings:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"string.begin.ballerina"}},end:/"/dgv,endCaptures:{"0":{name:"string.end.ballerina"}},patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.ballerina"},{match:/[^\n]/dgv,name:"string"}]}]},"template-substitution-element":{patterns:[{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.ballerina"}},contentName:"meta.embedded.line.ballerina",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.ballerina"}},name:"meta.template.expression.ballerina",patterns:[{include:"#expression"}]}]},templateVariable:{patterns:[{begin:/\$\{/dgv,beginCaptures:{"0":{name:"constant.character.escape.ballerina"}},end:/\}/dgv,endCaptures:{"0":{name:"constant.character.escape.ballerina"}},patterns:[{include:"#code"}]}]},"ternary-expression":{begin:/(?!\?\.\p{space}*[^\p{Nd}])(\?)(?!\?)/dgv,beginCaptures:{"1":{name:"keyword.operator.ternary.ballerina"}},end:/\p{space}*/dgv,endCaptures:{"1":{name:"keyword.operator.ternary.ballerina"}},patterns:[{include:"#expression"}]},tupleType:{patterns:[{begin:/\[/dgv,end:/(?=\]|;)/dgv,patterns:[{include:"#comment"},{include:"#constrainType"},{include:"#paranthesisedBracket"},{match:/\b([_\$A-Za-z][_\$0-9A-Za-z]*)\b/dgv,name:"storage.type.ballerina"}]}]},type:{patterns:[{include:"#comment"},{include:"#string"},{include:"#numbers"},{include:"#type-primitive"},{include:"#type-tuple"}]},"type-annotation":{patterns:[{begin:/(:)/dgv,beginCaptures:{"1":{name:"keyword.operator.type.annotation.ballerina"}},end:/(?<![\:\|\&])((?=(?=$|\n)|(?<=^|\n(?!$))|[\,\)\;\}\]\?\>\=\>]|\/\/)|(?==[^\>])|((?<=[\}\>\]\)]|[_\$A-Za-z])\p{space}*(?=\{)))(\?)?/dgv,name:"meta.type.annotation.ballerina",patterns:[{include:"#booleans"},{include:"#stringTemplate"},{include:"#regex"},{include:"#self-literal"},{include:"#xml"},{include:"#call"},{captures:{"1":{name:"keyword.other.ballerina"},"2":{name:"constant.language.boolean.ballerina"},"3":{name:"keyword.control.ballerina"},"4":{name:"storage.type.ballerina"},"5":{name:"support.type.primitive.ballerina"},"6":{name:"variable.other.readwrite.ballerina"},"8":{name:"punctuation.accessor.ballerina"},"9":{name:"entity.name.function.ballerina"},"10":{name:"punctuation.definition.parameters.begin.ballerina"},"11":{name:"punctuation.definition.parameters.end.ballerina"}},match:/\b(is|new|isolated|null|function|in)\b|\b(true|false)\b|\b(check|foreach|if|checkpanic)\b|\b(readonly|error|map)\b|\b(var)\b|([_\$A-Za-z][_\$0-9A-Za-z]*)((\.)([_\$A-Za-z][_\$0-9A-Za-z]*)(\()(\)))?/dgv},{match:/\?/dgv,name:"keyword.operator.optional.ballerina"},{include:"#multiType"},{include:"#type"},{include:"#paranthesised"}]}]},"type-primitive":{patterns:[{match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(string|int|boolean|float|byte|decimal|json|xml|anydata)(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))/dgv,name:"support.type.primitive.ballerina"}]},"type-tuple":{begin:/\[/dgv,beginCaptures:{"0":{name:"meta.brace.square.ballerina"}},end:/\]/dgv,endCaptures:{"0":{name:"meta.brace.square.ballerina"}},name:"meta.type.tuple.ballerina",patterns:[{include:"#self-literal"},{include:"#booleans"},{match:/\.\.\./dgv,name:"keyword.operator.rest.ballerina"},{captures:{"1":{name:"entity.name.label.ballerina"},"2":{name:"keyword.operator.optional.ballerina"},"3":{name:"punctuation.separator.label.ballerina"}},match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}*(\?)?\p{space}*(:)/dgv},{include:"#identifiers"},{include:"#type"},{include:"#punctuation-comma"}]},typeDefinition:{patterns:[{begin:/(\btype\b)\p{space}+([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.other.ballerina"},"2":{name:"entity.name.type.ballerina"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.statement.ballerina"}},patterns:[{include:"#functionParameters"},{include:"#functionReturns"},{include:"#mdDocumentation"},{include:"#record"},{include:"#string"},{include:"#keywords"},{include:"#multiType"},{include:"#type-primitive"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"variable.other.readwrite.ballerina"},{include:"#type-annotation"},{include:"#typeDescription"},{include:"#decl-block"}]}]},typeDescription:{patterns:[{begin:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,end:/(?=;)/dgv,patterns:[{include:"#numbers"},{include:"#decl-block"},{include:"#type-primitive"},{match:/[_\$A-Za-z][_\$0-9A-Za-z]*/dgv,name:"storage.type.ballerina"}]}]},types:{patterns:[{match:/\b(handle|any|future|typedesc)\b/dgv,name:"storage.type.ballerina"},{match:/\b(boolean|int|string|float|decimal|byte|json|xml|anydata)\b/dgv,name:"support.type.primitive.ballerina"},{match:/\b(map|error|never|readonly|distinct)\b/dgv,name:"storage.type.ballerina"},{match:/\b(stream)\b/dgv,name:"storage.type.ballerina"}]},"unicode-property-escape":{patterns:[{begin:/(\\p|\\P)(\{)/dgv,beginCaptures:{"1":{name:"keyword.other.unicode-property.regexp.ballerina"},"2":{name:"punctuation.other.unicode-property.begin.regexp.ballerina"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.other.unicode-property.end.regexp.ballerina"}},name:"keyword.other.unicode-property.regexp.ballerina",patterns:[{include:"#regex-unicode-properties-general-category"},{include:"#regex-unicode-property-key"}]}]},"unicode-values":{patterns:[{begin:/(\\u)(\{)/dgv,beginCaptures:{"1":{name:"keyword.other.unicode-value.regexp.ballerina"},"2":{name:"punctuation.other.unicode-value.begin.regexp.ballerina"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.other.unicode-value.end.regexp.ballerina"}},name:"keyword.other.unicode-value.ballerina",patterns:[{match:/([0-9A-Fa-f]{1,6})/dgv,name:"constant.other.unicode-value.regexp.ballerina"}]}]},"var-expr":{patterns:[{begin:/(?=\b(var))/dgv,beginCaptures:{"0":{name:"storage.modifier.ballerina support.type.primitive.ballerina"}},end:/(?!\b(var))((?=;|\}|;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)|((?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(?=(if)\p{space}+))|((?<!(?<=^|\n(?!$))string|[^\._\$0-9A-Za-z]string|(?<=^|\n(?!$))int|[^\._\$0-9A-Za-z]int)(?=\p{space}*(?=$|\n))))/dgv,name:"meta.var.expr.ballerina",patterns:[{begin:/\b(var)(?=\p{space}+|\[|\?|\||:)/dgv,beginCaptures:{"0":{name:"support.type.primitive.ballerina"}},end:/(?=\P{space})/dgv},{match:/\|/dgv,name:"keyword.operator.type.annotation.ballerina"},{match:/\bin\b/dgv,name:"keyword.other.ballerina"},{include:"#comment"},{include:"#string"},{include:"#stringTemplate"},{include:"#numbers"},{include:"#multiType"},{include:"#self-literal"},{include:"#var-single-variable"},{include:"#variable-initializer"},{include:"#punctuation-comma"},{include:"#type-annotation"},{include:"#keywords"},{include:"#type-tuple"},{include:"#regex"}]},{include:"#punctuation-comma"},{begin:/(?=\b(const(?!\p{space}+enum\b)))/dgv,end:/(?!\b(const(?!\p{space}+enum\b)))((?=\bannotation\b|;|\}|;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)|((?<!(?<=^|\n(?!$))string|[^\._\$0-9A-Za-z]string|(?<=^|\n(?!$))int|[^\._\$0-9A-Za-z]int)(?=\p{space}*(?=$|\n))))/dgv,name:"meta.var.expr.ballerina",patterns:[{begin:/\b(const(?!\p{space}+enum\b))\p{space}+/dgv,beginCaptures:{"0":{name:"keyword.other.ballerina"}},end:/(?=\P{space})/dgv},{include:"#comment"},{include:"#string"},{include:"#stringTemplate"},{include:"#var-single-const"},{include:"#variable-initializer"},{include:"#punctuation-comma"},{include:"#type-annotation"}]},{include:"#punctuation-comma"},{begin:/(string|int|boolean|float|byte|decimal|json|xml|anydata)(?=\p{space}+|\[|\?|\||:)/dgv,beginCaptures:{"0":{name:"support.type.primitive.ballerina"}},end:/(?!\b(var))((?=;|\}|;|(?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\p{space}*(?:abstract|async|class|const|declare|enum|export|function|import|interface|let|module|namespace|return|service|type|var)\b)|((?<!(?<=^|\n(?!$))string|[^\._\$0-9A-Za-z]string|(?<=^|\n(?!$))int|[^\._\$0-9A-Za-z]int)(?=\p{space}*(?=$|\n))))/dgv,name:"meta.var.expr.ballerina",patterns:[{include:"#xml"},{begin:/(string|int|boolean|float|byte|decimal|json|xml|anydata)(?=\p{space}+|\[|\?|\||:)/dgv,beginCaptures:{"0":{name:"support.type.primitive.ballerina"}},end:/(?=\P{space})/dgv},{match:/\|/dgv,name:"keyword.operator.type.annotation.ballerina"},{include:"#string"},{include:"#stringTemplate"},{include:"#numbers"},{include:"#multiType"},{include:"#var-single-variable"},{include:"#variable-initializer"},{include:"#punctuation-comma"},{include:"#type-annotation"},{include:"#keywords"},{include:"#type-tuple"},{include:"#regex"}]},{include:"#punctuation-comma"}]},"var-single-const":{patterns:[{name:"meta.var-single-variable.expr.ballerina"},{begin:/\b(var)\p{space}*/dgv,beginCaptures:{"0":{name:"support.type.primitive.ballerina"}},end:/(?=\P{space})/dgv},{include:"#types"},{begin:/([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"meta.definition.variable.ballerina variable.other.constant.ballerina"}},end:/(?=(?=$|\n)|(?<=^|\n(?!$))|[\;\,\=\}]|((?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))\p{space}+))/dgv}]},"var-single-variable":{patterns:[{begin:/((string|int|boolean|float|byte|decimal|json|xml|anydata)|\b(readonly|error|map)\b|([_\$A-Za-z][_\$0-9A-Za-z]*))(?=\p{space}+|;|>|\|)/dgv,beginCaptures:{"2":{name:"support.type.primitive.ballerina"},"3":{name:"storage.type.ballerina"},"4":{name:"meta.definition.variable.ballerina variable.other.readwrite.ballerina"}},end:/(?=(?=$|\n)|(?<=^|\n(?!$))|[\;\,\=\}])/dgv,endCaptures:{"0":{name:"punctuation.terminator.statement.ballerina"}},name:"meta.var-single-variable.expr.ballerina",patterns:[{include:"#call"},{include:"#self-literal"},{include:"#if-statement"},{include:"#string"},{include:"#numbers"},{include:"#keywords"}]},{begin:/([_\$A-Za-z][_\$0-9A-Za-z]*)\p{space}+(!)?/dgv,beginCaptures:{"1":{name:"meta.definition.variable.ballerina variable.other.readwrite.ballerina"},"2":{name:"keyword.operator.definiteassignment.ballerina"}},end:/(?=(?=$|\n)|(?<=^|\n(?!$))|[\;\,\=\}]|((?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))\p{space}+))/dgv,name:"meta.var-single-variable.expr.ballerina"}]},"variable-initializer":{patterns:[{begin:/(?<!=|!)(=)(?!=|>)(?=\p{space}*\P{space})/dgv,beginCaptures:{"1":{name:"keyword.operator.assignment.ballerina"}},end:/(?=(?=$|\n)|[\,\)\;\}\]])/dgv,patterns:[{match:/(')([_\$A-Za-z][_\$0-9A-Za-z]*)/dgv,name:"variable.other.property.ballerina"},{include:"#xml"},{include:"#function-defn"},{include:"#expression"},{include:"#punctuation-accessor"},{include:"#regex"}]},{begin:/(?<!=|!)(=)(?!=|>)/dgv,beginCaptures:{"1":{name:"keyword.operator.assignment.ballerina"}},end:/(?=[\,\)\;\}\]]|((?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))\p{space}+))|(?=(?<=^|\n(?!$))\p{space}*(?=$|\n))|(?<=\P{space})(?<!=)(?=\p{space}*(?=$|\n))/dgv,patterns:[{include:"#expression"}]}]},variableDef:{patterns:[{begin:/(?!\+)[_\$A-Za-z][_\$0-9A-Za-z]*(?: |\t)|(?=\()/dgv,beginCaptures:{"0":{name:"storage.type.ballerina"}},end:/[_\$A-Za-z][_\$0-9A-Za-z]*|(?=,)|(?=;)|\.\.\./dgv,patterns:[{include:"#tupleType"},{include:"#constrainType"},{include:"#comment"}]}]},variableDefInline:{patterns:[{begin:/(?=record)|(?=object)/dgv,end:/(?=;)/dgv,patterns:[{include:"#record"},{include:"#objectDec"}]}]},workerBody:{patterns:[{begin:/\{/dgv,end:/(?=\})/dgv,patterns:[{include:"#code"}]}]},workerDef:{patterns:[{begin:/\bworker\b/dgv,beginCaptures:{"0":{name:"keyword.ballerina"}},end:/\}/dgv,patterns:[{include:"#functionReturns"},{include:"#workerBody"}]}]},xml:{patterns:[{begin:/(\bxml)(\p{space}*)(`)/dgv,beginCaptures:{"1":{name:"support.type.primitive.ballerina"},"3":{name:"punctuation.definition.string.template.begin.ballerina"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.template.end.ballerina"}},name:"string.template.ballerina",patterns:[{include:"#xmlTag"},{include:"#xmlComment"},{include:"#templateVariable"},{match:/[^\n]/dgv,name:"string"}]}]},xmlComment:{patterns:[{begin:/<!--/dgv,beginCaptures:{"0":{name:"comment.block.xml.ballerina"}},end:/-->/dgv,endCaptures:{"0":{name:"comment.block.xml.ballerina"}},name:"comment.block.xml.ballerina"}]},xmlDoubleQuotedString:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"string.begin.ballerina"}},end:/"/dgv,endCaptures:{"0":{name:"string.end.ballerina"}},patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.ballerina"},{match:/[^\n]/dgv,name:"string"}]}]},xmlSingleQuotedString:{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"string.begin.ballerina"}},end:/'/dgv,endCaptures:{"0":{name:"string.end.ballerina"}},patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.ballerina"},{match:/[^\n]/dgv,name:"string"}]}]},xmlTag:{patterns:[{begin:/(<\/?\??)\p{space}*([\-_a-zA-Z0-9]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.xml.ballerina"},"2":{name:"entity.name.tag.xml.ballerina"}},end:/\??\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.xml.ballerina"}},patterns:[{include:"#xmlSingleQuotedString"},{include:"#xmlDoubleQuotedString"},{match:/xmlns/dgv,name:"keyword.other.ballerina"},{match:/([a-zA-Z0-9\-]+)/dgv,name:"entity.other.attribute-name.xml.ballerina"}]}]}},scopeName:"source.ballerina",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/bash.d.mts
ADDED
package/dist/bash.mjs
ADDED
package/dist/bat.d.mts
ADDED
package/dist/bat.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Batch File",injections:{"L:meta.block.repeat.batchfile":{patterns:[{include:"#repeatParameter"}]}},name:"bat",patterns:[{include:"#commands"},{include:"#comments"},{include:"#constants"},{include:"#controls"},{include:"#escaped_characters"},{include:"#labels"},{include:"#numbers"},{include:"#operators"},{include:"#parens"},{include:"#strings"},{include:"#variables"}],repository:{command_set:{patterns:[{begin:/(?<=(?<=^|\n(?!$))|[\p{space}\@])SET(?=(?=$|\n)|\p{space})/dgiv,beginCaptures:{"0":{name:"keyword.command.batchfile"}},end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,patterns:[{include:"#command_set_inside"}]}]},command_set_group:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.group.begin.batchfile"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.group.end.batchfile"}},patterns:[{include:"#command_set_inside_arithmetic"}]}]},command_set_inside:{patterns:[{include:"#escaped_characters"},{include:"#variables"},{include:"#numbers"},{include:"#parens"},{include:"#command_set_strings"},{include:"#strings"},{begin:/([^ ][^\=]*)(=)/dgv,beginCaptures:{"1":{name:"variable.other.readwrite.batchfile"},"2":{name:"keyword.operator.assignment.batchfile"}},end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,patterns:[{include:"#escaped_characters"},{include:"#variables"},{include:"#numbers"},{include:"#parens"},{include:"#strings"}]},{begin:/\p{space}+\/[aA]\p{space}+/dgv,end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,name:"meta.expression.set.batchfile",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.batchfile"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.batchfile"}},name:"string.quoted.double.batchfile",patterns:[{include:"#command_set_inside_arithmetic"},{include:"#command_set_group"},{include:"#variables"}]},{include:"#command_set_inside_arithmetic"},{include:"#command_set_group"}]},{begin:/\p{space}+\/[pP]\p{space}+/dgv,end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,patterns:[{include:"#command_set_strings"},{begin:/([^ ][^\=]*)(=)/dgv,beginCaptures:{"1":{name:"variable.other.readwrite.batchfile"},"2":{name:"keyword.operator.assignment.batchfile"}},end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,name:"meta.prompt.set.batchfile",patterns:[{include:"#strings"}]}]}]},command_set_inside_arithmetic:{patterns:[{include:"#command_set_operators"},{include:"#numbers"},{match:/,/dgv,name:"punctuation.separator.batchfile"}]},command_set_operators:{patterns:[{captures:{"1":{name:"variable.other.readwrite.batchfile"},"2":{name:"keyword.operator.assignment.augmented.batchfile"}},match:/([^ ]*)(\+=|-=|\*=|\/=|%%=|&=|\|=|\^=|<<=|>>=)/dgv},{match:/\+|-|\/|\*|%%|\||&|\^|<<|>>|~/dgv,name:"keyword.operator.arithmetic.batchfile"},{match:/!/dgv,name:"keyword.operator.logical.batchfile"},{captures:{"1":{name:"variable.other.readwrite.batchfile"},"2":{name:"keyword.operator.assignment.batchfile"}},match:/([^ \=]*)(=)/dgv}]},command_set_strings:{patterns:[{begin:/(")\p{space}*([^ ][^\=]*)(=)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.batchfile"},"2":{name:"variable.other.readwrite.batchfile"},"3":{name:"keyword.operator.assignment.batchfile"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.batchfile"}},name:"string.quoted.double.batchfile",patterns:[{include:"#variables"},{include:"#numbers"},{include:"#escaped_characters"}]}]},commands:{patterns:[{match:/(?<=(?<=^|\n(?!$))|[\p{space}\@])(?:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scp|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|sftp|shadow|shift|showmount|shutdown|sort|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|wmic|wscript|wsl|xcopy)(?=(?=$|\n)|\p{space})/dgiv,name:"keyword.command.batchfile"},{begin:/(?<=(?<=^|\n(?!$))|[\p{space}\@])(echo)(?:(?=(?=$|\n)|\.|:)|\p{space}+(?:(on|off)(?=\p{space}*(?=$|\n)))?)/dgiv,beginCaptures:{"1":{name:"keyword.command.batchfile"},"2":{name:"keyword.other.special-method.batchfile"}},end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,patterns:[{include:"#escaped_characters"},{include:"#variables"},{include:"#numbers"},{include:"#strings"}]},{captures:{"1":{name:"keyword.command.batchfile"},"2":{name:"keyword.other.special-method.batchfile"}},match:/(?<=(?<=^|\n(?!$))|[\p{space}\@])(setlocal)(?:\p{space}*(?=$|\n)|\p{space}+(EnableExtensions|DisableExtensions|EnableDelayedExpansion|DisableDelayedExpansion)(?=\p{space}*(?=$|\n)))/dgiv},{include:"#command_set"}]},comments:{patterns:[{begin:/(?:(?<=^|\n(?!$))|(&))\p{space}*(?=(:[\+\=\,\;\: ]))/dgv,beginCaptures:{"1":{name:"keyword.operator.conditional.batchfile"}},end:/\n/dgv,patterns:[{begin:/(:[\+\=\,\;\: ])/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.batchfile"}},end:/(?=\n)/dgv,name:"comment.line.colon.batchfile"}]},{begin:/(?<=(?<=^|\n(?!$))|[\p{space}\@])(REM)(\.)/dgiv,beginCaptures:{"1":{name:"keyword.command.rem.batchfile"},"2":{name:"punctuation.separator.batchfile"}},end:/(?=(?=$|\n)\n|[\&\|\>\<\)])/dgv,name:"comment.line.rem.batchfile"},{begin:/(?<=(?<=^|\n(?!$))|[\p{space}\@])rem\b/dgiv,beginCaptures:{"0":{name:"keyword.command.rem.batchfile"}},end:/\n/dgv,name:"comment.line.rem.batchfile",patterns:[{match:/[\>\<\|]/dgv,name:"invalid.illegal.unexpected-character.batchfile"}]}]},constants:{patterns:[{match:/\bNUL\b/dgiv,name:"constant.language.batchfile"}]},controls:{patterns:[{match:/(?<=(?<=^|\n(?!$))|\p{space})(?:call|exit(?=(?=$|\n)|\p{space})|goto(?=(?=$|\n)|\p{space}|:))/dgiv,name:"keyword.control.statement.batchfile"},{captures:{"1":{name:"keyword.control.conditional.batchfile"},"2":{name:"keyword.operator.logical.batchfile"},"3":{name:"keyword.other.special-method.batchfile"}},match:/(?<=(?<=^|\n(?!$))|\p{space})(if)\p{space}+(?:(not)\p{space}+)?(exist|defined|errorlevel|cmdextversion)(?=\p{space})/dgiv},{match:/(?<=(?<=^|\n(?!$))|\p{space})(?:if|else)(?=(?=$|\n)|\p{space})/dgiv,name:"keyword.control.conditional.batchfile"},{begin:/(?<=(?<=^|\n(?!$))|[\p{space}\(\&\^])for(?=\p{space})/dgiv,beginCaptures:{"0":{name:"keyword.control.repeat.batchfile"}},end:/\n/dgv,name:"meta.block.repeat.batchfile",patterns:[{begin:/(?<=[\p{space}\^])in(?=\p{space})/dgiv,beginCaptures:{"0":{name:"keyword.control.repeat.in.batchfile"}},end:/(?<=[\p{space}\)\^])do(?=\p{space})|\n/dgiv,endCaptures:{"0":{name:"keyword.control.repeat.do.batchfile"}},patterns:[{include:"$self"}]},{include:"$self"}]}]},escaped_characters:{patterns:[{match:/%%|\^\^!|\^(?=[^\n])|\^\n/dgv,name:"constant.character.escape.batchfile"}]},labels:{patterns:[{captures:{"1":{name:"punctuation.separator.batchfile"},"2":{name:"keyword.other.special-method.batchfile"}},match:/(?:(?<=^|\n(?!$))\p{space}*|(?<=call|goto)\p{space}*)(:)([^\+\=\,\;\:\p{space}]\P{space}*)/dgiv}]},numbers:{patterns:[{match:/(?<=(?<=^|\n(?!$))|\p{space}|=)(0[xX][0-9A-Fa-f]*|[\+\-]?\p{Nd}+)(?=(?=$|\n)|\p{space}|<|>)/dgv,name:"constant.numeric.batchfile"}]},operators:{patterns:[{match:/@(?=\P{space})/dgv,name:"keyword.operator.at.batchfile"},{match:/(?<=\p{space})(?:EQU|NEQ|LSS|LEQ|GTR|GEQ)(?=\p{space})|==/dgiv,name:"keyword.operator.comparison.batchfile"},{match:/(?<=\p{space})(NOT)(?=\p{space})/dgiv,name:"keyword.operator.logical.batchfile"},{match:/(?<!\^)&&?|\|\|/dgv,name:"keyword.operator.conditional.batchfile"},{match:/(?<!\^)\|/dgv,name:"keyword.operator.pipe.batchfile"},{match:/<&?|>[\&\>]?/dgv,name:"keyword.operator.redirection.batchfile"}]},parens:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.group.begin.batchfile"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.group.end.batchfile"}},name:"meta.group.batchfile",patterns:[{match:/,|;/dgv,name:"punctuation.separator.batchfile"},{include:"$self"}]}]},repeatParameter:{patterns:[{captures:{"1":{name:"punctuation.definition.variable.batchfile"}},match:/(%%)(?:~[FfDdPpNnXxSsſAaTtZz]*(?:\$[Pp][Aa][Tt][Hh]:)?)?[a-zA-Z]/dgv,name:"variable.parameter.repeat.batchfile"}]},strings:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.batchfile"}},end:/(")|(\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.batchfile"},"2":{name:"invalid.illegal.newline.batchfile"}},name:"string.quoted.double.batchfile",patterns:[{match:/%%/dgv,name:"constant.character.escape.batchfile"},{include:"#variables"}]}]},variable:{patterns:[{begin:/%(?=[^\%]+%)/dgv,beginCaptures:{"0":{name:"punctuation.definition.variable.begin.batchfile"}},end:/(%)|\n/dgv,endCaptures:{"1":{name:"punctuation.definition.variable.end.batchfile"}},name:"variable.other.readwrite.batchfile",patterns:[{begin:/:~/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=%|\n)/dgv,name:"meta.variable.substring.batchfile",patterns:[{include:"#variable_substring"}]},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=%|\n)/dgv,name:"meta.variable.substitution.batchfile",patterns:[{include:"#variable_replace"},{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=%|\n)/dgv,patterns:[{include:"#variable_delayed_expansion"},{match:/[^\%]+/dgv,name:"string.unquoted.batchfile"}]}]}]}]},variable_delayed_expansion:{patterns:[{begin:/!(?=[^\!]+!)/dgv,beginCaptures:{"0":{name:"punctuation.definition.variable.begin.batchfile"}},end:/(!)|\n/dgv,endCaptures:{"1":{name:"punctuation.definition.variable.end.batchfile"}},name:"variable.other.readwrite.batchfile",patterns:[{begin:/:~/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=!|\n)/dgv,name:"meta.variable.substring.batchfile",patterns:[{include:"#variable_substring"}]},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=!|\n)/dgv,name:"meta.variable.substitution.batchfile",patterns:[{include:"#escaped_characters"},{include:"#variable_replace"},{include:"#variable"},{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.batchfile"}},end:/(?=!|\n)/dgv,patterns:[{include:"#variable"},{match:/[^\!]+/dgv,name:"string.unquoted.batchfile"}]}]}]}]},variable_replace:{patterns:[{match:/[^\=\%\!\n]+/dgv,name:"string.unquoted.batchfile"}]},variable_substring:{patterns:[{captures:{"1":{name:"constant.numeric.batchfile"},"2":{name:"punctuation.separator.batchfile"},"3":{name:"constant.numeric.batchfile"}},match:/([\+\-]?\p{Nd}+)(?:(,)([\+\-]?\p{Nd}+))?/dgv}]},variables:{patterns:[{captures:{"1":{name:"punctuation.definition.variable.batchfile"}},match:/(%)(?:(?:~[fdpnxsatz]*(?:\$PATH:)?)?\p{Nd}|\*)/dgiv,name:"variable.parameter.batchfile"},{include:"#variable"},{include:"#variable_delayed_expansion"}]}},scopeName:"source.batchfile",embeddedLangs:undefined,aliases:["batch"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/batch.d.mts
ADDED
package/dist/batch.mjs
ADDED
package/dist/be.d.mts
ADDED
package/dist/be.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Beancount",fileTypes:["beancount"],name:"beancount",patterns:[{comment:"Comments",match:/;[^\n]*/dgv,name:"comment.line.beancount"},{begin:/(?<=^|\n(?!$))\p{space}*(poptag|pushtag)\p{space}+(#)([A-Za-z0-9\-_\/\.]+)/dgv,beginCaptures:{"1":{name:"support.function.beancount"},"2":{name:"keyword.operator.tag.beancount"},"3":{name:"entity.name.tag.beancount"}},comment:"Tag directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.tag.beancount",patterns:[{include:"#comments"},{include:"#illegal"}]},{begin:/(?<=^|\n(?!$))\p{space}*(include)\p{space}+("[^\n]*")/dgv,beginCaptures:{"1":{name:"support.function.beancount"},"2":{name:"string.quoted.double.beancount"}},comment:"Include directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.include.beancount",patterns:[{include:"#comments"},{include:"#illegal"}]},{begin:/(?<=^|\n(?!$))\p{space}*(option)\p{space}+("[^\n]*")\p{space}+("[^\n]*")/dgv,beginCaptures:{"1":{name:"support.function.beancount"},"2":{name:"support.variable.beancount"},"3":{name:"string.quoted.double.beancount"}},comment:"Option directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.option.beancount",patterns:[{include:"#comments"},{include:"#illegal"}]},{begin:/(?<=^|\n(?!$))\p{space}*(plugin)\p{space}*("([^\n]*?)")\p{space}*("[^\n]*?")?/dgv,beginCaptures:{"1":{name:"support.function.beancount"},"2":{name:"string.quoted.double.beancount"},"3":{name:"entity.name.function.beancount"},"4":{name:"string.quoted.double.beancount"}},comment:"Plugin directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"keyword.operator.directive.beancount",patterns:[{include:"#comments"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}+(open|close|pad)\b/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.beancount"}},comment:"Open/Close/Pad directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#account"},{include:"#commodity"},{match:/,/dgv,name:"punctuation.separator.beancount"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}+(custom)\b/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.beancount"}},comment:"Custom directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#string"},{include:"#bool"},{include:"#amount"},{include:"#number"},{include:"#date"},{include:"#account"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}(event)/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"}},comment:"Event directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#string"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}(commodity)/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"}},comment:"Commodity directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#commodity"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}(note|document)/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"}},comment:"Note/Document directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#account"},{include:"#string"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}(price)/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"}},comment:"Price directives",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#commodity"},{include:"#amount"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}(balance)/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"}},comment:"Balance directives",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.dated.beancount",patterns:[{include:"#comments"},{include:"#meta"},{include:"#account"},{include:"#amount"},{include:"#illegal"}]},{begin:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})\p{space}*(txn|[\*\!\&\#\?\%PSTCURM])\p{space}*("[^\n]*?")?\p{space}*("[^\n]*?")?/dgv,beginCaptures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"},"6":{name:"support.function.directive.beancount"},"7":{name:"string.quoted.tiers.beancount"},"8":{name:"string.quoted.narration.beancount"}},comment:"Transaction directive",end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}))/dgv,name:"meta.directive.transaction.beancount",patterns:[{include:"#comments"},{include:"#posting"},{include:"#meta"},{include:"#tag"},{include:"#link"},{include:"#illegal"}]}],repository:{account:{begin:/([A-Z][a-z]+)(:)/dgv,beginCaptures:{"1":{name:"variable.language.beancount"},"2":{name:"punctuation.separator.beancount"}},end:/\p{space}/dgv,name:"meta.account.beancount",patterns:[{begin:/(\P{space}+)([\:]?)/dgv,beginCaptures:{"1":{name:"variable.other.account.beancount"},"2":{name:"punctuation.separator.beancount"}},comment:"Sub accounts",end:/([\:]?)|(\p{space})/dgv,patterns:[{include:"$self"},{include:"#illegal"}]}]},amount:{captures:{"1":{name:"keyword.operator.modifier.beancount"},"2":{name:"constant.numeric.currency.beancount"},"3":{name:"entity.name.type.commodity.beancount"}},match:/([\-\|\+]?)(\p{Nd}+(?:,\p{Nd}{3})*(?:\.\p{Nd}*)?)\p{space}*([A-Z][A-Z0-9'\._\-]{0,22}[A-Z0-9])/dgv,name:"meta.amount.beancount"},bool:{captures:{"0":{name:"constant.language.bool.beancount"},"2":{name:"constant.numeric.currency.beancount"},"3":{name:"entity.name.type.commodity.beancount"}},match:/TRUE|FALSE/dgv},comments:{captures:{"1":{name:"comment.line.beancount"}},match:/(;[^\n]*)(?=$|\n)/dgv},commodity:{match:/([A-Z][A-Z0-9'\._\-]{0,22}[A-Z0-9])/dgv,name:"entity.name.type.commodity.beancount"},cost:{begin:/\{\{?/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.beancount"}},end:/\}\}?/dgv,endCaptures:{"0":{name:"keyword.operator.assignment.beancount"}},name:"meta.cost.beancount",patterns:[{include:"#amount"},{include:"#date"},{match:/,/dgv,name:"punctuation.separator.beancount"},{include:"#illegal"}]},date:{captures:{"1":{name:"constant.numeric.date.year.beancount"},"2":{name:"punctuation.separator.beancount"},"3":{name:"constant.numeric.date.month.beancount"},"4":{name:"punctuation.separator.beancount"},"5":{name:"constant.numeric.date.day.beancount"}},match:/(\p{Nd}{4})([\-\|\/])(\p{Nd}{2})([\-\|\/])(\p{Nd}{2})/dgv,name:"meta.date.beancount"},flag:{match:/(?<=\p{space})([\*\!\&\#\?\%PSTCURM])(?=\p{space}+)/dgv,name:"keyword.other.beancount"},illegal:{match:/[^\p{space}]/dgv,name:"invalid.illegal.unrecognized.beancount"},link:{captures:{"1":{name:"keyword.operator.link.beancount"},"2":{name:"markup.underline.link.beancount"}},match:/(\^)([A-Za-z0-9\-_\/\.]+)/dgv},meta:{begin:/(?<=^|\n(?!$))\p{space}*([a-z][A-Za-z0-9\-_]+)([\:])/dgv,beginCaptures:{"1":{name:"keyword.operator.directive.beancount"},"2":{name:"punctuation.separator.beancount"}},end:/\n/dgv,name:"meta.meta.beancount",patterns:[{include:"#string"},{include:"#account"},{include:"#bool"},{include:"#commodity"},{include:"#date"},{include:"#tag"},{include:"#amount"},{include:"#number"},{include:"#comments"},{include:"#illegal"}]},number:{captures:{"1":{name:"keyword.operator.modifier.beancount"},"2":{name:"constant.numeric.currency.beancount"}},match:/([\-\|\+]?)(\p{Nd}+(?:,\p{Nd}{3})*(?:\.\p{Nd}*)?)/dgv},posting:{begin:/(?<=^|\n(?!$))\p{space}+(?=([A-Z\!]))/dgv,end:/(?=((?<=^|\n(?!$))\p{space}*(?=$|\n)|(?<=^|\n(?!$))\P{space}|(?<=^|\n(?!$))\p{space}*[A-Z]))/dgv,name:"meta.posting.beancount",patterns:[{include:"#meta"},{include:"#comments"},{include:"#flag"},{include:"#account"},{include:"#amount"},{include:"#cost"},{include:"#date"},{include:"#price"},{include:"#illegal"}]},price:{begin:/@@?/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.beancount"}},end:/(?=(;|\n))/dgv,name:"meta.price.beancount",patterns:[{include:"#amount"},{include:"#illegal"}]},string:{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.beancount",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.beancount"}]},tag:{captures:{"1":{name:"keyword.operator.tag.beancount"},"2":{name:"entity.name.tag.beancount"}},match:/(#)([A-Za-z0-9\-_\/\.]+)/dgv}},scopeName:"text.beancount",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/berry.d.mts
ADDED
package/dist/berry.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Berry",name:"berry",patterns:[{include:"#controls"},{include:"#strings"},{include:"#comment-block"},{include:"#comments"},{include:"#keywords"},{include:"#function"},{include:"#member"},{include:"#identifier"},{include:"#number"},{include:"#operator"}],repository:{"comment-block":{begin:/#-/dgv,end:/-#/dgv,name:"comment.berry",patterns:[{}]},comments:{begin:/#/dgv,end:/\n/dgv,name:"comment.line.berry",patterns:[{}]},controls:{patterns:[{match:/\b(if|elif|else|for|while|do|end|break|continue|return|try|except|raise)\b/dgv,name:"keyword.control.berry"}]},function:{patterns:[{match:/\b([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*(?=\p{space}*\())/dgv,name:"entity.name.function.berry"}]},identifier:{patterns:[{match:/\b[_A-Za-z][\p{L}\p{M}\p{N}\p{Pc}]+\b/dgv,name:"identifier.berry"}]},keywords:{patterns:[{match:/\b(var|static|def|class|true|false|nil|self|super|import|as|_class)\b/dgv,name:"keyword.berry"}]},member:{patterns:[{captures:{"0":{name:"entity.other.attribute-name.berry"}},match:/\.([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv}]},number:{patterns:[{match:/0x[a-fA-F0-9]+|\p{Nd}+|(\p{Nd}+\.?|\.\p{Nd})\p{Nd}*([eE][\+\-]?\p{Nd}+)?/dgv,name:"constant.numeric.berry"}]},operator:{patterns:[{match:/\(|\)|\[|\]|\.|-|!|~|\*|\/|%|\+|&|\^|\||<|>|=|:/dgv,name:"keyword.operator.berry"}]},strings:{patterns:[{begin:/("|')/dgv,end:/\1()/dgv,name:"string.quoted.double.berry",patterns:[{match:/(\\x[\p{AHex}]{2})|(\\[0-7]{3})|(\\\\)|(\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)/dgv,name:"constant.character.escape.berry"}]},{begin:/f("|')/dgv,end:/\1()/dgv,name:"string.quoted.other.berry",patterns:[{match:/(\\x[\p{AHex}]{2})|(\\[0-7]{3})|(\\\\)|(\\")|(\\')|(\\a)|(\\b)|(\\f)|(\\n)|(\\r)|(\\t)|(\\v)/dgv,name:"constant.character.escape.berry"},{match:/\{\{[^\}]*\}\}/dgv,name:"string.quoted.other.berry"},{begin:/\{/dgv,end:/\}/dgv,name:"keyword.other.unit.berry",patterns:[{include:"#keywords"},{include:"#numbers"},{include:"#identifier"},{include:"#operator"},{include:"#member"},{include:"#function"}]}]}]}},scopeName:"source.berry",embeddedLangs:undefined,aliases:["be"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/bibtex.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"BibTeX",name:"bibtex",patterns:[{captures:{"0":{name:"punctuation.definition.comment.bibtex"}},match:/@comment(?=[\p{space}\{\(])/dgiv,name:"comment.block.at-sign.bibtex"},{begin:/((@)preamble)\p{space}*(\{)\p{space}*/dgiv,beginCaptures:{"1":{name:"keyword.other.preamble.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.preamble.begin.bibtex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.preamble.end.bibtex"}},name:"meta.preamble.braces.bibtex",patterns:[{include:"#field_value"}]},{begin:/((@)preamble)\p{space}*(\()\p{space}*/dgiv,beginCaptures:{"1":{name:"keyword.other.preamble.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.preamble.begin.bibtex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.preamble.end.bibtex"}},name:"meta.preamble.parenthesis.bibtex",patterns:[{include:"#field_value"}]},{begin:/((@)[Ssſ][Tt][Rr][Ii][Nn][Gg])\p{space}*(\{)\p{space}*([a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)/dgv,beginCaptures:{"1":{name:"keyword.other.string-constant.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.string-constant.begin.bibtex"},"4":{name:"variable.other.bibtex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.string-constant.end.bibtex"}},name:"meta.string-constant.braces.bibtex",patterns:[{include:"#field_value"}]},{begin:/((@)[Ssſ][Tt][Rr][Ii][Nn][Gg])\p{space}*(\()\p{space}*([a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)/dgv,beginCaptures:{"1":{name:"keyword.other.string-constant.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.string-constant.begin.bibtex"},"4":{name:"variable.other.bibtex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.string-constant.end.bibtex"}},name:"meta.string-constant.parenthesis.bibtex",patterns:[{include:"#field_value"}]},{begin:/((@)[a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)\p{space}*(\{)\p{space}*([^\p{space}\,\}]*)/dgv,beginCaptures:{"1":{name:"keyword.other.entry-type.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.entry.begin.bibtex"},"4":{name:"entity.name.type.entry-key.bibtex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.entry.end.bibtex"}},name:"meta.entry.braces.bibtex",patterns:[{begin:/([a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)\p{space}*(=)/dgv,beginCaptures:{"1":{name:"support.function.key.bibtex"},"2":{name:"punctuation.separator.key-value.bibtex"}},end:/(?=[\,\}])/dgv,name:"meta.key-assignment.bibtex",patterns:[{include:"#field_value"}]}]},{begin:/((@)[a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)\p{space}*(\()\p{space}*([^\p{space}\,]*)/dgv,beginCaptures:{"1":{name:"keyword.other.entry-type.bibtex"},"2":{name:"punctuation.definition.keyword.bibtex"},"3":{name:"punctuation.section.entry.begin.bibtex"},"4":{name:"entity.name.type.entry-key.bibtex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.entry.end.bibtex"}},name:"meta.entry.parenthesis.bibtex",patterns:[{begin:/([a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*)\p{space}*(=)/dgv,beginCaptures:{"1":{name:"support.function.key.bibtex"},"2":{name:"punctuation.separator.key-value.bibtex"}},end:/(?=[\,\)])/dgv,name:"meta.key-assignment.bibtex",patterns:[{include:"#field_value"}]}]},{begin:/[^\@\n]/dgv,end:/(?=@)/dgv,name:"comment.block.bibtex"}],repository:{field_value:{patterns:[{include:"#string_content"},{include:"#integer"},{include:"#string_var"},{match:/#/dgv,name:"keyword.operator.bibtex"}]},integer:{captures:{"1":{name:"constant.numeric.bibtex"}},match:/\p{space}*(\p{Nd}+)\p{space}*/dgv},nested_braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.group.begin.bibtex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.group.end.bibtex"}},patterns:[{include:"#nested_braces"}]},string_content:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.bibtex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.bibtex"}},patterns:[{include:"#nested_braces"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.bibtex"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.bibtex"}},patterns:[{include:"#nested_braces"}]}]},string_var:{captures:{"0":{name:"support.variable.bibtex"}},match:/[a-zA-Z\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~][a-zA-Z0-9\!\$\&\*\+\-\.\/\:\;\<\>\?\@\[\\\]\^_\`\|\~]*/dgv}},scopeName:"text.bibtex",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/bicep.d.mts
ADDED
package/dist/bicep.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Bicep",fileTypes:[".bicep"],name:"bicep",patterns:[{include:"#expression"},{include:"#comments"}],repository:{"array-literal":{begin:/\[(?!(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\bfor\b)/dgv,end:/\]/dgv,name:"meta.array-literal.bicep",patterns:[{include:"#expression"},{include:"#comments"}]},"block-comment":{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.bicep"},comments:{patterns:[{include:"#line-comment"},{include:"#block-comment"}]},decorator:{begin:/@(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*(?=\b[_\$A-Za-z][_\$0-9A-Za-z]*\b)/dgv,end:"",name:"meta.decorator.bicep",patterns:[{include:"#expression"},{include:"#comments"}]},directive:{begin:/#\b[_a-zA-Z\-0-9]+\b/dgv,end:/(?=$|\n)/dgv,name:"meta.directive.bicep",patterns:[{include:"#directive-variable"},{include:"#comments"}]},"directive-variable":{match:/\b[_a-zA-Z\-0-9]+\b/dgv,name:"keyword.control.declaration.bicep"},"escape-character":{match:/\\(u\{[0-9A-Fa-f]+\}|n|r|t|\\|'|\$\{)/dgv,name:"constant.character.escape.bicep"},expression:{patterns:[{include:"#string-literal"},{include:"#string-verbatim"},{include:"#numeric-literal"},{include:"#named-literal"},{include:"#object-literal"},{include:"#array-literal"},{include:"#keyword"},{include:"#identifier"},{include:"#function-call"},{include:"#decorator"},{include:"#lambda-start"},{include:"#directive"}]},"function-call":{begin:/(\b[_\$A-Za-z][_\$0-9A-Za-z]*\b)(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\(/dgv,beginCaptures:{"1":{name:"entity.name.function.bicep"}},end:/\)/dgv,name:"meta.function-call.bicep",patterns:[{include:"#expression"},{include:"#comments"}]},identifier:{match:/\b[_\$A-Za-z][_\$0-9A-Za-z]*\b(?!(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\()/dgv,name:"variable.other.readwrite.bicep"},keyword:{match:/\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with|using|extends|func|assert|extension)\b/dgv,name:"keyword.control.declaration.bicep"},"lambda-start":{begin:/(\((?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\b[_\$A-Za-z][_\$0-9A-Za-z]*\b(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*(,(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\b[_\$A-Za-z][_\$0-9A-Za-z]*\b(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*)*\)|\((?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\)|(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*\b[_\$A-Za-z][_\$0-9A-Za-z]*\b(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*)(?=(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*=>)/dgv,beginCaptures:{"1":{name:"meta.undefined.bicep",patterns:[{include:"#identifier"},{include:"#comments"}]}},end:/(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*=>/dgv,name:"meta.lambda-start.bicep"},"line-comment":{match:/\/\/[^\n]*(?=(?=$|\n))/dgv,name:"comment.line.double-slash.bicep"},"named-literal":{match:/\b(true|false|null)\b/dgv,name:"constant.language.bicep"},"numeric-literal":{match:/\p{Nd}+/dgv,name:"constant.numeric.bicep"},"object-literal":{begin:/\{/dgv,end:/\}/dgv,name:"meta.object-literal.bicep",patterns:[{include:"#object-property-key"},{include:"#expression"},{include:"#comments"}]},"object-property-key":{match:/\b[_\$A-Za-z][_\$0-9A-Za-z]*\b(?=(?:[ \t\r\n]|\/\*(?:\*(?!\/)|[^\*])*\*\/)*:)/dgv,name:"variable.other.property.bicep"},"string-literal":{begin:/'(?!'')/dgv,end:/'/dgv,name:"string.quoted.single.bicep",patterns:[{include:"#escape-character"},{include:"#string-literal-subst"}]},"string-literal-subst":{begin:/(?<!\\)(\$\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.template-expression.begin.bicep"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.template-expression.end.bicep"}},name:"meta.string-literal-subst.bicep",patterns:[{include:"#expression"},{include:"#comments"}]},"string-verbatim":{begin:/'''/dgv,end:/'''(?!')/dgv,name:"string.quoted.multi.bicep",patterns:[]}},scopeName:"source.bicep",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/blade.d.mts
ADDED