@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
package/dist/apex.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Apex",fileTypes:["apex","cls","trigger"],name:"apex",patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#directives"},{include:"#declarations"},{include:"#script-top-level"}],repository:{"annotation-declaration":{begin:/([\@][_A-Za-z]+)\b/dgv,beginCaptures:{"1":{name:"storage.type.annotation.apex"}},end:/(?<=\)|(?=$|\n))/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"argument-list":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#named-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"array-creation-expression":{begin:new EmulatedRegExp("\\b(new)\\b\\p{space}*(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)?\\p{space}*(?=\\[)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.new.apex"},"2":{patterns:[{include:"#support-type"},{include:"#type"}]}},end:/(?<=\])/dgv,patterns:[{include:"#bracketed-argument-list"}]},block:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#statement"}]},"boolean-literal":{patterns:[{match:/(?<!\.)\btrue\b/dgv,name:"constant.language.boolean.true.apex"},{match:/(?<!\.)\bfalse\b/dgv,name:"constant.language.boolean.false.apex"}]},"bracketed-argument-list":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.squarebracket.open.apex"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.apex"}},patterns:[{include:"#soql-query-expression"},{include:"#named-argument"},{include:"#expression"},{include:"#punctuation-comma"}]},"break-or-continue-statement":{captures:{"1":{name:"keyword.control.flow.break.apex"},"2":{name:"keyword.control.flow.continue.apex"}},match:/(?<!\.)\b(?:(break)|(continue))\b/dgv},"cast-expression":{captures:{"1":{name:"punctuation.parenthesis.open.apex"},"2":{patterns:[{include:"#support-type"},{include:"#type"}]},"6":{name:"punctuation.parenthesis.close.apex"}},match:new EmulatedRegExp("(\\()\\p{space}*(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*(\\))(?=\\p{space}*@?[_0-9A-Za-z\\(])","dgv",{"useEmulationGroups":true})},"catch-clause":{begin:/(?<!\.)\b(catch)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.catch.apex"}},end:/(?<=\})/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{captures:{"1":{patterns:[{include:"#support-type"},{include:"#type"}]},"5":{name:"entity.name.variable.local.apex"}},match:new EmulatedRegExp("(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($2$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($3$E$($2$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($4$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*(?:(($2$E$@?[_A-Za-z][_0-9A-Za-z]*))\\b)?","dgv",{"useEmulationGroups":true})}]},{include:"#comment"},{include:"#block"}]},"class-declaration":{begin:/(?=\bclass\b)/dgv,end:/(?<=\})/dgv,patterns:[{begin:/\b(class)\b\p{space}+(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.class.apex"},"2":{name:"entity.name.type.class.apex"}},end:/(?=\{)/dgv,patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"},{include:"#extends-class"},{include:"#implements-class"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#class-or-trigger-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"class-or-trigger-members":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#storage-modifier"},{include:"#sharing-modifier"},{include:"#type-declarations"},{include:"#field-declaration"},{include:"#property-declaration"},{include:"#indexer-declaration"},{include:"#variable-initializer"},{include:"#constructor-declaration"},{include:"#method-declaration"},{include:"#punctuation-semicolon"}]},"colon-expression":{match:/:/dgv,name:"keyword.operator.conditional.colon.apex"},comment:{patterns:[{begin:/\/\*(\*)?/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.apex"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.apex"}},name:"comment.block.apex"},{begin:/((?<=^|\n(?!$))\p{space}+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.apex"}},end:/(?=(?=$|\n))/dgv,patterns:[{begin:/(?<!\/)\/\/\/(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.apex"}},end:/(?=(?=$|\n))/dgv,name:"comment.block.documentation.apex",patterns:[{include:"#xml-doc-comment"}]},{begin:/(?<!\/)\/\/(?:(?!\/)|(?=\/\/))/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.apex"}},end:/(?=(?=$|\n))/dgv,name:"comment.line.double-slash.apex"}]}]},"conditional-operator":{begin:/(?<!\?)\?(?!\?|\.|\[)/dgv,beginCaptures:{"0":{name:"keyword.operator.conditional.question-mark.apex"}},end:/:/dgv,endCaptures:{"0":{name:"keyword.operator.conditional.colon.apex"}},patterns:[{include:"#expression"}]},"constructor-declaration":{begin:/(?=@?[_A-Za-z][_0-9A-Za-z]*\p{space}*\()/dgv,end:/(?<=\})|(?=;)/dgv,patterns:[{captures:{"1":{name:"entity.name.function.apex"}},match:/(@?[_A-Za-z][_0-9A-Za-z]*)\b/dgv},{begin:/(:)/dgv,beginCaptures:{"1":{name:"punctuation.separator.colon.apex"}},end:/(?=\{|=>)/dgv,patterns:[{include:"#constructor-initializer"}]},{include:"#parenthesized-parameter-list"},{include:"#comment"},{include:"#expression-body"},{include:"#block"}]},"constructor-initializer":{begin:/\b(this)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.other.this.apex"}},end:/(?<=\))/dgv,patterns:[{include:"#argument-list"}]},"date-literal-with-params":{captures:{"1":{name:"keyword.operator.query.date.apex"}},match:/\b((LAST_N_DAYS|NEXT_N_DAYS|NEXT_N_WEEKS|LAST_N_WEEKS|NEXT_N_MONTHS|LAST_N_MONTHS|NEXT_N_QUARTERS|LAST_N_QUARTERS|NEXT_N_YEARS|LAST_N_YEARS|NEXT_N_FISCAL_QUARTERS|LAST_N_FISCAL_QUARTERS|NEXT_N_FISCAL_YEARS|LAST_N_FISCAL_YEARS)\p{space}*:\p{Nd}+)\b/dgv},"date-literals":{captures:{"1":{name:"keyword.operator.query.date.apex"}},match:/\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\b\p{space}*/dgv},declarations:{patterns:[{include:"#type-declarations"},{include:"#punctuation-semicolon"}]},directives:{patterns:[{include:"#punctuation-semicolon"}]},"do-statement":{begin:/(?<!\.)\b(do)\b/dgv,beginCaptures:{"1":{name:"keyword.control.loop.do.apex"}},end:/(?=;|\})/dgv,patterns:[{include:"#statement"}]},"element-access-expression":{begin:/(?:(\??\.)\p{space}*)?(?:(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*)?(?:(\?)\p{space}*)?(?=\[)/dgv,beginCaptures:{"1":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},"2":{name:"variable.other.object.property.apex"},"3":{name:"keyword.operator.null-conditional.apex"}},end:/(?<=\])(?!\p{space}*\[)/dgv,patterns:[{include:"#bracketed-argument-list"}]},"else-part":{begin:/(?<!\.)\b(else)\b/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.else.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{include:"#statement"}]},"enum-declaration":{begin:/(?=\benum\b)/dgv,end:/(?<=\})/dgv,patterns:[{begin:/(?=enum)/dgv,end:/(?=\{)/dgv,patterns:[{include:"#javadoc-comment"},{include:"#comment"},{captures:{"1":{name:"keyword.other.enum.apex"},"2":{name:"entity.name.type.enum.apex"}},match:/(enum)\p{space}+(@?[_A-Za-z][_0-9A-Za-z]*)/dgv}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#punctuation-comma"},{begin:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,beginCaptures:{"0":{name:"entity.name.variable.enum-member.apex"}},end:/(?=(,|\}))/dgv,patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#variable-initializer"}]}]},{include:"#javadoc-comment"},{include:"#comment"}]},expression:{patterns:[{include:"#comment"},{include:"#merge-expression"},{include:"#support-expression"},{include:"#throw-expression"},{include:"#this-expression"},{include:"#trigger-context-declaration"},{include:"#conditional-operator"},{include:"#expression-operators"},{include:"#soql-query-expression"},{include:"#object-creation-expression"},{include:"#array-creation-expression"},{include:"#invocation-expression"},{include:"#member-access-expression"},{include:"#element-access-expression"},{include:"#cast-expression"},{include:"#literal"},{include:"#parenthesized-expression"},{include:"#initializer-expression"},{include:"#identifier"}]},"expression-body":{begin:/=>/dgv,beginCaptures:{"0":{name:"keyword.operator.arrow.apex"}},end:/(?=[\,\)\;\}])/dgv,patterns:[{include:"#expression"}]},"expression-operators":{patterns:[{match:/\*=|\/=|%=|\+=|-=/dgv,name:"keyword.operator.assignment.compound.apex"},{match:/&=|\^=|<<=|>>=|\|=/dgv,name:"keyword.operator.assignment.compound.bitwise.apex"},{match:/<<|>>/dgv,name:"keyword.operator.bitwise.shift.apex"},{match:/==|!=/dgv,name:"keyword.operator.comparison.apex"},{match:/<=|>=|<|>/dgv,name:"keyword.operator.relational.apex"},{match:/!|&&|\|\|/dgv,name:"keyword.operator.logical.apex"},{match:/&|~|\^|\|/dgv,name:"keyword.operator.bitwise.apex"},{match:/=/dgv,name:"keyword.operator.assignment.apex"},{match:/--/dgv,name:"keyword.operator.decrement.apex"},{match:/\+\+/dgv,name:"keyword.operator.increment.apex"},{match:/%|\*|\/|-|\+/dgv,name:"keyword.operator.arithmetic.apex"}]},"extends-class":{begin:/(extends)\b\p{space}+([_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.other.extends.apex"},"2":{name:"entity.name.type.extends.apex"}},end:/(?=\{|implements)/dgv},"field-declaration":{begin:new EmulatedRegExp("(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($2$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($3$E$($2$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($4$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+(($2$E$@?[_A-Za-z][_0-9A-Za-z]*))\\p{space}*(?!=>|==)(?=,|;|=|(?=$|\\n))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#support-type"},{include:"#type"}]},"5":{name:"entity.name.variable.field.apex"}},end:/(?=;)/dgv,patterns:[{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.variable.field.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"},{include:"#class-or-trigger-members"}]},"finally-clause":{begin:/(?<!\.)\b(finally)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.finally.apex"}},end:/(?<=\})/dgv,patterns:[{include:"#comment"},{include:"#block"}]},"for-apex-syntax":{captures:{"1":{patterns:[{include:"#support-type"},{include:"#type"}]},"2":{name:"entity.name.variable.local.apex"},"3":{name:"keyword.operator.iterator.colon.apex"}},match:/([_\.A-Za-z][_\.0-9A-Za-z]+)\p{space}+([_\.A-Za-z][_\.0-9A-Za-z]*)\p{space}*(:)/dgv},"for-statement":{begin:/(?<!\.)\b(for)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.control.loop.for.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#for-apex-syntax"},{include:"#local-variable-declaration"},{include:"#expression"},{include:"#punctuation-comma"},{include:"#punctuation-semicolon"},{include:"#colon-expression"}]},{include:"#statement"}]},"from-clause":{captures:{"1":{name:"keyword.operator.query.from.apex"},"2":{name:"storage.type.apex"}},match:/(FROM)\b\p{space}*([_\.0-9A-Za-z]+\b)?/dgv},"goto-statement":{begin:/(?<!\.)\b(goto)\b/dgv,beginCaptures:{"1":{name:"keyword.control.goto.apex"}},end:/(?=;)/dgv,patterns:[{begin:/\b(case)\b/dgv,beginCaptures:{"1":{name:"keyword.control.case.apex"}},end:/(?=;)/dgv,patterns:[{include:"#expression"}]},{captures:{"1":{name:"keyword.control.default.apex"}},match:/\b(default)\b/dgv},{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.label.apex"}]},identifier:{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"variable.other.readwrite.apex"},"if-statement":{begin:/(?<!\.)\b(if)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.if.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"implements-class":{begin:/(implements)\b\p{space}+([_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.other.implements.apex"},"2":{name:"entity.name.type.implements.apex"}},end:/(?=\{|extends)/dgv},"indexer-declaration":{begin:new EmulatedRegExp("(?<return_type>(?<type_name>(?:ref\\p{space}+)?(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+)(?<interface_name>($2$E$(?:ref\\p{space}+)?(?:($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*\\.\\p{space}*)?(?<indexer_name>this)\\p{space}*(?=\\[)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#type"}]},"6":{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},"7":{name:"keyword.other.this.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{include:"#comment"},{include:"#property-accessors"},{include:"#expression-body"},{include:"#variable-initializer"}]},"initializer-expression":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},"interface-declaration":{begin:/(?=\binterface\b)/dgv,end:/(?<=\})/dgv,patterns:[{begin:/(interface)\b\p{space}+(@?[_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.other.interface.apex"},"2":{name:"entity.name.type.interface.apex"}},end:/(?=\{)/dgv,patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"},{include:"#extends-class"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#interface-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"interface-members":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#property-declaration"},{include:"#indexer-declaration"},{include:"#method-declaration"},{include:"#punctuation-semicolon"}]},"invocation-expression":{begin:new EmulatedRegExp("(?:(\\??\\.)\\p{space}*)?(@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<([^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?\\p{space}*(?=\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},"2":{name:"entity.name.function.apex"},"3":{patterns:[{include:"#type-arguments"}]}},end:/(?<=\))/dgv,patterns:[{include:"#argument-list"}]},"javadoc-comment":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(\/\*\*)(?!\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.apex"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.apex"}},name:"comment.block.javadoc.apex",patterns:[{match:/@(deprecated|author|return|see|serial|since|version|usage|name|link)\b/dgv,name:"keyword.other.documentation.javadoc.apex"},{captures:{"1":{name:"keyword.other.documentation.javadoc.apex"},"2":{name:"entity.name.variable.parameter.apex"}},match:/(@param)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"keyword.other.documentation.javadoc.apex"},"2":{name:"entity.name.type.class.apex"}},match:/(@(?:exception|throws))\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"string.quoted.single.apex"}},match:/(`([^\`]+?)`)/dgv}]}]},literal:{patterns:[{include:"#boolean-literal"},{include:"#null-literal"},{include:"#numeric-literal"},{include:"#string-literal"}]},"local-constant-declaration":{begin:new EmulatedRegExp("(?<const_keyword>\\bconst\\b)\\p{space}*(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+(($3$E$@?[_A-Za-z][_0-9A-Za-z]*))\\p{space}*(?=,|;|=)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"storage.modifier.apex"},"2":{patterns:[{include:"#type"}]},"6":{name:"entity.name.variable.local.apex"}},end:/(?=;)/dgv,patterns:[{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.variable.local.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"}]},"local-declaration":{patterns:[{include:"#local-constant-declaration"},{include:"#local-variable-declaration"}]},"local-variable-declaration":{begin:new EmulatedRegExp("(?:(?:(\\bref)\\p{space}+)?(\\bvar\\b)|(?<type_name>(?:ref\\p{space}+)?(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($5$E$($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($6$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*))\\p{space}+(($4$E$@?[_A-Za-z][_0-9A-Za-z]*))\\p{space}*(?=,|;|=|\\))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"storage.modifier.apex"},"2":{name:"keyword.other.var.apex"},"3":{patterns:[{include:"#support-type"},{include:"#type"}]},"7":{name:"entity.name.variable.local.apex"}},end:/(?=;|\))/dgv,patterns:[{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.variable.local.apex"},{include:"#punctuation-comma"},{include:"#comment"},{include:"#variable-initializer"}]},"member-access-expression":{patterns:[{captures:{"1":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},"2":{name:"variable.other.object.property.apex"}},match:/(\??\.)\p{space}*(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*(?![_0-9A-Za-z]|\(|(\?)?\[|<)/dgv},{captures:{"1":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},"2":{name:"variable.other.object.apex"},"3":{patterns:[{include:"#type-arguments"}]}},match:new EmulatedRegExp("(\\??\\.)?\\p{space}*(@?[_A-Za-z][_0-9A-Za-z]*)(?<type_params>\\p{space}*<([^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:\\p{space}*<($E$[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)(?=(\\p{space}*\\?)?\\p{space}*\\.\\p{space}*@?[_A-Za-z][_0-9A-Za-z]*)","dgv",{"useEmulationGroups":true})},{captures:{"1":{name:"variable.other.object.apex"}},match:/(@?[_A-Za-z][_0-9A-Za-z]*)(?=(\p{space}*\?)?\p{space}*\.\p{space}*@?[_A-Za-z][_0-9A-Za-z]*)/dgv}]},"merge-expression":{begin:/(merge)\b\p{space}+/dgv,beginCaptures:{"1":{name:"support.function.apex"}},end:/(?<=;)/dgv,patterns:[{include:"#object-creation-expression"},{include:"#merge-type-statement"},{include:"#expression"},{include:"#punctuation-semicolon"}]},"merge-type-statement":{captures:{"1":{name:"variable.other.readwrite.apex"},"2":{name:"variable.other.readwrite.apex"},"3":{name:"punctuation.terminator.statement.apex"}},match:/([_A-Za-z]*)\b\p{space}+([_A-Za-z]*)\b\p{space}*(;)/dgv},"method-declaration":{begin:new EmulatedRegExp("(?<return_type>(?<type_name>(?:ref\\p{space}+)?(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+)(?<interface_name>($2$E$(?:ref\\p{space}+)?(?:($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*\\.\\p{space}*)?(($3$E$@?[_A-Za-z][_0-9A-Za-z]*))\\p{space}*(<([^\\<\\>]+)>)?\\p{space}*(?=\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#support-type"},{include:"#type"}]},"6":{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},"7":{patterns:[{include:"#support-type"},{include:"#method-name-custom"}]},"8":{patterns:[{include:"#type-parameter-list"}]}},end:/(?<=\})|(?=;)/dgv,patterns:[{include:"#comment"},{include:"#parenthesized-parameter-list"},{include:"#expression-body"},{include:"#block"}]},"method-name-custom":{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.function.apex"},"named-argument":{begin:/(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"entity.name.variable.parameter.apex"},"2":{name:"punctuation.separator.colon.apex"}},end:/(?=(,|\)|\]))/dgv,patterns:[{include:"#expression"}]},"null-literal":{match:/(?<!\.)\bnull\b/dgv,name:"constant.language.null.apex"},"numeric-literal":{patterns:[{match:/\b(\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}T\p{Nd}{2}:\p{Nd}{2}:\p{Nd}{2}(\.\p{Nd}{1,3})?(-|\+)\p{Nd}{2}:\p{Nd}{2})\b/dgv,name:"constant.numeric.datetime.apex"},{match:/\b(\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2}T\p{Nd}{2}:\p{Nd}{2}:\p{Nd}{2}(\.\p{Nd}{1,3})?(Z)?)\b/dgv,name:"constant.numeric.datetime.apex"},{match:/\b(\p{Nd}{4}-\p{Nd}{2}-\p{Nd}{2})\b/dgv,name:"constant.numeric.date.apex"},{match:/\b0(x|X)[0-9a-fA-F_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\b/dgv,name:"constant.numeric.hex.apex"},{match:/\b0(b|B)[01_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\b/dgv,name:"constant.numeric.binary.apex"},{match:/\b([0-9_]+)?\.[0-9_]+((e|E)\p{Nd}+)?(F|f|D|d|M|m)?\b/dgv,name:"constant.numeric.decimal.apex"},{match:/\b[0-9_]+(e|E)[0-9_]+(F|f|D|d|M|m)?\b/dgv,name:"constant.numeric.decimal.apex"},{match:/\b[0-9_]+(F|f|D|d|M|m)\b/dgv,name:"constant.numeric.decimal.apex"},{match:/\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\b/dgv,name:"constant.numeric.decimal.apex"}]},"object-creation-expression":{patterns:[{include:"#object-creation-expression-with-parameters"},{include:"#object-creation-expression-with-no-parameters"},{include:"#punctuation-comma"}]},"object-creation-expression-with-no-parameters":{captures:{"1":{name:"support.function.apex"},"2":{name:"keyword.control.new.apex"},"3":{patterns:[{include:"#support-type"},{include:"#type"}]}},match:new EmulatedRegExp("(delete|insert|undelete|update|upsert)?\\p{space}*(new)\\p{space}+(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($5$E$($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($6$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*(?=\\{|(?=$|\\n))","dgv",{"useEmulationGroups":true})},"object-creation-expression-with-parameters":{begin:new EmulatedRegExp("(delete|insert|undelete|update|upsert)?\\p{space}*(new)\\p{space}+(?<type_name>(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($5$E$($4$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($6$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*(?=\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"support.function.apex"},"2":{name:"keyword.control.new.apex"},"3":{patterns:[{include:"#support-type"},{include:"#type"}]}},end:/(?<=\))/dgv,patterns:[{include:"#argument-list"}]},"operator-assignment":{match:/(?<!=|!)(=)(?!=)/dgv,name:"keyword.operator.assignment.apex"},"operator-safe-navigation":{match:/\?\./dgv,name:"keyword.operator.safe-navigation.apex"},"orderby-clause":{captures:{"1":{name:"keyword.operator.query.orderby.apex"}},match:/\b(ORDER BY)\b\p{space}*/dgv,patterns:[{include:"#ordering-direction"},{include:"#ordering-nulls"}]},"ordering-direction":{captures:{"1":{name:"keyword.operator.query.ascending.apex"},"2":{name:"keyword.operator.query.descending.apex"}},match:/\b(?:(ASC)|(DESC))\b/dgv},"ordering-nulls":{captures:{"1":{name:"keyword.operator.query.nullsfirst.apex"},"2":{name:"keyword.operator.query.nullslast.apex"}},match:/\b(?:(NULLS FIRST)|(NULLS LAST))\b/dgv},parameter:{captures:{"1":{name:"storage.modifier.apex"},"2":{patterns:[{include:"#support-type"},{include:"#type"}]},"6":{name:"entity.name.variable.parameter.apex"}},match:new EmulatedRegExp("(?:\\b(this)\\b\\p{space}+)?(?<type_name>(?:ref\\p{space}+)?(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+(($3$E$@?[_A-Za-z][_0-9A-Za-z]*))","dgv",{"useEmulationGroups":true})},"parenthesized-expression":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},"parenthesized-parameter-list":{begin:/(\()/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/(\))/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#comment"},{include:"#parameter"},{include:"#punctuation-comma"},{include:"#variable-initializer"}]},"property-accessors":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{match:/\b(private|protected)\b/dgv,name:"storage.modifier.apex"},{match:/\b(get)\b/dgv,name:"keyword.other.get.apex"},{match:/\b(set)\b/dgv,name:"keyword.other.set.apex"},{include:"#comment"},{include:"#expression-body"},{include:"#block"},{include:"#punctuation-semicolon"}]},"property-declaration":{begin:new EmulatedRegExp("(?![^\\n]*\\b(?:class|interface|enum)\\b)\\p{space}*(?<return_type>(?<type_name>(?:ref\\p{space}+)?(?:(?<identifier>@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?(?<name_and_type_args>($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*(?<type_args>\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}+)(?<interface_name>($2$E$(?:ref\\p{space}+)?(?:($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*::\\p{space}*)?($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?)(?:\\p{space}*\\.\\p{space}*($4$E$($3$E$@?[_A-Za-z][_0-9A-Za-z]*)\\p{space}*($5$E$\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:\\p{space}*<(?:[^\\<\\>]|(?:))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*))+>\\p{space}*)?))*(?:\\p{space}*\\?\\p{space}*)?(?:\\p{space}*\\[(?:\\p{space}*,\\p{space}*)*\\]\\p{space}*)*)\\p{space}*\\.\\p{space}*)?(?<property_name>($3$E$@?[_A-Za-z][_0-9A-Za-z]*))\\p{space}*(?=\\{|=>|(?=$|\\n))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#type"}]},"6":{patterns:[{include:"#type"},{include:"#punctuation-accessor"}]},"7":{name:"entity.name.variable.property.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{include:"#comment"},{include:"#property-accessors"},{include:"#expression-body"},{include:"#variable-initializer"},{include:"#class-or-trigger-members"}]},"punctuation-accessor":{match:/\./dgv,name:"punctuation.accessor.apex"},"punctuation-comma":{match:/,/dgv,name:"punctuation.separator.comma.apex"},"punctuation-semicolon":{match:/;/dgv,name:"punctuation.terminator.statement.apex"},"query-operators":{captures:{"1":{name:"keyword.operator.query.apex"}},match:/\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\b\p{space}*/dgv},"return-statement":{begin:/(?<!\.)\b(return)\b/dgv,beginCaptures:{"1":{name:"keyword.control.flow.return.apex"}},end:/(?=;)/dgv,patterns:[{include:"#expression"}]},"script-top-level":{patterns:[{include:"#method-declaration"},{include:"#statement"},{include:"#punctuation-semicolon"}]},"sharing-modifier":{match:/(?<!\.)\b(with sharing|without sharing|inherited sharing)\b/dgv,name:"sharing.modifier.apex"},"soql-colon-method-statement":{begin:/(:?\.)?([_A-Za-z][_0-9A-Za-z]*)(?=\()/dgv,beginCaptures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"entity.name.function.apex"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"soql-colon-vars":{begin:/(:)\p{space}*/dgv,beginCaptures:{"0":{name:"keyword.operator.conditional.colon.apex"}},end:/(?![_0-9A-Za-z]|\(|(\?)?\[|<)/dgv,patterns:[{include:"#trigger-context-declaration"},{captures:{"1":{name:"variable.other.object.apex"},"2":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]}},match:/([_A-Za-z][_0-9A-Za-z]*)(\??\.)/dgv},{include:"#soql-colon-method-statement"},{match:/[_A-Za-z][_0-9A-Za-z]*/dgv,name:"entity.name.variable.local.apex"}]},"soql-functions":{begin:/\b(AVG|CALENDAR_MONTH|CALENDAR_QUARTER|CALENDAR_YEAR|convertCurrency|convertTimezone|COUNT|COUNT_DISTINCT|DAY_IN_MONTH|DAY_IN_WEEK|DAY_IN_YEAR|DAY_ONLY|toLabel|INCLUDES|EXCLUDES|FISCAL_MONTH|FISCAL_QUARTER|FISCAL_YEAR|FORMAT|GROUPING|GROUP BY CUBE|GROUP BY ROLLUP|HOUR_IN_DAY|MAX|MIN|SUM|WEEK_IN_MONTH|WEEK_IN_YEAR)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"support.function.query.apex"},"2":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#literal"},{include:"#punctuation-comma"},{include:"#soql-functions"},{match:/[_\.A-Za-z][_\.0-9A-Za-z]*/dgv,name:"keyword.query.field.apex"}]},"soql-group-clauses":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#soql-query-expression"},{include:"#soql-colon-vars"},{include:"#soql-group-clauses"},{include:"#punctuation-comma"},{include:"#operator-assignment"},{include:"#literal"},{include:"#query-operators"},{include:"#date-literals"},{include:"#date-literal-with-params"},{include:"#using-scope"},{match:/[_\.A-Za-z][_\.0-9A-Za-z]*/dgv,name:"keyword.query.field.apex"}]},"soql-query-body":{patterns:[{include:"#trigger-context-declaration"},{include:"#soql-colon-vars"},{include:"#soql-functions"},{include:"#from-clause"},{include:"#where-clause"},{include:"#query-operators"},{include:"#date-literals"},{include:"#date-literal-with-params"},{include:"#using-scope"},{include:"#soql-group-clauses"},{include:"#orderby-clause"},{include:"#ordering-direction"},{include:"#ordering-nulls"}]},"soql-query-expression":{begin:/\b(SELECT)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.operator.query.select.apex"}},end:/(?=;)|(?=\])|(?=\))/dgv,patterns:[{include:"#soql-query-body"},{include:"#comment"},{include:"#punctuation-comma"},{include:"#operator-assignment"},{include:"#parenthesized-expression"},{include:"#expression-operators"},{include:"#literal"},{captures:{"1":{name:"keyword.query.field.apex"},"2":{name:"punctuation.separator.comma.apex"}},match:/([_\.A-Za-z][_\.0-9A-Za-z]*)\p{space}*(,)?/dgv}]},statement:{patterns:[{include:"#comment"},{include:"#while-statement"},{include:"#do-statement"},{include:"#for-statement"},{include:"#switch-statement"},{include:"#when-else-statement"},{include:"#when-sobject-statement"},{include:"#when-statement"},{include:"#when-multiple-statement"},{include:"#if-statement"},{include:"#else-part"},{include:"#goto-statement"},{include:"#return-statement"},{include:"#break-or-continue-statement"},{include:"#throw-statement"},{include:"#try-statement"},{include:"#soql-query-expression"},{include:"#local-declaration"},{include:"#block"},{include:"#expression"},{include:"#punctuation-semicolon"}]},"storage-modifier":{match:/(?<!\.)\b(new|public|protected|private|abstract|virtual|override|global|static|final|transient)\b/dgv,name:"storage.modifier.apex"},"string-character-escape":{match:/\\[^\n]/dgv,name:"constant.character.escape.apex"},"string-literal":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apex"}},end:/(')|([^\\\n](?=$|\n))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.apex"},"2":{name:"invalid.illegal.newline.apex"}},name:"string.quoted.single.apex",patterns:[{include:"#string-character-escape"}]},"support-arguments":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.apex"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{include:"#comment"},{include:"#support-type"},{include:"#punctuation-comma"}]},"support-class":{captures:{"1":{name:"support.class.apex"}},match:/\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\b/dgv},"support-expression":{begin:/(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=\.|\p{space})/dgv,beginCaptures:{"1":{name:"support.class.apex"}},end:/(?<=\)|(?=$|\n))|(?=\})|(?=;)|(?=\)|(?=\]))|(?=,)/dgv,patterns:[{include:"#support-type"},{captures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"support.function.apex"}},match:/(\.)([A-Za-z]*)(?=\()/dgv},{captures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"support.type.apex"}},match:/(\.)([A-Za-z]+)/dgv},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},{include:"#comment"},{include:"#statement"}]},"support-functions":{captures:{"1":{name:"support.function.apex"}},match:/\b(delete|execute|finish|insert|start|undelete|update|upsert)\b/dgv},"support-name":{patterns:[{captures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"support.function.apex"}},match:/(\.)\p{space}*([A-Za-z]*)(?=\()/dgv},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"},{include:"#punctuation-comma"}]},{captures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"support.type.apex"}},match:/(\.)\p{space}*([_A-Za-z]*)/dgv}]},"support-type":{name:"support.apex",patterns:[{include:"#comment"},{include:"#support-class"},{include:"#support-functions"},{include:"#support-name"}]},"switch-statement":{begin:/(switch)\b\p{space}+(on)\b\p{space}+(?:([_\.\?'\(\)0-9A-Za-z]+)\p{space}*)?(\{)/dgv,beginCaptures:{"1":{name:"keyword.control.switch.apex"},"2":{name:"keyword.control.switch.on.apex"},"3":{patterns:[{include:"#statement"},{include:"#parenthesized-expression"}]},"4":{name:"punctuation.curlybrace.open.apex"}},end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#when-string"},{include:"#when-else-statement"},{include:"#when-sobject-statement"},{include:"#when-statement"},{include:"#when-multiple-statement"},{include:"#expression"},{include:"#punctuation-comma"},{include:"#punctuation-semicolon"}]},"this-expression":{captures:{"1":{name:"keyword.other.this.apex"}},match:/\b(this)\b/dgv},"throw-expression":{captures:{"1":{name:"keyword.control.flow.throw.apex"}},match:/(?<!\.)\b(throw)\b/dgv},"throw-statement":{begin:/(?<!\.)\b(throw)\b/dgv,beginCaptures:{"1":{name:"keyword.control.flow.throw.apex"}},end:/(?=;)/dgv,patterns:[{include:"#expression"}]},"trigger-context-declaration":{begin:/\b(Trigger)\b(\.)\b/dgv,beginCaptures:{"1":{name:"support.class.trigger.apex"},"2":{name:"punctuation.accessor.apex"}},end:/(?=\})|(?=;)|(?=\)|(?=\]))/dgv,patterns:[{match:/\b(isExecuting|isInsert|isUpdate|isDelete|isBefore|isAfter|isUndelete|new|newMap|old|oldMap|size)\b/dgv,name:"support.type.trigger.apex"},{captures:{"1":{patterns:[{include:"#punctuation-accessor"},{include:"#operator-safe-navigation"}]},"2":{name:"support.function.trigger.apex"}},match:/(\??\.)([A-Za-z]+)(?=\()/dgv},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#trigger-type-statement"},{include:"#javadoc-comment"},{include:"#comment"},{include:"#expression"}]},{include:"#expression"}]},"trigger-declaration":{begin:/(?=\btrigger\b)/dgv,end:/(?<=\})/dgv,patterns:[{begin:/\b(trigger)\b\p{space}+(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*\b(on)\b\p{space}+([_A-Za-z][_0-9A-Za-z]*)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.trigger.apex"},"2":{name:"entity.name.type.trigger.apex"},"3":{name:"keyword.operator.trigger.on.apex"},"4":{name:"storage.type.apex"}},end:/(?=\{)/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#trigger-type-statement"},{include:"#trigger-operator-statement"},{include:"#punctuation-comma"},{include:"#expression"}]},{include:"#javadoc-comment"},{include:"#comment"},{include:"#type-parameter-list"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.curlybrace.open.apex"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.curlybrace.close.apex"}},patterns:[{include:"#statement"},{include:"#class-or-trigger-members"}]},{include:"#javadoc-comment"},{include:"#comment"}]},"trigger-operator-statement":{match:/\b(insert|update|delete|merge|upsert|undelete)\b/dgv,name:"keyword.operator.trigger.apex"},"trigger-type-statement":{captures:{"1":{name:"keyword.control.trigger.before.apex"},"2":{name:"keyword.control.trigger.after.apex"}},match:/\b(?:(before)|(after))\b/dgv},"try-block":{begin:/(?<!\.)\b(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.apex"}},end:/(?<=\})/dgv,patterns:[{include:"#comment"},{include:"#block"}]},"try-statement":{patterns:[{include:"#try-block"},{include:"#catch-clause"},{include:"#finally-clause"}]},type:{name:"meta.type.apex",patterns:[{include:"#comment"},{include:"#type-builtin"},{include:"#type-name"},{include:"#type-arguments"},{include:"#type-array-suffix"},{include:"#type-nullable-suffix"}]},"type-arguments":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.apex"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{include:"#comment"},{include:"#support-type"},{include:"#type"},{include:"#punctuation-comma"}]},"type-array-suffix":{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.squarebracket.open.apex"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.squarebracket.close.apex"}},patterns:[{include:"#punctuation-comma"}]},"type-builtin":{captures:{"1":{name:"keyword.type.apex"}},match:/\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\b/dgv},"type-declarations":{patterns:[{include:"#javadoc-comment"},{include:"#comment"},{include:"#annotation-declaration"},{include:"#storage-modifier"},{include:"#sharing-modifier"},{include:"#class-declaration"},{include:"#enum-declaration"},{include:"#interface-declaration"},{include:"#trigger-declaration"},{include:"#punctuation-semicolon"}]},"type-name":{patterns:[{captures:{"1":{name:"storage.type.apex"},"2":{name:"punctuation.accessor.apex"}},match:/(@?[_A-Za-z][_0-9A-Za-z]*)\p{space}*(\.)/dgv},{captures:{"1":{name:"punctuation.accessor.apex"},"2":{name:"storage.type.apex"}},match:/(\.)\p{space}*(@?[_A-Za-z][_0-9A-Za-z]*)/dgv},{match:/@?[_A-Za-z][_0-9A-Za-z]*/dgv,name:"storage.type.apex"}]},"type-nullable-suffix":{captures:{"0":{name:"punctuation.separator.question-mark.apex"}},match:/\?/dgv},"type-parameter-list":{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.typeparameters.begin.apex"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.typeparameters.end.apex"}},patterns:[{captures:{"1":{name:"entity.name.type.type-parameter.apex"}},match:/(@?[_A-Za-z][_0-9A-Za-z]*)\b/dgv},{include:"#comment"},{include:"#punctuation-comma"}]},"using-scope":{captures:{"1":{name:"keyword.operator.query.using.apex"}},match:/((USING SCOPE)\b\p{space}*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\b\p{space}*/dgv},"variable-initializer":{begin:/(?<!=|!)(=)(?!=|>)/dgv,beginCaptures:{"1":{name:"keyword.operator.assignment.apex"}},end:/(?=[\,\)\]\;\}])/dgv,patterns:[{include:"#expression"}]},"when-else-statement":{begin:/(when)\b\p{space}+(else)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.switch.when.apex"},"2":{name:"keyword.control.switch.else.apex"}},end:/(?<=\})/dgv,patterns:[{include:"#block"},{include:"#expression"}]},"when-multiple-statement":{begin:/(when)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.switch.when.apex"}},end:/(?<=\})/dgv,patterns:[{include:"#block"},{include:"#expression"}]},"when-sobject-statement":{begin:/(when)\b\p{space}+([_0-9A-Za-z]+)\p{space}+([_0-9A-Za-z]+)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.switch.when.apex"},"2":{name:"storage.type.apex"},"3":{name:"entity.name.variable.local.apex"}},end:/(?<=\})/dgv,patterns:[{include:"#block"},{include:"#expression"}]},"when-statement":{begin:/(when)\b\p{space}+(['_\-0-9A-Za-z]+)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.switch.when.apex"},"2":{patterns:[{include:"#expression"}]}},end:/(?<=\})/dgv,patterns:[{include:"#block"},{include:"#expression"}]},"when-string":{begin:/(when)(\b\p{space}*)((')[_\.\,'\p{space}\*0-9A-Za-z]+)/dgv,beginCaptures:{"1":{name:"keyword.control.switch.when.apex"},"2":{name:"punctuation.whitespace.apex"},"3":{patterns:[{include:"#when-string-statement"},{include:"#punctuation-comma"}]}},end:/(?<=\})/dgv,patterns:[{include:"#block"},{include:"#expression"}]},"when-string-statement":{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apex"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.apex"}},name:"string.quoted.single.apex"}]},"where-clause":{captures:{"1":{name:"keyword.operator.query.where.apex"}},match:/\b(WHERE)\b\p{space}*/dgv},"while-statement":{begin:/(?<!\.)\b(while)\b\p{space}*(?=\()/dgv,beginCaptures:{"1":{name:"keyword.control.loop.while.apex"}},end:/(?<=\})|(?=;)/dgv,patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.parenthesis.open.apex"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.parenthesis.close.apex"}},patterns:[{include:"#expression"}]},{include:"#statement"}]},"xml-attribute":{patterns:[{captures:{"1":{name:"entity.other.attribute-name.apex"},"2":{name:"entity.other.attribute-name.namespace.apex"},"3":{name:"punctuation.separator.colon.apex"},"4":{name:"entity.other.attribute-name.localname.apex"},"5":{name:"punctuation.separator.equals.apex"}},match:/(?:(?<=^|\n(?!$))|\p{space}+)((?:([\-_0-9A-Za-z]+)(:))?([\-_0-9A-Za-z]+))(=)/dgv},{include:"#xml-string"}]},"xml-cdata":{begin:/<!\[CDATA\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apex"}},end:/\]\]>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.apex"}},name:"string.unquoted.cdata.apex"},"xml-character-entity":{patterns:[{captures:{"1":{name:"punctuation.definition.constant.apex"},"3":{name:"punctuation.definition.constant.apex"}},match:/(&)([A-Za-z\:_][0-9A-Za-z\:_\.\-]*|#[\p{Nd}]+|#x[0-9A-Fa-f]+)(;)/dgv,name:"constant.character.entity.apex"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.apex"}]},"xml-comment":{begin:/<!--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.apex"}},end:/-->/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.apex"}},name:"comment.block.apex"},"xml-doc-comment":{patterns:[{include:"#xml-comment"},{include:"#xml-character-entity"},{include:"#xml-cdata"},{include:"#xml-tag"}]},"xml-string":{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apex"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.apex"}},name:"string.quoted.single.apex",patterns:[{include:"#xml-character-entity"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.stringdoublequote.begin.apex"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.stringdoublequote.end.apex"}},name:"string.quoted.double.apex",patterns:[{include:"#xml-character-entity"}]}]},"xml-tag":{begin:/(<\/?)((?:([\-_0-9A-Za-z]+)(:))?([\-_0-9A-Za-z]+))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.apex"},"2":{name:"entity.name.tag.apex"},"3":{name:"entity.name.tag.namespace.apex"},"4":{name:"punctuation.separator.colon.apex"},"5":{name:"entity.name.tag.localname.apex"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.apex"}},name:"meta.tag.apex",patterns:[{include:"#xml-attribute"}]}},scopeName:"source.apex",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/apl.d.mts
ADDED
package/dist/apl.mjs
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import html from './html.mjs'
|
|
3
|
+
import xml from './xml.mjs'
|
|
4
|
+
import css from './css.mjs'
|
|
5
|
+
import javascript from './javascript.mjs'
|
|
6
|
+
import json from './json.mjs'
|
|
7
|
+
|
|
8
|
+
const lang = Object.freeze({displayName:"APL",fileTypes:["apl","apla","aplc","aplf","apli","apln","aplo","dyalog","dyapp","mipage"],firstLineMatch:/[⌶-⍺]|(?<=^|\n(?!$))#![^\n]*(?:\p{space}|\/|(?<=!)\b)(?:gnu[\-\._]?apl|aplx?|dyalog)(?:(?=$|\n)|\p{space})|(?:-\*-(?:\p{space}*(?=[^\:\;\p{space}]+\p{space}*-\*-)|(?:[^\n]*?[\;\p{space}]|(?<=-\*-))[Mm][Oo][Dd][Ee]\p{space}*:\p{space}*)[Aa][Pp][Ll](?=[\p{space}\;]|(?<![\-\*])-\*-)[^\n]*?-\*-|(?:(?:\p{space}|(?<=^|\n(?!$)))[Vv][Ii](?:[Mm][\<\=\>]?\p{Nd}+|[Mm])?|\p{space}[Ee][Xx])(?=:(?=\p{space}*[Ssſ][Ee][Tt]?\p{space}[^\n\:]+:)|:(?!\p{space}*[Ssſ][Ee][Tt]?\p{space}))(?:(?:\p{space}|\p{space}*:\p{space}*)[\p{L}\p{M}\p{N}\p{Pc}]*(?:\p{space}*=(?:[^\n\\\p{space}]|\\[^\n])*)?)*[\p{space}\:](?:[Ff][Ii][Ll][Ee][Tt][Yy][Pp][Ee]|[Ff][Tt]|[Ssſ][Yy][Nn][Tt][Aa][Xx])\p{space}*=[Aa][Pp][Ll](?=\p{space}|:|(?=$|\n)))/dgv,foldingStartMarker:/\{/dgv,foldingStopMarker:/\}/dgv,name:"apl",patterns:[{match:/^#![^\n]*(?=$|\n)/dgv,name:"comment.line.shebang.apl"},{include:"#heredocs"},{include:"#main"},{begin:/(?<=^|\n(?!$))\p{space}*((\))OFF|(\])NEXTFILE)\b([^\n]*)(?=$|\n)/dgv,beginCaptures:{"1":{name:"entity.name.command.eof.apl"},"2":{name:"punctuation.definition.command.apl"},"3":{name:"punctuation.definition.command.apl"},"4":{patterns:[{include:"#comment"}]}},contentName:"text.embedded.apl",end:/(?=N)A/dgv},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.round.bracket.begin.apl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.round.bracket.end.apl"}},name:"meta.round.bracketed.group.apl",patterns:[{include:"#main"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.square.bracket.begin.apl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.square.bracket.end.apl"}},name:"meta.square.bracketed.group.apl",patterns:[{include:"#main"}]},{begin:/(?<=^|\n(?!$))\p{space}*((\))\P{space}+)/dgv,beginCaptures:{"1":{name:"entity.name.command.apl"},"2":{name:"punctuation.definition.command.apl"}},end:/(?=$|\n)/dgv,name:"meta.system.command.apl",patterns:[{include:"#command-arguments"},{include:"#command-switches"},{include:"#main"}]},{begin:/(?<=^|\n(?!$))\p{space}*((\])\P{space}+)/dgv,beginCaptures:{"1":{name:"entity.name.command.apl"},"2":{name:"punctuation.definition.command.apl"}},end:/(?=$|\n)/dgv,name:"meta.user.command.apl",patterns:[{include:"#command-arguments"},{include:"#command-switches"},{include:"#main"}]}],repository:{class:{patterns:[{begin:/(?<=\p{space}|(?<=^|\n(?!$)))((:)Class)\p{space}+('[^']*'?|[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)\p{space}*((:)\p{space}*(?:('[^']*'?|[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)\p{space}*)?)?([^\n]*?)(?=$|\n)/dgv,beginCaptures:{"0":{name:"meta.class.apl"},"1":{name:"keyword.control.class.apl"},"2":{name:"punctuation.definition.class.apl"},"3":{name:"entity.name.type.class.apl",patterns:[{include:"#strings"}]},"4":{name:"entity.other.inherited-class.apl"},"5":{name:"punctuation.separator.inheritance.apl"},"6":{patterns:[{include:"#strings"}]},"7":{name:"entity.other.class.interfaces.apl",patterns:[{include:"#csv"}]}},end:/(?<=\p{space}|(?<=^|\n(?!$)))((:)EndClass)(?=\b)/dgv,endCaptures:{"1":{name:"keyword.control.class.apl"},"2":{name:"punctuation.definition.class.apl"}},patterns:[{begin:/(?<=\p{space}|(?<=^|\n(?!$)))(:)Field(?=\p{space})/dgv,beginCaptures:{"0":{name:"keyword.control.field.apl"},"1":{name:"punctuation.definition.field.apl"}},end:/\p{space}*(←[^\n]*)?(?:(?=$|\n)|(?=⍝))/dgv,endCaptures:{"0":{name:"entity.other.initial-value.apl"},"1":{patterns:[{include:"#main"}]}},name:"meta.field.apl",patterns:[{match:/(?<=\p{space}|(?<=^|\n(?!$)))Public(?=\p{space}|(?=$|\n))/dgv,name:"storage.modifier.access.public.apl"},{match:/(?<=\p{space}|(?<=^|\n(?!$)))Private(?=\p{space}|(?=$|\n))/dgv,name:"storage.modifier.access.private.apl"},{match:/(?<=\p{space}|(?<=^|\n(?!$)))Shared(?=\p{space}|(?=$|\n))/dgv,name:"storage.modifier.shared.apl"},{match:/(?<=\p{space}|(?<=^|\n(?!$)))Instance(?=\p{space}|(?=$|\n))/dgv,name:"storage.modifier.instance.apl"},{match:/(?<=\p{space}|(?<=^|\n(?!$)))ReadOnly(?=\p{space}|(?=$|\n))/dgv,name:"storage.modifier.readonly.apl"},{captures:{"1":{patterns:[{include:"#strings"}]}},match:/('[^']*'?|[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)/dgv,name:"entity.name.type.apl"}]},{include:"$self"}]}]},"command-arguments":{patterns:[{begin:/\b(?=\P{space})/dgv,end:/\b(?=\p{space})/dgv,name:"variable.parameter.argument.apl",patterns:[{include:"#main"}]}]},"command-switches":{patterns:[{begin:/(?<=\p{space})(-)([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)(=)/dgv,beginCaptures:{"1":{name:"punctuation.delimiter.switch.apl"},"2":{name:"entity.name.switch.apl"},"3":{name:"punctuation.assignment.switch.apl"}},end:/\b(?=\p{space})/dgv,name:"variable.parameter.switch.apl",patterns:[{include:"#main"}]},{captures:{"1":{name:"punctuation.delimiter.switch.apl"},"2":{name:"entity.name.switch.apl"}},match:/(?<=\p{space})(-)([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)(?!=)/dgv,name:"variable.parameter.switch.apl"}]},comment:{patterns:[{begin:/⍝/dgv,captures:{"0":{name:"punctuation.definition.comment.apl"}},end:/(?=$|\n)/dgv,name:"comment.line.apl"}]},csv:{patterns:[{match:/,/dgv,name:"punctuation.separator.apl"},{include:"$self"}]},definition:{patterns:[{begin:new EmulatedRegExp("(?<=^|\\n(?!$))\\p{space}*?(∇)(?:\\p{space}*(?:([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)|\\p{space}*((\\{)(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\})|(\\()(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\))|(\\(\\p{space}*\\{)(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\}\\p{space}*\\))|(\\{\\p{space}*\\()(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\)\\p{space}*\\}))\\p{space}*)\\p{space}*(←))?\\p{space}*(?:([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)\\p{space}*((\\[)\\p{space}*(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*([^\\n]*?)|([^\\]]*))\\p{space}*(\\]))?\\p{space}*?((?<=\\p{space}|\\])[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*|(\\()(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\)))\\p{space}*(?=;|(?=$|\\n))|(?:([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}+)|((\\{)(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\})|(\\(\\p{space}*\\{)(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\}\\p{space}*\\))|(\\{\\p{space}*\\()(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\)\\p{space}*\\})))?\\p{space}*(?:([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)\\p{space}*((\\[)\\p{space}*(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*([^\\n]*?)|([^\\]]*))\\p{space}*(\\]))?|((\\()(\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)?\\p{space}*([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)\\p{space}*?((\\[)\\p{space}*(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*([^\\n]*?)|([^\\]]*))\\p{space}*(\\]))?\\p{space}*([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)?(\\))))\\p{space}*((?<=\\p{space}|\\])[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*|\\p{space}*(\\()(?:\\p{space}*[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)*(\\)))?)\\p{space}*([^\\;]+)?(((?:(?=($E$\\p{space}*;(?:\\p{space}*[⎕A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)+))\\53)+)|([^⍝]+))?\\p{space}*(⍝[^\\n]*)?(?=$|\\n)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"entity.function.definition.apl"},"1":{name:"keyword.operator.nabla.apl"},"2":{name:"entity.function.return-value.apl"},"3":{name:"entity.function.return-value.shy.apl"},"4":{name:"punctuation.definition.return-value.begin.apl"},"5":{name:"punctuation.definition.return-value.end.apl"},"6":{name:"punctuation.definition.return-value.begin.apl"},"7":{name:"punctuation.definition.return-value.end.apl"},"8":{name:"punctuation.definition.return-value.begin.apl"},"9":{name:"punctuation.definition.return-value.end.apl"},"10":{name:"punctuation.definition.return-value.begin.apl"},"11":{name:"punctuation.definition.return-value.end.apl"},"12":{name:"keyword.operator.assignment.apl"},"13":{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},"14":{name:"entity.function.axis.apl"},"15":{name:"punctuation.definition.axis.begin.apl"},"16":{name:"invalid.illegal.extra-characters.apl"},"17":{name:"invalid.illegal.apl"},"18":{name:"punctuation.definition.axis.end.apl"},"19":{name:"entity.function.arguments.right.apl"},"20":{name:"punctuation.definition.arguments.begin.apl"},"21":{name:"punctuation.definition.arguments.end.apl"},"22":{name:"entity.function.arguments.left.apl"},"23":{name:"entity.function.arguments.left.optional.apl"},"24":{name:"punctuation.definition.arguments.begin.apl"},"25":{name:"punctuation.definition.arguments.end.apl"},"26":{name:"punctuation.definition.arguments.begin.apl"},"27":{name:"punctuation.definition.arguments.end.apl"},"28":{name:"punctuation.definition.arguments.begin.apl"},"29":{name:"punctuation.definition.arguments.end.apl"},"30":{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},"31":{name:"entity.function.axis.apl"},"32":{name:"punctuation.definition.axis.begin.apl"},"33":{name:"invalid.illegal.extra-characters.apl"},"34":{name:"invalid.illegal.apl"},"35":{name:"punctuation.definition.axis.end.apl"},"36":{name:"entity.function.operands.apl"},"37":{name:"punctuation.definition.operands.begin.apl"},"38":{name:"entity.function.operands.left.apl"},"39":{name:"entity.function.name.apl",patterns:[{include:"#embolden"}]},"40":{name:"entity.function.axis.apl"},"41":{name:"punctuation.definition.axis.begin.apl"},"42":{name:"invalid.illegal.extra-characters.apl"},"43":{name:"invalid.illegal.apl"},"44":{name:"punctuation.definition.axis.end.apl"},"45":{name:"entity.function.operands.right.apl"},"46":{name:"punctuation.definition.operands.end.apl"},"47":{name:"entity.function.arguments.right.apl"},"48":{name:"punctuation.definition.arguments.begin.apl"},"49":{name:"punctuation.definition.arguments.end.apl"},"50":{name:"invalid.illegal.arguments.right.apl"},"51":{name:"entity.function.local-variables.apl"},"52":{patterns:[{match:/;/dgv,name:"punctuation.separator.apl"}]},"53":{name:"invalid.illegal.local-variables.apl"},"54":{name:"comment.line.apl"}},end:/(?<=^|\n(?!$))\p{space}*?(?:(∇)|(⍫))\p{space}*?(⍝[^\n]*?)?(?=$|\n)/dgv,endCaptures:{"1":{name:"keyword.operator.nabla.apl"},"2":{name:"keyword.operator.lock.apl"},"3":{name:"comment.line.apl"}},name:"meta.function.apl",patterns:[{captures:{"0":{name:"entity.function.local-variables.apl"},"1":{patterns:[{match:/;/dgv,name:"punctuation.separator.apl"}]}},match:new EmulatedRegExp("(?<=^|\\n(?!$))\\p{space}*((?:(?=($E$;(?:\\p{space}*[⎕A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*\\p{space}*)+))\\2)+)","dgv",{"useEmulationGroups":true}),name:"entity.function.definition.apl"},{include:"$self"}]}]},"embedded-apl":{patterns:[{begin:/(<(\?|%)(?:apl(?=\p{space}+)|=))/dgiv,beginCaptures:{"1":{name:"punctuation.section.embedded.begin.apl"}},end:/(?<=\p{space})(\2>)()/dgv,endCaptures:{"1":{name:"punctuation.section.embedded.end.apl"}},name:"meta.embedded.block.apl",patterns:[{include:"#main"}]}]},embolden:{patterns:[{match:/[^\n]+/dgv,name:"markup.bold.identifier.apl"}]},heredocs:{patterns:[{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?[Hh][Tt][Mm][Ll]?[^\n]*?|[Ee][Nn][Dd]-[Oo][Ff]-⎕[Ii][Nn][Pp])\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"text.embedded.html.basic",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"text.html.basic"},{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?(?:[Xx][Mm][Ll]|[Xx][Ssſ][Ll][Tt]|[Ssſ][Vv][Gg]|[Rr][Ssſ][Ssſ])[^\n]*?)\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"text.embedded.xml",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"text.xml"},{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?(?:[Cc][Ssſ][Ssſ]|[Ssſ][Tt][Yy][Ll][Ee][Ssſ][Hh][Ee][Ee][Tt])[^\n]*?)\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"source.embedded.css",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.css"},{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?(?:[Jj][Ssſ](?![Oo][Nn])|(?:[Ee][Cc][Mm][Aa]|[Jj]|[Jj][Aa][Vv][Aa])[^\n]?[Ssſ][Cc][Rr][Ii][Pp][Tt])[^\n]*?)\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"source.embedded.js",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.js"},{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?[Jj][Ssſ][Oo][Nn][^\n]*?)\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"source.embedded.json",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"source.json"},{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")((?:[Rr][Aa][Ww]|[Pp][Ll][Aa][Ii][Nn])?\p{space}*[Tt][Ee]?[Xx][Tt])\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},contentName:"text.embedded.plain",end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"#embedded-apl"}]},{begin:/(?<=^|\n(?!$))[^\n]*?⎕INP\p{space}+('|")([^\n]*?)\1[^\n]*(?=$|\n)/dgv,beginCaptures:{"0":{patterns:[{include:"#main"}]}},end:/(?<=^|\n(?!$))[^\n]*?\2[^\n]*?(?=$|\n)()()/dgv,endCaptures:{"0":{name:"constant.other.apl"}},name:"meta.heredoc.apl",patterns:[{include:"$self"}]}]},label:{patterns:[{captures:{"1":{name:"entity.label.name.apl"},"2":{name:"punctuation.definition.label.end.apl"}},match:/(?<=^|\n(?!$))\p{space}*([A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*)(:)/dgv,name:"meta.label.apl"}]},lambda:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.lambda.begin.apl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.lambda.end.apl"}},name:"meta.lambda.function.apl",patterns:[{include:"#main"},{include:"#lambda-variables"}]},"lambda-variables":{patterns:[{match:/⍺⍺/dgv,name:"constant.language.lambda.operands.left.apl"},{match:/⍵⍵/dgv,name:"constant.language.lambda.operands.right.apl"},{match:/[⍺⍶]/dgv,name:"constant.language.lambda.arguments.left.apl"},{match:/[⍵⍹]/dgv,name:"constant.language.lambda.arguments.right.apl"},{match:/χ/dgv,name:"constant.language.lambda.arguments.axis.apl"},{match:/∇∇/dgv,name:"constant.language.lambda.operands.self.operator.apl"},{match:/∇/dgv,name:"constant.language.lambda.operands.self.function.apl"},{match:/λ/dgv,name:"constant.language.lambda.symbol.apl"}]},main:{patterns:[{include:"#class"},{include:"#definition"},{include:"#comment"},{include:"#label"},{include:"#sck"},{include:"#strings"},{include:"#number"},{include:"#lambda"},{include:"#sysvars"},{include:"#symbols"},{include:"#name"}]},name:{patterns:[{match:/[A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ][A-Z_a-zÀ-ÖØ-Ýßà-öø-üþ∆⍙Ⓐ-Ⓩ¯0-9]*/dgv,name:"variable.other.readwrite.apl"}]},number:{patterns:[{match:/¯?\p{Nd}[¯0-9A-Za-z]*(?:\.[¯0-9Ee][¯0-9A-Za-z]*)*|¯?\.[0-9Ee][¯0-9A-Za-z]*/dgv,name:"constant.numeric.apl"}]},sck:{patterns:[{captures:{"1":{name:"punctuation.definition.sck.begin.apl"}},match:/(?<=\p{space}|(?<=^|\n(?!$)))(:)[A-Za-z]+/dgv,name:"keyword.control.sck.apl"}]},strings:{patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apl"}},end:/'|(?=$|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.apl"}},name:"string.quoted.single.apl",patterns:[{match:/[^']*[^'\n\r\\](?=$|\n)/dgv,name:"invalid.illegal.string.apl"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.apl"}},end:/"|(?=$|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.apl"}},name:"string.quoted.double.apl",patterns:[{match:/[^"]*[^"\n\r\\](?=$|\n)/dgv,name:"invalid.illegal.string.apl"}]}]},symbols:{patterns:[{match:/(?<=\p{space})←(?=\p{space}|(?=$|\n))/dgv,name:"keyword.spaced.operator.assignment.apl"},{match:/(?<=\p{space})→(?=\p{space}|(?=$|\n))/dgv,name:"keyword.spaced.control.goto.apl"},{match:/(?<=\p{space})≡(?=\p{space}|(?=$|\n))/dgv,name:"keyword.spaced.operator.identical.apl"},{match:/(?<=\p{space})≢(?=\p{space}|(?=$|\n))/dgv,name:"keyword.spaced.operator.not-identical.apl"},{match:/\+/dgv,name:"keyword.operator.plus.apl"},{match:/[\-−]/dgv,name:"keyword.operator.minus.apl"},{match:/×/dgv,name:"keyword.operator.times.apl"},{match:/÷/dgv,name:"keyword.operator.divide.apl"},{match:/⌊/dgv,name:"keyword.operator.floor.apl"},{match:/⌈/dgv,name:"keyword.operator.ceiling.apl"},{match:/[∣\|]/dgv,name:"keyword.operator.absolute.apl"},{match:/[⋆\*]/dgv,name:"keyword.operator.exponent.apl"},{match:/⍟/dgv,name:"keyword.operator.logarithm.apl"},{match:/○/dgv,name:"keyword.operator.circle.apl"},{match:/!/dgv,name:"keyword.operator.factorial.apl"},{match:/∧/dgv,name:"keyword.operator.and.apl"},{match:/∨/dgv,name:"keyword.operator.or.apl"},{match:/⍲/dgv,name:"keyword.operator.nand.apl"},{match:/⍱/dgv,name:"keyword.operator.nor.apl"},{match:/</dgv,name:"keyword.operator.less.apl"},{match:/≤/dgv,name:"keyword.operator.less-or-equal.apl"},{match:/=/dgv,name:"keyword.operator.equal.apl"},{match:/≥/dgv,name:"keyword.operator.greater-or-equal.apl"},{match:/>/dgv,name:"keyword.operator.greater.apl"},{match:/≠/dgv,name:"keyword.operator.not-equal.apl"},{match:/[∼\~]/dgv,name:"keyword.operator.tilde.apl"},{match:/\?/dgv,name:"keyword.operator.random.apl"},{match:/[∊∈]/dgv,name:"keyword.operator.member-of.apl"},{match:/⍷/dgv,name:"keyword.operator.find.apl"},{match:/,/dgv,name:"keyword.operator.comma.apl"},{match:/⍪/dgv,name:"keyword.operator.comma-bar.apl"},{match:/⌷/dgv,name:"keyword.operator.squad.apl"},{match:/⍳/dgv,name:"keyword.operator.iota.apl"},{match:/⍴/dgv,name:"keyword.operator.rho.apl"},{match:/↑/dgv,name:"keyword.operator.take.apl"},{match:/↓/dgv,name:"keyword.operator.drop.apl"},{match:/⊣/dgv,name:"keyword.operator.left.apl"},{match:/⊢/dgv,name:"keyword.operator.right.apl"},{match:/⊤/dgv,name:"keyword.operator.encode.apl"},{match:/⊥/dgv,name:"keyword.operator.decode.apl"},{match:/\//dgv,name:"keyword.operator.slash.apl"},{match:/⌿/dgv,name:"keyword.operator.slash-bar.apl"},{match:/\\/dgv,name:"keyword.operator.backslash.apl"},{match:/⍀/dgv,name:"keyword.operator.backslash-bar.apl"},{match:/⌽/dgv,name:"keyword.operator.rotate-last.apl"},{match:/⊖/dgv,name:"keyword.operator.rotate-first.apl"},{match:/⍉/dgv,name:"keyword.operator.transpose.apl"},{match:/⍋/dgv,name:"keyword.operator.grade-up.apl"},{match:/⍒/dgv,name:"keyword.operator.grade-down.apl"},{match:/⌹/dgv,name:"keyword.operator.quad-divide.apl"},{match:/≡/dgv,name:"keyword.operator.identical.apl"},{match:/≢/dgv,name:"keyword.operator.not-identical.apl"},{match:/⊂/dgv,name:"keyword.operator.enclose.apl"},{match:/⊃/dgv,name:"keyword.operator.pick.apl"},{match:/∩/dgv,name:"keyword.operator.intersection.apl"},{match:/∪/dgv,name:"keyword.operator.union.apl"},{match:/⍎/dgv,name:"keyword.operator.hydrant.apl"},{match:/⍕/dgv,name:"keyword.operator.thorn.apl"},{match:/⊆/dgv,name:"keyword.operator.underbar-shoe-left.apl"},{match:/⍸/dgv,name:"keyword.operator.underbar-iota.apl"},{match:/¨/dgv,name:"keyword.operator.each.apl"},{match:/⍤/dgv,name:"keyword.operator.rank.apl"},{match:/⌸/dgv,name:"keyword.operator.quad-equal.apl"},{match:/⍨/dgv,name:"keyword.operator.commute.apl"},{match:/⍣/dgv,name:"keyword.operator.power.apl"},{match:/\./dgv,name:"keyword.operator.dot.apl"},{match:/∘/dgv,name:"keyword.operator.jot.apl"},{match:/⍠/dgv,name:"keyword.operator.quad-colon.apl"},{match:/&/dgv,name:"keyword.operator.ampersand.apl"},{match:/⌶/dgv,name:"keyword.operator.i-beam.apl"},{match:/⌺/dgv,name:"keyword.operator.quad-diamond.apl"},{match:/@/dgv,name:"keyword.operator.at.apl"},{match:/◊/dgv,name:"keyword.operator.lozenge.apl"},{match:/;/dgv,name:"keyword.operator.semicolon.apl"},{match:/¯/dgv,name:"keyword.operator.high-minus.apl"},{match:/←/dgv,name:"keyword.operator.assignment.apl"},{match:/→/dgv,name:"keyword.control.goto.apl"},{match:/⍬/dgv,name:"constant.language.zilde.apl"},{match:/⋄/dgv,name:"keyword.operator.diamond.apl"},{match:/⍫/dgv,name:"keyword.operator.lock.apl"},{match:/⎕/dgv,name:"keyword.operator.quad.apl"},{match:/##/dgv,name:"constant.language.namespace.parent.apl"},{match:/#/dgv,name:"constant.language.namespace.root.apl"},{match:/⌻/dgv,name:"keyword.operator.quad-jot.apl"},{match:/⌼/dgv,name:"keyword.operator.quad-circle.apl"},{match:/⌾/dgv,name:"keyword.operator.circle-jot.apl"},{match:/⍁/dgv,name:"keyword.operator.quad-slash.apl"},{match:/⍂/dgv,name:"keyword.operator.quad-backslash.apl"},{match:/⍃/dgv,name:"keyword.operator.quad-less.apl"},{match:/⍄/dgv,name:"keyword.operator.greater.apl"},{match:/⍅/dgv,name:"keyword.operator.vane-left.apl"},{match:/⍆/dgv,name:"keyword.operator.vane-right.apl"},{match:/⍇/dgv,name:"keyword.operator.quad-arrow-left.apl"},{match:/⍈/dgv,name:"keyword.operator.quad-arrow-right.apl"},{match:/⍊/dgv,name:"keyword.operator.tack-down.apl"},{match:/⍌/dgv,name:"keyword.operator.quad-caret-down.apl"},{match:/⍍/dgv,name:"keyword.operator.quad-del-up.apl"},{match:/⍏/dgv,name:"keyword.operator.vane-up.apl"},{match:/⍐/dgv,name:"keyword.operator.quad-arrow-up.apl"},{match:/⍑/dgv,name:"keyword.operator.tack-up.apl"},{match:/⍓/dgv,name:"keyword.operator.quad-caret-up.apl"},{match:/⍔/dgv,name:"keyword.operator.quad-del-down.apl"},{match:/⍖/dgv,name:"keyword.operator.vane-down.apl"},{match:/⍗/dgv,name:"keyword.operator.quad-arrow-down.apl"},{match:/⍘/dgv,name:"keyword.operator.underbar-quote.apl"},{match:/⍚/dgv,name:"keyword.operator.underbar-diamond.apl"},{match:/⍛/dgv,name:"keyword.operator.underbar-jot.apl"},{match:/⍜/dgv,name:"keyword.operator.underbar-circle.apl"},{match:/⍞/dgv,name:"keyword.operator.quad-quote.apl"},{match:/⍡/dgv,name:"keyword.operator.dotted-tack-up.apl"},{match:/⍢/dgv,name:"keyword.operator.dotted-del.apl"},{match:/⍥/dgv,name:"keyword.operator.dotted-circle.apl"},{match:/⍦/dgv,name:"keyword.operator.stile-shoe-up.apl"},{match:/⍧/dgv,name:"keyword.operator.stile-shoe-left.apl"},{match:/⍩/dgv,name:"keyword.operator.dotted-greater.apl"},{match:/⍭/dgv,name:"keyword.operator.stile-tilde.apl"},{match:/⍮/dgv,name:"keyword.operator.underbar-semicolon.apl"},{match:/⍯/dgv,name:"keyword.operator.quad-not-equal.apl"},{match:/⍰/dgv,name:"keyword.operator.quad-question.apl"}]},sysvars:{patterns:[{captures:{"1":{name:"punctuation.definition.quad.apl"},"2":{name:"punctuation.definition.quad-quote.apl"}},match:/(?:(⎕)|(⍞))[A-Za-z]*/dgv,name:"support.system.variable.apl"}]}},scopeName:"source.apl",embeddedLangs:["html","xml","css","javascript","json"],aliases:undefined})
|
|
9
|
+
|
|
10
|
+
export default [
|
|
11
|
+
...html,
|
|
12
|
+
...xml,
|
|
13
|
+
...css,
|
|
14
|
+
...javascript,
|
|
15
|
+
...json,
|
|
16
|
+
lang
|
|
17
|
+
]
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"AppleScript",fileTypes:["applescript","scpt","script editor"],firstLineMatch:/(?<=^|\n(?!$))#![^\n]*(osascript)/dgv,name:"applescript",patterns:[{include:"#blocks"},{include:"#inline"}],repository:{"attributes.considering-ignoring":{patterns:[{match:/,/dgv,name:"punctuation.separator.array.attributes.applescript"},{match:/\b(and)\b/dgv,name:"keyword.control.attributes.and.applescript"},{match:/\b(?:case|diacriticals|hyphens|numeric\p{space}+strings|punctuation|white\p{space}+space)\b/dgiv,name:"constant.other.attributes.text.applescript"},{match:/\bapplication\p{space}+responses\b/dgiv,name:"constant.other.attributes.application.applescript"}]},blocks:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(script)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,beginCaptures:{"1":{name:"keyword.control.script.applescript"},"2":{name:"entity.name.type.script-object.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+script)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.script.applescript"}},name:"meta.block.script.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(to|on)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(\()((?:[\p{space}\,\:\{\}]*(?:[\p{L}\p{M}\p{N}\p{Pc}]+)?)*)(\))/dgv,beginCaptures:{"1":{name:"keyword.control.function.applescript"},"2":{name:"entity.name.function.handler.applescript"},"3":{name:"punctuation.definition.parameters.begin.applescript"},"4":{name:"variable.parameter.handler.applescript"},"5":{name:"punctuation.definition.parameters.end.applescript"}},comment:"\n\t\t\t\t\t\tThis is not a very well-designed rule. For now,\n\t\t\t\t\t\twe can leave it like this though, as it sorta works.\n\t\t\t\t\t",end:/(?<=^|\n(?!$))\p{space}*(end)(?:\p{space}+((?!)))?(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.function.applescript"}},name:"meta.function.positional.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(to|on)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?:\p{space}+(of|in)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+))?(?=\p{space}+(above|against|apart\p{space}+from|around|aside\p{space}+from|at|below|beneath|beside|between|by|for|from|instead\p{space}+of|into|on|onto|out\p{space}+of|over|thru|under)\b)/dgv,beginCaptures:{"1":{name:"keyword.control.function.applescript"},"2":{name:"entity.name.function.handler.applescript"},"3":{name:"keyword.control.function.applescript"},"4":{name:"variable.parameter.handler.direct.applescript"}},comment:"TODO: match `given` parameters",end:/(?<=^|\n(?!$))\p{space}*(end)(?:\p{space}+((?!)))?(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.function.applescript"}},name:"meta.function.prepositional.applescript",patterns:[{captures:{"1":{name:"keyword.control.preposition.applescript"},"2":{name:"variable.parameter.handler.applescript"}},match:/\b(?:above|against|apart\p{space}+from|around|aside\p{space}+from|at|below|beneath|beside|between|by|for|from|instead\p{space}+of|into|on|onto|out\p{space}+of|over|thru|under)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgiv},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(to|on)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,beginCaptures:{"1":{name:"keyword.control.function.applescript"},"2":{name:"entity.name.function.handler.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end)(?:\p{space}+((?!)))?(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.function.applescript"}},name:"meta.function.parameterless.applescript",patterns:[{include:"$self"}]},{include:"#blocks.tell"},{include:"#blocks.repeat"},{include:"#blocks.statement"},{include:"#blocks.other"}]},"blocks.other":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(considering)\b/dgv,end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+considering)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.considering.applescript",patterns:[{begin:/(?<=considering)/dgv,end:/(?<!¬)(?=$|\n)/dgv,name:"meta.array.attributes.considering.applescript",patterns:[{include:"#attributes.considering-ignoring"}]},{begin:/(?<=ignoring)/dgv,end:/(?<!¬)(?=$|\n)/dgv,name:"meta.array.attributes.ignoring.applescript",patterns:[{include:"#attributes.considering-ignoring"}]},{match:/\b(but)\b/dgv,name:"keyword.control.but.applescript"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(ignoring)\b/dgv,end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+ignoring)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.ignoring.applescript",patterns:[{begin:/(?<=considering)/dgv,end:/(?<!¬)(?=$|\n)/dgv,name:"meta.array.attributes.considering.applescript",patterns:[{include:"#attributes.considering-ignoring"}]},{begin:/(?<=ignoring)/dgv,end:/(?<!¬)(?=$|\n)/dgv,name:"meta.array.attributes.ignoring.applescript",patterns:[{include:"#attributes.considering-ignoring"}]},{match:/\b(but)\b/dgv,name:"keyword.control.but.applescript"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.if.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+if)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.if.applescript",patterns:[{match:/\b(then)\b/dgv,name:"keyword.control.then.applescript"},{match:/\b(else\p{space}+if)\b/dgv,name:"keyword.control.else-if.applescript"},{match:/\b(else)\b/dgv,name:"keyword.control.else.applescript"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(try)\b/dgv,beginCaptures:{"1":{name:"keyword.control.try.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+(try|error))?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.try.applescript",patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(on\p{space}+error)\b/dgv,beginCaptures:{"1":{name:"keyword.control.exception.on-error.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.property.error.applescript",patterns:[{match:/\b(?:number|partial|from|to)\b/dgiv,name:"keyword.control.exception.modifier.applescript"},{include:"#inline"}]},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(using\p{space}+terms\p{space}+from)\b/dgv,beginCaptures:{"1":{name:"keyword.control.terms.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+using\p{space}+terms\p{space}+from)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.terms.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(with\p{space}+timeout(\p{space}+of)?)\b/dgv,beginCaptures:{"1":{name:"keyword.control.timeout.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+timeout)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.timeout.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(with\p{space}+transaction(\p{space}+of)?)\b/dgv,beginCaptures:{"1":{name:"keyword.control.transaction.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+transaction)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.transaction.applescript",patterns:[{include:"$self"}]}]},"blocks.repeat":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(repeat)\p{space}+(until)\b/dgv,beginCaptures:{"1":{name:"keyword.control.repeat.applescript"},"2":{name:"keyword.control.until.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+repeat)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.repeat.until.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(repeat)\p{space}+(while)\b/dgv,beginCaptures:{"1":{name:"keyword.control.repeat.applescript"},"2":{name:"keyword.control.while.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+repeat)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.repeat.while.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(repeat)\p{space}+(with)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,beginCaptures:{"1":{name:"keyword.control.repeat.applescript"},"2":{name:"keyword.control.until.applescript"},"3":{name:"variable.parameter.loop.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+repeat)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.repeat.with.applescript",patterns:[{match:/\b(from|to|by)\b/dgv,name:"keyword.control.modifier.range.applescript"},{match:/\b(in)\b/dgv,name:"keyword.control.modifier.list.applescript"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(repeat)\b(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,beginCaptures:{"1":{name:"keyword.control.repeat.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+repeat)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.repeat.forever.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(repeat)\b/dgv,beginCaptures:{"1":{name:"keyword.control.repeat.applescript"}},end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+repeat)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,endCaptures:{"1":{name:"keyword.control.end.applescript"}},name:"meta.block.repeat.times.applescript",patterns:[{match:/\b(times)\b/dgv,name:"keyword.control.times.applescript"},{include:"$self"}]}]},"blocks.statement":{patterns:[{begin:/\b(prop(?:erty)?)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv,beginCaptures:{"1":{name:"keyword.control.def.property.applescript"},"2":{name:"variable.other.property.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.property.applescript",patterns:[{match:/:/dgv,name:"punctuation.separator.key-value.property.applescript"},{include:"#inline"}]},{begin:/\b(set)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+(to)\b/dgv,beginCaptures:{"1":{name:"keyword.control.def.set.applescript"},"2":{name:"variable.other.readwrite.set.applescript"},"3":{name:"keyword.control.def.set.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.set.applescript",patterns:[{include:"#inline"}]},{begin:/\b(local)\b/dgv,beginCaptures:{"1":{name:"keyword.control.def.local.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.local.applescript",patterns:[{match:/,/dgv,name:"punctuation.separator.variables.local.applescript"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.readwrite.local.applescript"},{include:"#inline"}]},{begin:/\b(global)\b/dgv,beginCaptures:{"1":{name:"keyword.control.def.global.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.global.applescript",patterns:[{match:/,/dgv,name:"punctuation.separator.variables.global.applescript"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.readwrite.global.applescript"},{include:"#inline"}]},{begin:/\b(error)\b/dgv,beginCaptures:{"1":{name:"keyword.control.exception.error.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.error.applescript",patterns:[{match:/\b(number|partial|from|to)\b/dgv,name:"keyword.control.exception.modifier.applescript"},{include:"#inline"}]},{begin:/\b(if)\b(?=[^\n]*\bthen\b(?!\p{space}*(--[^\n]*?)?(?=$|\n)))/dgv,beginCaptures:{"1":{name:"keyword.control.if.applescript"}},end:/(?<!¬)(?=$|\n)/dgv,name:"meta.statement.if-then.applescript",patterns:[{include:"#inline"}]}]},"blocks.tell":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\p{space}+"[Tt][Ee][Xx][Tt][Mm][Aa][Tt][Ee]")(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell Textmate",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application.textmate.applescript",patterns:[{include:"#textmate"},{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\p{space}+"[Ff][Ii][Nn][Dd][Ee][Rr]")(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell Finder",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application.finder.applescript",patterns:[{include:"#finder"},{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\p{space}+"[Ssſ][Yy][Ssſ][Tt][Ee][Mm] [Ee][Vv][Ee][Nn][Tt][Ssſ]")(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell System Events",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application.system-events.applescript",patterns:[{include:"#system-events"},{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\p{space}+"[Ii][Tt][Uu][Nn][Ee][Ssſ]")(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell iTunes",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application.itunes.applescript",patterns:[{include:"#itunes"},{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\p{space}+process\b)(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell generic application process",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application-process.generic.applescript",patterns:[{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=app(lication)?\b)(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell generic application",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.application.generic.applescript",patterns:[{include:"#standard-suite"},{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?![^\n]*\bto(?!\p{space}+tell)\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"generic tell block",end:/(?<=^|\n(?!$))\p{space}*(end(?:\p{space}+tell)?)(?=\p{space}*(--[^\n]*?)?(?=$|\n))/dgv,name:"meta.block.tell.generic.applescript",patterns:[{include:"$self"}]},{begin:/(?<=^|\n(?!$))\p{space}*(tell)\p{space}+(?=[^\n]*\bto\b)/dgv,captures:{"1":{name:"keyword.control.tell.applescript"}},comment:"tell … to statement",end:/(?<!¬)(?=$|\n)/dgv,name:"meta.block.tell.generic.applescript",patterns:[{include:"$self"}]}]},"built-in":{patterns:[{include:"#built-in.constant"},{include:"#built-in.keyword"},{include:"#built-in.support"},{include:"#built-in.punctuation"}]},"built-in.constant":{patterns:[{comment:"yes/no can’t always be used as booleans, e.g. in an if() expression. But they work e.g. for boolean arguments.",match:/\b(?:true|false|yes|no)\b/dgiv,name:"constant.language.boolean.applescript"},{match:/\b(?:null|missing\p{space}+value)\b/dgiv,name:"constant.language.null.applescript"},{match:/-?\b\p{Nd}+((\.(\p{Nd}+\b)?)?(?:e\+?\p{Nd}*\b)?|\b)/dgiv,name:"constant.numeric.applescript"},{match:/\b(?:space|tab|return|linefeed|quote)\b/dgiv,name:"constant.other.text.applescript"},{match:/\b(?:all\p{space}+(caps|lowercase)|bold|condensed|expanded|hidden|italic|outline|plain|shadow|small\p{space}+caps|strikethrough|(sub|super)script|underline)\b/dgiv,name:"constant.other.styles.applescript"},{match:/\b(?:Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|Nov(ember)?|Dec(ember)?)\b/dgiv,name:"constant.other.time.month.applescript"},{match:/\b(?:Mon(day)?|Tue(sday)?|Wed(nesday)?|Thu(rsday)?|Fri(day)?|Sat(urday)?|Sun(day)?)\b/dgiv,name:"constant.other.time.weekday.applescript"},{match:/\b(?:AppleScript|pi|result|version|current\p{space}+application|its?|m[ey])\b/dgiv,name:"constant.other.miscellaneous.applescript"},{match:/\b(?:text\p{space}+item\p{space}+delimiters|print\p{space}+(length|depth))\b/dgiv,name:"variable.language.applescript"}]},"built-in.keyword":{patterns:[{match:/(&|\*|\+|-|\/|÷|\^)/dgv,name:"keyword.operator.arithmetic.applescript"},{match:/(=|≠|>|<|≥|>=|≤|<=)/dgv,name:"keyword.operator.comparison.applescript"},{match:/\b(and|or|div|mod|as|not|(a\p{space}+)?(ref(\p{space}+to)?|reference\p{space}+to)|equal(s|\p{space}+to)|contains?|comes\p{space}+(after|before)|(start|begin|end)s?\p{space}+with)\b/dgiv,name:"keyword.operator.word.applescript"},{comment:"In double quotes so we can use a single quote in the keywords.",match:/\b(is(n't|\p{space}+not)?(\p{space}+(equal(\p{space}+to)?|(less|greater)\p{space}+than(\p{space}+or\p{space}+equal(\p{space}+to)?)?|in|contained\p{space}+by))?|does(n't|\p{space}+not)\p{space}+(equal|come\p{space}+(before|after)|contain))\b/dgiv,name:"keyword.operator.word.applescript"},{match:/\b(?:some|every|whose|where|that|id|index|\p{Nd}+(st|nd|rd|th)|first|second|third|fourth|fifth|sixth|seventh|eighth|ninth|tenth|last|front|back|middle|named|beginning|end|from|to|thr(u|ough)|before|(front|back|beginning|end)\p{space}+of|after|behind|in\p{space}+(front|back|beginning|end)\p{space}+of)\b/dgiv,name:"keyword.operator.reference.applescript"},{match:/\b(?:continue|return|exit(\p{space}+repeat)?)\b/dgiv,name:"keyword.control.loop.applescript"},{match:/\b(?:about|above|after|against|and|apart\p{space}+from|around|as|aside\p{space}+from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|contain|contains|contains|copy|div|does|eighth|else|end|equal|equals|error|every|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead\p{space}+of|into|is|it|its|last|local|me|middle|mod|my|ninth|not|of|on|onto|or|out\p{space}+of|over|prop|property|put|ref|reference|repeat|returning|script|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/dgiv,name:"keyword.other.applescript"}]},"built-in.punctuation":{patterns:[{match:/¬/dgv,name:"punctuation.separator.continuation.line.applescript"},{comment:"the : in property assignments",match:/:/dgv,name:"punctuation.separator.key-value.property.applescript"},{comment:"the parentheses in groups",match:/[\(\)]/dgv,name:"punctuation.section.group.applescript"}]},"built-in.support":{patterns:[{match:/\b(?:POSIX\p{space}+path|frontmost|id|name|running|version|days?|weekdays?|months?|years?|time|date\p{space}+string|time\p{space}+string|length|rest|reverse|items?|contents|quoted\p{space}+form|characters?|paragraphs?|words?)\b/dgiv,name:"support.function.built-in.property.applescript"},{match:/\b(?:activate|log|clipboard\p{space}+info|set\p{space}+the\p{space}+clipboard\p{space}+to|the\p{space}+clipboard|info\p{space}+for|list\p{space}+(disks|folder)|mount\p{space}+volume|path\p{space}+to(\p{space}+resource)?|close\p{space}+access|get\p{space}+eof|open\p{space}+for\p{space}+access|read|set\p{space}+eof|write|open\p{space}+location|current\p{space}+date|do\p{space}+shell\p{space}+script|get\p{space}+volume\p{space}+settings|random\p{space}+number|round|set\p{space}+volume|system\p{space}+(attribute|info)|time\p{space}+to\p{space}+GMT|load\p{space}+script|run\p{space}+script|scripting\p{space}+components|store\p{space}+script|copy|count|get|launch|run|set|ASCII\p{space}+(character|number)|localized\p{space}+string|offset|summarize|beep|choose\p{space}+(application|color|file(\p{space}+name)?|folder|from\p{space}+list|remote\p{space}+application|URL)|delay|display\p{space}+(alert|dialog)|say)\b/dgiv,name:"support.function.built-in.command.applescript"},{match:/\b(?:get|run)\b/dgiv,name:"support.function.built-in.applescript"},{match:/\b(?:anything|data|text|upper\p{space}+case|propert(y|ies))\b/dgiv,name:"support.class.built-in.applescript"},{match:/\b(?:[Aa][Ll][Ii][Aa][Ssſ]|[Cc][Ll][Aa][Ssſ][Ssſ])(es)?\b/dgv,name:"support.class.built-in.applescript"},{match:/\b(?:[Aa][Pp][Pp]([Ll][Ii][Cc][Aa][Tt][Ii][Oo][Nn])?|[Bb][Oo][Oo][Ll][Ee][Aa][Nn]|[Cc][Hh][Aa][Rr][Aa][Cc][Tt][Ee][Rr]|[Cc][Oo][Nn][Ssſ][Tt][Aa][Nn][Tt]|[Dd][Aa][Tt][Ee]|[Ee][Vv][Ee][Nn][Tt]|[Ff][Ii][Ll][Ee](\p{space}+[Ssſ][Pp][Ee][Cc][Ii][Ff][Ii][Cc][Aa][Tt][Ii][Oo][Nn])?|[Hh][Aa][Nn][Dd][Ll][Ee][Rr]|[Ii][Nn][Tt][Ee][Gg][Ee][Rr]|[Ii][Tt][Ee][Mm]|[KKk][Ee][Yy][Ssſ][Tt][Rr][Oo][KKk][Ee]|[Ll][Ii][Nn][KKk][Ee][Dd]\p{space}+[Ll][Ii][Ssſ][Tt]|[Ll][Ii][Ssſ][Tt]|[Mm][Aa][Cc][Hh][Ii][Nn][Ee]|[Nn][Uu][Mm][Bb][Ee][Rr]|[Pp][Ii][Cc][Tt][Uu][Rr][Ee]|[Pp][Rr][Ee][Pp][Oo][Ssſ][Ii][Tt][Ii][Oo][Nn]|[Pp][Oo][Ssſ][Ii][Xx]\p{space}+[Ff][Ii][Ll][Ee]|[Rr][Ee][Aa][Ll]|[Rr][Ee][Cc][Oo][Rr][Dd]|[Rr][Ee][Ff][Ee][Rr][Ee][Nn][Cc][Ee](\p{space}+[Ff][Oo][Rr][Mm])?|[Rr][Gg][Bb]\p{space}+[Cc][Oo][Ll][Oo][Rr]|[Ssſ][Cc][Rr][Ii][Pp][Tt]|[Ssſ][Oo][Uu][Nn][Dd]|[Tt][Ee][Xx][Tt]\p{space}+[Ii][Tt][Ee][Mm]|[Tt][Yy][Pp][Ee]\p{space}+[Cc][Ll][Aa][Ssſ][Ssſ]|[Vv][Ee][Cc][Tt][Oo][Rr]|[Ww][Rr][Ii][Tt][Ii][Nn][Gg]\p{space}+[Cc][Oo][Dd][Ee](\p{space}+[Ii][Nn][Ff][Oo])?|[Zz][Oo][Nn][Ee]|(([Ii][Nn][Tt][Ee][Rr][Nn][Aa][Tt][Ii][Oo][Nn][Aa][Ll]|[Ssſ][Tt][Yy][Ll][Ee][Dd](\p{space}+([Cc][Ll][Ii][Pp][Bb][Oo][Aa][Rr][Dd]|[Uu][Nn][Ii][Cc][Oo][Dd][Ee]))?|[Uu][Nn][Ii][Cc][Oo][Dd][Ee])\p{space}+)?[Tt][Ee][Xx][Tt]|(([Cc]|[Ee][Nn][Cc][Oo][Dd][Ee][Dd]|[Pp][Aa][Ssſ][Cc][Aa][Ll])\p{space}+)?[Ssſ][Tt][Rr][Ii][Nn][Gg])s?\b/dgv,name:"support.class.built-in.applescript"},{match:/\b((cubic\p{space}+(centi)?|square\p{space}+(kilo)?|centi|kilo)met(er|re)s|square\p{space}+(yards|feet|miles)|cubic\p{space}+(yards|feet|inches)|miles|inches|lit(re|er)s|gallons|quarts|(kilo)?grams|ounces|pounds|degrees\p{space}+(Celsius|Fahrenheit|Kelvin))\b/dgiv,name:"support.class.built-in.unit.applescript"},{match:/\b(?:seconds|minutes|hours|days)\b/dgiv,name:"support.class.built-in.time.applescript"}]},comments:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(#!)/dgv,captures:{"1":{name:"punctuation.definition.comment.applescript"}},end:/\n/dgv,name:"comment.line.number-sign.applescript"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.applescript"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.applescript"}},end:/\n/dgv,name:"comment.line.number-sign.applescript"}]},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=--)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.applescript"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.applescript"}},end:/\n/dgv,name:"comment.line.double-dash.applescript"}]},{begin:/\(\*/dgv,captures:{"0":{name:"punctuation.definition.comment.applescript"}},end:/\*\)/dgv,name:"comment.block.applescript",patterns:[{include:"#comments.nested"}]}]},"comments.nested":{patterns:[{begin:/\(\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.applescript"}},end:/\*\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.applescript"}},name:"comment.block.applescript",patterns:[{include:"#comments.nested"}]}]},"data-structures":{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.array.begin.applescript"}},comment:"We cannot necessarily distinguish \"records\" from \"arrays\", and so this could be either.",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.array.end.applescript"}},name:"meta.array.applescript",patterns:[{captures:{"1":{name:"constant.other.key.applescript"},"2":{name:"meta.identifier.applescript"},"3":{name:"punctuation.definition.identifier.applescript"},"4":{name:"punctuation.definition.identifier.applescript"},"5":{name:"punctuation.separator.key-value.applescript"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+|((\|)[^\|\n]*(\|)))\p{space}*(:)/dgv},{match:/:/dgv,name:"punctuation.separator.key-value.applescript"},{match:/,/dgv,name:"punctuation.separator.array.applescript"},{include:"#inline"}]},{begin:/(?:(?<=application )|(?<=app ))(")/dgv,captures:{"1":{name:"punctuation.definition.string.applescript"}},end:/(")/dgv,name:"string.quoted.double.application-name.applescript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.applescript"}]},{begin:/(")/dgv,captures:{"1":{name:"punctuation.definition.string.applescript"}},end:/(")/dgv,name:"string.quoted.double.applescript",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.applescript"}]},{captures:{"1":{name:"punctuation.definition.identifier.applescript"},"2":{name:"punctuation.definition.identifier.applescript"}},match:/(\|)[^\|\n]*(\|)/dgv,name:"meta.identifier.applescript"},{captures:{"1":{name:"punctuation.definition.data.applescript"},"2":{name:"support.class.built-in.applescript"},"3":{name:"storage.type.utxt.applescript"},"4":{name:"string.unquoted.data.applescript"},"5":{name:"punctuation.definition.data.applescript"},"6":{name:"keyword.operator.applescript"},"7":{name:"support.class.built-in.applescript"}},match:/(«)(data) (utxt|utf8)([0-9A-Fa-f]*)(»)(?:\p{space}+(as)\p{space}+[Uu][Nn][Ii][Cc][Oo][Dd][Ee]\p{space}+[Tt][Ee][Xx][Tt])?/dgv,name:"constant.other.data.utxt.applescript"},{begin:/(«)([\p{L}\p{M}\p{N}\p{Pc}]+)\b(?=\p{space})/dgv,beginCaptures:{"1":{name:"punctuation.definition.data.applescript"},"2":{name:"support.class.built-in.applescript"}},end:/(»)/dgv,endCaptures:{"1":{name:"punctuation.definition.data.applescript"}},name:"constant.other.data.raw.applescript"},{captures:{"1":{name:"punctuation.definition.data.applescript"},"2":{name:"punctuation.definition.data.applescript"}},match:/(«)[^»]*(»)/dgv,name:"invalid.illegal.data.applescript"}]},finder:{patterns:[{match:/\b(item|container|(computer|disk|trash)-object|disk|folder|((alias|application|document|internet location) )?file|clipping|package)s?\b/dgv,name:"support.class.finder.items.applescript"},{match:/\b((Finder|desktop|information|preferences|clipping) )windows?\b/dgv,name:"support.class.finder.window-classes.applescript"},{match:/\b(preferences|(icon|column|list) view options|(label|column|alias list)s?)\b/dgv,name:"support.class.finder.type-definitions.applescript"},{match:/\b(copy|find|sort|clean up|eject|empty( trash)|erase|reveal|update)\b/dgv,name:"support.function.finder.items.applescript"},{match:/\b(insertion location|product version|startup disk|desktop|trash|home|computer container|finder preferences)\b/dgv,name:"support.constant.finder.applescript"},{match:/\b(visible)\b/dgv,name:"support.variable.finder.applescript"}]},inline:{patterns:[{include:"#comments"},{include:"#data-structures"},{include:"#built-in"},{include:"#standardadditions"}]},itunes:{patterns:[{match:/\b(artwork|application|encoder|EQ preset|item|source|visual|(EQ |browser )?window|((audio CD|device|shared|URL|file) )?track|playlist window|((audio CD|device|radio tuner|library|folder|user) )?playlist)s?\b/dgv,name:"support.class.itunes.applescript"},{match:/\b(add|back track|convert|fast forward|(next|previous) track|pause|play(pause)?|refresh|resume|rewind|search|stop|update|eject|subscribe|update(Podcast|AllPodcasts)|download)\b/dgv,name:"support.function.itunes.applescript"},{match:/\b(current (playlist|stream (title|URL)|track)|player state)\b/dgv,name:"support.constant.itunes.applescript"},{match:/\b(current (encoder|EQ preset|visual)|EQ enabled|fixed indexing|full screen|mute|player position|sound volume|visuals enabled|visual size)\b/dgv,name:"support.variable.itunes.applescript"}]},"standard-suite":{patterns:[{match:/\b(colors?|documents?|items?|windows?)\b/dgv,name:"support.class.standard-suite.applescript"},{match:/\b(close|count|delete|duplicate|exists|make|move|open|print|quit|save|activate|select|data size)\b/dgv,name:"support.function.standard-suite.applescript"},{match:/\b(name|frontmost|version)\b/dgv,name:"support.constant.standard-suite.applescript"},{match:/\b(selection)\b/dgv,name:"support.variable.standard-suite.applescript"},{match:/\b(attachments?|attribute runs?|characters?|paragraphs?|texts?|words?)\b/dgv,name:"support.class.text-suite.applescript"}]},standardadditions:{patterns:[{match:/\b((alert|dialog) reply)\b/dgv,name:"support.class.standardadditions.user-interaction.applescript"},{match:/\b(file information)\b/dgv,name:"support.class.standardadditions.file.applescript"},{match:/\b(POSIX files?|system information|volume settings)\b/dgv,name:"support.class.standardadditions.miscellaneous.applescript"},{match:/\b(URLs?|internet address(es)?|web pages?|FTP items?)\b/dgv,name:"support.class.standardadditions.internet.applescript"},{match:/\b(info for|list (disks|folder)|mount volume|path to( resource)?)\b/dgv,name:"support.function.standardadditions.file.applescript"},{match:/\b(beep|choose (application|color|file( name)?|folder|from list|remote application|URL)|delay|display (alert|dialog)|say)\b/dgv,name:"support.function.standardadditions.user-interaction.applescript"},{match:/\b(ASCII (character|number)|localized string|offset|summarize)\b/dgv,name:"support.function.standardadditions.string.applescript"},{match:/\b(set the clipboard to|the clipboard|clipboard info)\b/dgv,name:"support.function.standardadditions.clipboard.applescript"},{match:/\b(open for access|close access|read|write|get eof|set eof)\b/dgv,name:"support.function.standardadditions.file-i-o.applescript"},{match:/\b((load|store|run) script|scripting components)\b/dgv,name:"support.function.standardadditions.scripting.applescript"},{match:/\b(current date|do shell script|get volume settings|random number|round|set volume|system attribute|system info|time to GMT)\b/dgv,name:"support.function.standardadditions.miscellaneous.applescript"},{match:/\b(opening folder|(closing|moving) folder window for|adding folder items to|removing folder items from)\b/dgv,name:"support.function.standardadditions.folder-actions.applescript"},{match:/\b(open location|handle CGI request)\b/dgv,name:"support.function.standardadditions.internet.applescript"}]},"system-events":{patterns:[{match:/\b(audio (data|file))\b/dgv,name:"support.class.system-events.audio-file.applescript"},{match:/\b(alias(es)?|(Classic|local|network|system|user) domain objects?|disk( item)?s?|domains?|file( package)?s?|folders?|items?)\b/dgv,name:"support.class.system-events.disk-folder-file.applescript"},{match:/\b(delete|open|move)\b/dgv,name:"support.function.system-events.disk-folder-file.applescript"},{match:/\b(folder actions?|scripts?)\b/dgv,name:"support.class.system-events.folder-actions.applescript"},{match:/\b(attach action to|attached scripts|edit action of|remove action from)\b/dgv,name:"support.function.system-events.folder-actions.applescript"},{match:/\b(movie data|movie file)\b/dgv,name:"support.class.system-events.movie-file.applescript"},{match:/\b(log out|restart|shut down|sleep)\b/dgv,name:"support.function.system-events.power.applescript"},{match:/\b(((application |desk accessory )?process|(check|combo )?box)(es)?|(action|attribute|browser|(busy|progress|relevance) indicator|color well|column|drawer|group|grow area|image|incrementor|list|menu( bar)?( item)?|(menu |pop up |radio )?button|outline|(radio|tab|splitter) group|row|scroll (area|bar)|sheet|slider|splitter|static text|table|text (area|field)|tool bar|UI element|window)s?)\b/dgv,name:"support.class.system-events.processes.applescript"},{match:/\b(click|key code|keystroke|perform|select)\b/dgv,name:"support.function.system-events.processes.applescript"},{match:/\b(property list (file|item))\b/dgv,name:"support.class.system-events.property-list.applescript"},{match:/\b(annotation|QuickTime (data|file)|track)s?\b/dgv,name:"support.class.system-events.quicktime-file.applescript"},{match:/\b((abort|begin|end) transaction)\b/dgv,name:"support.function.system-events.system-events.applescript"},{match:/\b(XML (attribute|data|element|file)s?)\b/dgv,name:"support.class.system-events.xml.applescript"},{match:/\b(print settings|users?|login items?)\b/dgv,name:"support.class.sytem-events.other.applescript"}]},textmate:{patterns:[{match:/\b(print settings)\b/dgv,name:"support.class.textmate.applescript"},{match:/\b(get url|insert|reload bundles)\b/dgv,name:"support.function.textmate.applescript"}]}},scopeName:"source.applescript",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/ara.d.mts
ADDED
package/dist/ara.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Ara",fileTypes:["ara"],name:"ara",patterns:[{include:"#namespace"},{include:"#named-arguments"},{include:"#comments"},{include:"#keywords"},{include:"#strings"},{include:"#numbers"},{include:"#operators"},{include:"#type"},{include:"#function-call"}],repository:{"class-name":{patterns:[{begin:/\b(?<!\$)(?=[\\a-zA-Z_])/dgiv,end:/([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\])\b/dgiv,endCaptures:{"1":{name:"support.class.ara"}},patterns:[{include:"#namespace"}]}]},comments:{patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.ara"}},end:/\*\//dgv,name:"comment.block.ara"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ara"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ara"}},end:/\n/dgv,name:"comment.line.double-slash.ara"}]}]},"function-call":{patterns:[{begin:/(?=\\?[a-z_0-9\\]+\\[a-z_][a-z0-9_]*\p{space}*(\(|(::<)))/dgiv,comment:"Functions in a user-defined namespace (overrides any built-ins)",end:/(?=\p{space}*(\(|(::<)))/dgv,patterns:[{include:"#user-function-call"}]},{begin:/(\\)?(?=\b[a-z_][a-z_0-9]*\p{space}*(\(|(::<)))/dgiv,beginCaptures:{"1":{name:"punctuation.separator.inheritance.php"}},comment:"Root namespace function calls (built-in or user)",end:/(?=\p{space}*(\(|(::<)))/dgv,patterns:[{include:"#user-function-call"}]}]},interpolation:{patterns:[{comment:"Interpolating octal values e.g. \\01 or \\07.",match:/\\[0-7]{1,3}/dgv,name:"constant.numeric.octal.ara"},{comment:"Interpolating hex values e.g. \\x1 or \\xFF.",match:/\\x[0-9A-Fa-f]{1,2}/dgv,name:"constant.numeric.hex.ara"},{comment:"Escaped characters in double-quoted strings e.g. \\n or \\t.",match:/\\[nrt\\\$"]/dgv,name:"constant.character.escape.ara"}]},keywords:{patterns:[{match:/\b(await|async|concurrently|break|continue|do|else|elseif|for|if|loop|while|foreach|match|return|try|yield|from|catch|finally|default|exit)\b/dgv,name:"keyword.control.ara"},{match:/\b(const|enum|class|interface|trait|namespace|type|case|function|fn)\b/dgv,name:"storage.decl.ara"},{match:/\b(final|abstract|static|readonly|public|private|protected)\b/dgv,name:"storage.modifier.ara"},{match:/\b(as|is|extends|implements|use|where|clone|new)\b/dgv,name:"keyword.other.ara"}]},"named-arguments":{captures:{"1":{name:"entity.name.variable.parameter.ara"},"2":{name:"punctuation.separator.colon.ara"}},match:/(?<=(?<=^|\n(?!$))|\(|,)\p{space}*([a-z_\x7F-\u{10FFFF}][a-z0-9_\x7F-\u{10FFFF}]*)\p{space}*(:)(?!:)/dgiv},namespace:{begin:/((namespace)|[a-z0-9_]+)?(\\)(?=[^\n]*?[^a-z_0-9\\])/dgiv,beginCaptures:{"1":{name:"entity.name.type.namespace.php"},"3":{name:"punctuation.separator.inheritance.php"}},end:/(?=[a-z0-9_]*[^a-z0-9_\\])/dgiv,name:"support.other.namespace.php",patterns:[{match:/[a-z0-9_]+(?=\\)/dgiv,name:"entity.name.type.namespace.php"},{captures:{"1":{name:"punctuation.separator.inheritance.php"}},match:/(\\)/dgv}]},numbers:{patterns:[{match:/0[xX][0-9a-fA-F]+(?:_[0-9a-fA-F]+)*/dgv,name:"constant.numeric.hex.ara"},{match:/0[bB][01]+(?:_[01]+)*/dgv,name:"constant.numeric.binary.ara"},{match:/0[oO][0-7]+(?:_[0-7]+)*/dgv,name:"constant.numeric.octal.ara"},{match:/0(?:_?[0-7]+)+/dgv,name:"constant.numeric.octal.ara"},{captures:{"1":{name:"punctuation.separator.decimal.period.ara"},"2":{name:"punctuation.separator.decimal.period.ara"}},match:/(?:(?:\p{Nd}+(?:_\p{Nd}+)*)?(\.)\p{Nd}+(?:_\p{Nd}+)*(?:[eE][\+\-]?\p{Nd}+(?:_\p{Nd}+)*)?|\p{Nd}+(?:_\p{Nd}+)*(\.)(?:\p{Nd}+(?:_\p{Nd}+)*)?(?:[eE][\+\-]?\p{Nd}+(?:_\p{Nd}+)*)?|\p{Nd}+(?:_\p{Nd}+)*[eE][\+\-]?\p{Nd}+(?:_\p{Nd}+)*)/dgv,name:"constant.numeric.decimal.ara"},{match:/0|[1-9](?:_?\p{Nd}+)*/dgv,name:"constant.numeric.decimal.ara"}]},operators:{patterns:[{comment:"assignment operators",match:/(\+=|-=|\*=|\/=|%=|\^=|&&=|<=|>=|&=|\|=|<<=|>>=|\?\?=)/dgv,name:"keyword.assignments.ara"},{comment:"logical operators",match:/(\^|\||\|\||&&|>>|<<|&|~|<<|>>|>|<|<=>|\?\?|\?|:|\?:)(?!=)/dgv,name:"keyword.operators.ara"},{comment:"comparison operators",match:/(==|===|!==|!=|<=|>=|<|>)(?!=)/dgv,name:"keyword.operator.comparison.ara"},{comment:"math operators",match:/(([\+\%]|(\*(?![\p{L}\p{M}\p{N}\p{Pc}])))(?!=))|(-(?!>))|(\/(?!\/))/dgv,name:"keyword.operator.math.ara"},{comment:"single equal assignment operator",match:/(?<![\<\>])=(?!=|>)/dgv,name:"keyword.operator.assignment.ara"},{captures:{"1":{name:"punctuation.brackets.round.ara"},"2":{name:"punctuation.brackets.square.ara"},"3":{name:"punctuation.brackets.curly.ara"},"4":{name:"keyword.operator.comparison.ara"},"5":{name:"punctuation.brackets.round.ara"},"6":{name:"punctuation.brackets.square.ara"},"7":{name:"punctuation.brackets.curly.ara"}},comment:"less than, greater than (special case)",match:/(?:\b|(?:(\))|(\])|(\})))[ \t]+([\<\>])[ \t]+(?:\b|(?:(\()|(\[)|(\{)))/dgv},{comment:"arrow method call, arrow property access",match:/(?:->|\?->)/dgv,name:"keyword.operator.arrow.ara"},{comment:"double arrow key-value pair",match:/=>/dgv,name:"keyword.operator.double-arrow.ara"},{comment:"static method call, static property access",match:/::/dgv,name:"keyword.operator.static.ara"},{comment:"closure creation",match:/\(\.\.\.\)/dgv,name:"keyword.operator.closure.ara"},{comment:"spread operator",match:/\.\.\./dgv,name:"keyword.operator.spread.ara"},{comment:"namespace operator",match:/\\/dgv,name:"keyword.operator.namespace.ara"}]},strings:{patterns:[{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.ara",patterns:[{match:/\\[\\']/dgv,name:"constant.character.escape.ara"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.ara",patterns:[{include:"#interpolation"}]}]},type:{name:"support.type.php",patterns:[{match:/\b(?:void|true|false|null|never|float|bool|int|string|dict|vec|object|mixed|nonnull|resource|self|static|parent|iterable)\b/dgv,name:"support.type.php"},{begin:/([A-Za-z_][A-Za-z0-9_]*)</dgv,beginCaptures:{"1":{name:"support.class.php"}},end:/>/dgv,patterns:[{include:"#type-annotation"}]},{begin:/(shape\()/dgv,end:/((,|\.\.\.)?\p{space}*\))/dgv,endCaptures:{"1":{name:"keyword.operator.key.php"}},name:"storage.type.shape.php",patterns:[{include:"#type-annotation"},{include:"#strings"},{include:"#constants"}]},{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#type-annotation"}]},{begin:/\(fn\(/dgv,end:/\)/dgv,patterns:[{include:"#type-annotation"}]},{include:"#class-name"},{include:"#comments"}]},"user-function-call":{begin:/(?=[a-z_0-9\\]*[a-z_][a-z0-9_]*\p{space}*\()/dgiv,end:/[a-z_][a-z_0-9]*(?=\p{space}*\()/dgiv,endCaptures:{"0":{name:"entity.name.function.php"}},name:"meta.function-call.php",patterns:[{include:"#namespace"}]}},scopeName:"source.ara",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|