@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/cql.d.mts
ADDED
package/dist/cql.mjs
ADDED
package/dist/crystal.mjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import html from './html.mjs'
|
|
3
|
+
import sql from './sql.mjs'
|
|
4
|
+
import css from './css.mjs'
|
|
5
|
+
import c from './c.mjs'
|
|
6
|
+
import javascript from './javascript.mjs'
|
|
7
|
+
import shellscript from './shellscript.mjs'
|
|
8
|
+
|
|
9
|
+
const lang = Object.freeze({displayName:"Crystal",fileTypes:["cr"],firstLineMatch:/(?<=^|\n(?!$))#!\/[^\n]*\bcrystal/dgv,foldingStartMarker:new EmulatedRegExp("(?<=^|\\n(?!$))((?:(?=($E$\\p{space}*))\\2)(annotation|module|class|struct|union|enum|def(?![^\\n]*\\bend\\p{space}*(?=$|\\n))|unless|if|case|begin|for|while|until|(?<=^|\\n(?!$))=begin|(\"(?:(?=($E$(\\\\[^\\n]|[^\"])*))\\5)\"|'(?:(?=($E$(\\\\[^\\n]|[^'])*))\\7)'|[^\\#\"'])*(\\p{space}(do|begin|case)|(?<!\\$)[\\-\\+\\=\\&\\|\\*\\/\\~\\%\\^\\<\\>\\~](?:(?=($E$\\p{space}*))\\11)(if|unless)))\\b(?!(?:(?=($E$[^\\;]*))\\13);[^\\n]*?\\bend\\b)|(\"(?:(?=($E$(\\\\[^\\n]|[^\"])*))\\15)\"|'(?:(?=($E$(\\\\[^\\n]|[^'])*))\\17)'|[^\\#\"'])*(\\{(?!(?:(?=($E$[^\\}]*))\\20)\\})|\\[(?!(?:(?=($E$[^\\]]*))\\21)\\])))[^\\n]*(?=$|\\n)|[\\#][^\\n]*?\\(fold\\)(?:(?=($E$\\p{space}*))\\22)(?=$|\\n)","dgv",{"useEmulationGroups":true}),foldingStopMarker:new EmulatedRegExp("(((?<=^|\\n(?!$))|;)(?:(?=($E$\\p{space}*))\\3)end(?:(?=($E$\\p{space}*))\\4)([\\#][^\\n]*)?(?=$|\\n)|((?<=^|\\n(?!$))|;)(?:(?=($E$\\p{space}*))\\7)end\\.[^\\n]*(?=$|\\n)|(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\8)[\\}\\]],?(?:(?=($E$\\p{space}*))\\9)([\\#][^\\n]*)?(?=$|\\n)|[\\#][^\\n]*?\\(end\\)(?:(?=($E$\\p{space}*))\\11)(?=$|\\n)|(?<=^|\\n(?!$))=end)","dgv",{"useEmulationGroups":true}),name:"crystal",patterns:[{captures:{"1":{name:"keyword.control.class.crystal"},"2":{name:"keyword.control.class.crystal"},"3":{name:"entity.name.type.class.crystal"},"5":{name:"punctuation.separator.crystal"},"6":{name:"support.class.other.type-param.crystal"},"7":{name:"entity.other.inherited-class.crystal"},"8":{name:"punctuation.separator.crystal"},"9":{name:"punctuation.separator.crystal"},"10":{name:"support.class.other.type-param.crystal"},"11":{name:"punctuation.definition.variable.crystal"}},match:/(?<=^|\n(?!$))\p{space}*(abstract)?\p{space}*(class|struct|union|annotation|enum)\p{space}+(([\.A-Z_\:\x80-\u{10FFFF}][\.\p{L}\p{M}\p{N}\p{Pc}\:\x80-\u{10FFFF}]*(\(([\,\p{space}\.a-zA-Z0-9_\:\x80-\u{10FFFF}]+)\))?(\p{space}*(<)\p{space}*[\.\:A-Z\x80-\u{10FFFF}][\.\:\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(\(([\.a-zA-Z0-9_\:]+\p{space},)\))?)?)|((<<)\p{space}*[\.A-Z0-9_\:\x80-\u{10FFFF}]+))/dgv,name:"meta.class.crystal"},{captures:{"1":{name:"keyword.control.module.crystal"},"2":{name:"entity.name.type.module.crystal"},"3":{name:"entity.other.inherited-class.module.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.module.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.module.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/(?<=^|\n(?!$))\p{space}*(module)\p{space}+(([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))?([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))?([A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*(::))*[A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*)/dgv,name:"meta.module.crystal"},{captures:{"1":{name:"keyword.control.lib.crystal"},"2":{name:"entity.name.type.lib.crystal"},"3":{name:"entity.other.inherited-class.lib.first.crystal"},"4":{name:"punctuation.separator.inheritance.crystal"},"5":{name:"entity.other.inherited-class.lib.second.crystal"},"6":{name:"punctuation.separator.inheritance.crystal"},"7":{name:"entity.other.inherited-class.lib.third.crystal"},"8":{name:"punctuation.separator.inheritance.crystal"}},match:/(?<=^|\n(?!$))\p{space}*(lib)\p{space}+(([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))?([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(::))*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.lib.crystal"},{captures:{"1":{name:"keyword.control.lib.type.crystal"},"2":{name:"entity.name.lib.type.crystal"},"3":{name:"keyword.control.lib.crystal"},"4":{name:"entity.name.lib.type.value.crystal"}},comment:"type in lib",match:/(?<!\.)\b(type)\p{space}+([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(=)\p{space}*([^\n]+)/dgv,name:"meta.lib.type.crystal"},{comment:"everything being a reserved word, not a value, and needing a 'end' is a..",match:/(?<!\.)\b(fun|begin|case|class|else|elsif|end|ensure|enum|for|if|macro|module|rescue|struct|then|union|unless|until|when|while)\b(?![\?\!\:])/dgv,name:"keyword.control.crystal"},{comment:"everything being a reserved word, not a value, and not needing a 'end' is a..",match:/(?<!\.)\b(abstract|alias|asm|break|extend|in|include|next|of|private|protected|struct|return|select|super|with|yield)\b(?![\?\!\:])/dgv,name:"keyword.control.primary.crystal"},{comment:"everything being a spec keyword, not a value, and needing a block is a..",match:/(?<!\.)\b(describe|context|it|expect_raises)\b(?![\?\!\:])/dgv,name:"keyword.control.crystal"},{comment:"contextual smart pair support for block parameters",match:/(?<!\.)\bdo\b\p{space}*/dgv,name:"keyword.control.start-block.crystal"},{comment:"contextual smart pair support",match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.crystal.start-block"},{comment:"Just as above but being not a logical operation",match:/(?<!\.)\b(pointerof|typeof|sizeof|instance_sizeof|offsetof|previous_def|forall|out|uninitialized)\b(?![\?\!\:])|\.(is_a\?|nil\?|responds_to\?|as\?|as\x08)/dgv,name:"keyword.control.pseudo-method.crystal"},{match:/\bnil\b(?![\?\!\:])/dgv,name:"constant.language.nil.crystal"},{match:/\b(true|false)\b(?![\?\!\:])/dgv,name:"constant.language.boolean.crystal"},{match:/\b(__(DIR|FILE|LINE|END_LINE)__)\b(?![\?\!\:])/dgv,name:"variable.language.crystal"},{match:/\b(self)\b(?![\?\!\:])/dgv,name:"variable.language.self.crystal"},{comment:"https://crystal-lang.org/api/0.36.1/Object.html#macro-summary",match:/(?<!\.)\b(((class_)?((getter|property)\b[\!\?]?|setter\b))|(def_(clone|equals|equals_and_hash|hash)|delegate|forward_missing_to)\b)(?![\?\!\:])/dgv,name:"support.function.kernel.crystal"},{begin:/\b(require)\b/dgv,captures:{"1":{name:"keyword.other.special-method.crystal"}},end:/(?=$|\n)|(?=#)/dgv,name:"meta.require.crystal",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@)[a-zA-Z_\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*[\?\!\=]?/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(@@)[a-zA-Z_\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*[\?\!\=]?/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(?!%[Qxrqwi]?[\(\[\{\<\|])%([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.fresh.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(\$)(!|@|&|`|'|\+|\p{Nd}+|~|=|\/|\\|,|;|\.|<|>|_|\*|\$|\?|:|"|-[0adFiIlpv])/dgv,name:"variable.other.readwrite.global.pre-defined.crystal"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.crystal"}},end:/\]/dgv,name:"meta.environment-variable.crystal",patterns:[{include:"$self"}]},{comment:"Literals name of Crystal",match:/\b[A-Z\x80-\u{10FFFF}][\p{L}\p{M}\p{N}\p{Pc}\x80-\u{10FFFF}]*/dgv,name:"support.class.crystal"},{comment:"Fetch from https://crystal-lang.org/api/0.36.1/toplevel.html",match:/(?<!\.)\b(abort|at_exit|caller|exit|gets|loop|main|p|pp|print|printf|puts|raise|rand|read_line|sleep|spawn|sprintf|system|debugger|record|spawn)\b(?![\?\!\:])/dgv,name:"support.function.kernel.crystal"},{comment:"Constant name in any where",match:/\b[_A-Z]+\b/dgv,name:"variable.other.constant.crystal"},{begin:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\4)))\\3)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\6)?|\\^|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.crystal"},"2":{name:"entity.name.function.crystal"},"3":{name:"punctuation.definition.parameters.crystal"}},comment:"The method pattern comes from the symbol pattern. See there for an explanation.",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.crystal"}},name:"meta.function.method.with-arguments.crystal",patterns:[{begin:/(?![\p{space}\,\)])/dgv,end:/(?=,|\)\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.crystal"},"2":{name:"constant.other.symbol.hashkey.parameter.function.crystal"},"3":{name:"punctuation.definition.constant.hashkey.crystal"},"4":{name:"variable.parameter.function.crystal"}},match:/([\&\*]?)(?:([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*(:))|([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},{include:"$self"}]}]},{captures:{"1":{name:"keyword.control.def.crystal"},"3":{name:"entity.name.function.crystal"}},comment:" the optional name is just to catch the def also without a method-name",match:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\b(\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\5)))\\4)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\7)?|\\^|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|\\[\\]=?))\\6)))?","dgv",{"useEmulationGroups":true}),name:"meta.function.method.without-arguments.crystal"},{comment:"Floating point literal (fraction)",match:/\b\p{Nd}[0-9_]*\.\p{Nd}[0-9_]*([eE][\+\-]?[0-9_]+)?(f32|f64)?\b/dgv,name:"constant.numeric.float.crystal"},{comment:"Floating point literal (exponent)",match:/\b\p{Nd}[0-9_]*(\.\p{Nd}[0-9_]*)?[eE][\+\-]?[0-9_]+(f32|f64)?\b/dgv,name:"constant.numeric.float.crystal"},{comment:"Floating point literal (typed)",match:/\b\p{Nd}[0-9_]*(\.\p{Nd}[0-9_]*)?([eE][\+\-]?[0-9_]+)?(f32|f64)\b/dgv,name:"constant.numeric.float.crystal"},{comment:"Integer literal (decimal)",match:/\b(?!0\p{Nd})\p{Nd}[0-9_]*([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.decimal.crystal"},{comment:"Integer literal (hexadecimal)",match:/\b0x[a-fA-F0-9_]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.hexadecimal.crystal"},{comment:"Integer literal (octal)",match:/\b0o[0-7_]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.octal.crystal"},{comment:"Integer literal (binary)",match:/\b0b[01_]+([ui](8|16|32|64|128))?\b/dgv,name:"constant.numeric.integer.binary.crystal"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.crystal"}},comment:"symbol literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.crystal"}},name:"constant.other.symbol.crystal",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.crystal"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.crystal"}},comment:"symbol literal with \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.crystal"}},name:"constant.other.symbol.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{comment:"Needs higher precedence than regular expressions.",match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.crystal"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"string literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.single.crystal",patterns:[{match:/\\'|\\\\/dgv,name:"constant.character.escape.crystal"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"string literal with interpolation and \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allows for interpolation)",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%x\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allow for interpolation)",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%x\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allow for interpolation)",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%x</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allow for interpolation)",end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%x\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allow for interpolation)",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%x\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"execute string (allow for interpolation)",end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.interpolated.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?:(?<=^|\n(?!$))|(?<=[\=\>\~\(\?\:\[\,\|\&\;]|[\p{space}\;]if\p{space}|[\p{space}\;]elsif\p{space}|[\p{space}\;]while\p{space}|[\p{space}\;]unless\p{space}|[\p{space}\;]when\p{space}|[\p{space}\;]assert_match\p{space}|[\p{space}\;]or\p{space}|[\p{space}\;]and\p{space}|[\p{space}\;]not\p{space}|[\p{space}\.]index\p{space}|[\p{space}\.]scan\p{space}|[\p{space}\.]sub\p{space}|[\p{space}\.]sub!\p{space}|[\p{space}\.]gsub\p{space}|[\p{space}\.]gsub!\p{space}|[\p{space}\.]match\p{space})|(?<=(?<=^|\n(?!$))when\p{space}|(?<=^|\n(?!$))if\p{space}|(?<=^|\n(?!$))elsif\p{space}|(?<=^|\n(?!$))while\p{space}|(?<=^|\n(?!$))unless\p{space}))\p{space}*((\/))(?![\*\+\{\}\?])/dgv,captures:{"1":{name:"string.regexp.classic.crystal"},"2":{name:"punctuation.definition.string.crystal"}},comment:"regular expressions (normal) we only start a regexp if the character before it (excluding whitespace) is what we think is before a regexp",contentName:"string.regexp.classic.crystal",end:/((\/[imsx]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"regular expressions (literal)",end:/\}[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"regular expressions (literal)",end:/\][imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"regular expressions (literal)",end:/\)[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"regular expressions (literal)",end:/>[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"regular expressions (literal)",end:/\|[imsx]*/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.regexp.mod-r.crystal",patterns:[{include:"#regex_sub"}]},{begin:/%Q?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal capable of interpolation ()",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%Q?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal capable of interpolation []",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%Q?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal capable of interpolation <>",end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%Q?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal capable of interpolation -- {}",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.double.crystal.mod",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%Q\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal capable of interpolation -- ||",end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.upper.crystal",patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/%[qwi]\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal incapable of interpolation -- ()",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.crystal"},{include:"#nest_parens"}]},{begin:/%[qwi]</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal incapable of interpolation -- <>",end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.crystal"},{include:"#nest_ltgt"}]},{begin:/%[qwi]\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal incapable of interpolation -- []",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.crystal"},{include:"#nest_brackets"}]},{begin:/%[qwi]\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal incapable of interpolation -- {}",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.crystal"},{include:"#nest_curly"}]},{begin:/%[qwi]\|/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"literal incapable of interpolation -- ||",end:/\|/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.quoted.other.literal.lower.crystal",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},comment:"symbols",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*(?:(?=($E$[\\?\\!]|=(?![\\>\\=])))\\3)?|===?|>[\\>\\=]?|<[\\<\\=]?|<=>|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\][\\?\\=]?|@@?[a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*))\\2)","dgv",{"useEmulationGroups":true}),name:"constant.other.symbol.crystal"},{captures:{"1":{name:"punctuation.definition.constant.crystal"}},comment:"symbols",match:new EmulatedRegExp("(?:(?=($E$[a-zA-Z_\\x80-\\u{10FFFF}][\\p{L}\\p{M}\\p{N}\\p{Pc}\\x80-\\u{10FFFF}]*(?:(?=($E$[\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"useEmulationGroups":true}),name:"constant.other.symbol.crystal.19syntax"},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},match:/(?:(?<=^|\n(?!$))[ \t]+)?(#)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.number-sign.crystal"},{match:/(?<!\}\})\b_([\p{L}\p{M}\p{N}\p{Pc}]+[\?\!]?)\b(?!\()/dgv,name:"comment.unused.crystal"},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded HTML and indented terminator",contentName:"text.html.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.html.crystal",patterns:[{include:"#heredoc"},{include:"text.html.basic"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded SQL and indented terminator",contentName:"text.sql.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.sql.crystal",patterns:[{include:"#heredoc"},{include:"source.sql"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded css and intented terminator",contentName:"text.css.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.css.crystal",patterns:[{include:"#heredoc"},{include:"source.css"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded c++ and intented terminator",contentName:"text.c++.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.cplusplus.crystal",patterns:[{include:"#heredoc"},{include:"source.c++"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded c++ and intented terminator",contentName:"text.c.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.c.crystal",patterns:[{include:"#heredoc"},{include:"source.c"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded javascript and intented terminator",contentName:"text.js.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.crystal",patterns:[{include:"#heredoc"},{include:"source.js"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded javascript and intented terminator",contentName:"text.js.jquery.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.js.jquery.crystal",patterns:[{include:"#heredoc"},{include:"source.js.jquery"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded shell and intented terminator",contentName:"text.shell.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.shell.crystal",patterns:[{include:"#heredoc"},{include:"source.shell"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-('?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CRYSTAL)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with embedded crystal and intented terminator",contentName:"text.crystal.embedded.crystal",end:/\p{space}*\2\b()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.embedded.crystal.crystal",patterns:[{include:"#heredoc"},{include:"source.crystal"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-'([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)'))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with indented terminator",end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$<<-([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\b))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.crystal"}},comment:"heredoc with indented terminator",end:/\p{space}*\1\b()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.crystal"}},name:"string.unquoted.heredoc.crystal",patterns:[{include:"#heredoc"},{include:"#interpolated_crystal"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}|[^A-Za-z0-9_]do|(?<=^|\n(?!$))do|[^A-Za-z0-9_]do\p{space}|(?<=^|\n(?!$))do\p{space})(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.crystal"}},end:/(?<!\|)(\|)(?!\|)/dgv,patterns:[{include:"source.crystal"},{match:/[_a-zA-Z][_a-zA-Z0-9]*/dgv,name:"variable.other.block.crystal"},{match:/,/dgv,name:"punctuation.separator.variable.crystal"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.crystal"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.crystal"},{match:/<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?/dgv,name:"keyword.operator.comparison.crystal"},{match:/(?<=(?<=^|\n(?!$))|[ \t])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.crystal"},{match:/(\{%|%\}|\{\{|\}\})/dgv,name:"keyword.operator.macro.crystal"},{captures:{"1":{name:"punctuation.separator.method.crystal"}},comment:"Safe navigation operator",match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/(%|&|\*\*|\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.crystal"},{match:/=/dgv,name:"keyword.operator.assignment.crystal"},{match:/\||~|>>/dgv,name:"keyword.operator.other.crystal"},{match:/:/dgv,name:"punctuation.separator.other.crystal"},{match:/;/dgv,name:"punctuation.separator.statement.crystal"},{match:/,/dgv,name:"punctuation.separator.object.crystal"},{match:/\.|::/dgv,name:"punctuation.separator.method.crystal"},{match:/\{|\}/dgv,name:"punctuation.section.scope.crystal"},{match:/\[|\]/dgv,name:"punctuation.section.array.crystal"},{match:/\(|\)/dgv,name:"punctuation.section.function.crystal"},{begin:/(?=[a-zA-Z0-9_\!\?]+\()/dgv,end:/(?<=\))/dgv,name:"meta.function-call.crystal",patterns:[{match:/([a-zA-Z0-9_\!\?]+)(?=\()/dgv,name:"entity.name.function.crystal"},{include:"$self"}]},{comment:"This is kindof experimental. There really is no way to perfectly match all regular variables, but you can pretty well assume that any normal word in certain curcumstances that havnt already been scoped as something else are probably variables, and the advantages beat the potential errors",match:/((?<=[^\p{L}\p{M}\p{N}\p{Pc}])\b|(?<=^|\n(?!$)))[\p{L}\p{M}\p{N}\p{Pc}]+\b(?=\p{space}*([\]\)\}\=\+\-\*\/\^\$\,\.]|<\p{space}|<<[\p{space}\|\.]))/dgv,name:"variable.other.crystal"}],repository:{escaped_char:{comment:"https://crystal-lang.org/reference/syntax_and_semantics/literals/string.html",match:/\\(?:[0-7]{1,3}|x[a-fA-F0-9]{2}|u[a-fA-F0-9]{4}|u\{[a-fA-F0-9 ]+\}|[^\n])/dgv,name:"constant.character.escape.crystal"},heredoc:{begin:/(?<=^|\n(?!$))<<-?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=$|\n)/dgv,patterns:[{include:"$self"}]},interpolated_crystal:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.crystal"}},contentName:"source.crystal",end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.crystal"},"1":{name:"source.crystal"}},name:"meta.embedded.line.crystal",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}],repository:{nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]}}},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.crystal"},{captures:{"1":{name:"punctuation.definition.variable.crystal"}},match:/(#\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.crystal"}]},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.crystal"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_crystal"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.crystal"},"3":{name:"punctuation.definition.arbitrary-repetition.crystal"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.crystal"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.crystal"}},end:/\]/dgv,name:"string.regexp.character-class.crystal",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.crystal"}},end:/\)/dgv,name:"string.regexp.group.crystal",patterns:[{include:"#regex_sub"}]},{captures:{"1":{name:"punctuation.definition.comment.crystal"}},comment:"We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",match:/(?<=(?<=^|\n(?!$))|\p{space})(#)\p{space}[a-zA-Z0-9\,\. \t\?\!\-[^\x00-\x7F]]*(?=$|\n)/dgv,name:"comment.line.number-sign.crystal"}]}},scopeName:"source.crystal",embeddedLangs:["html","sql","css","c","javascript","shellscript"],aliases:undefined})
|
|
10
|
+
|
|
11
|
+
export default [
|
|
12
|
+
...html,
|
|
13
|
+
...sql,
|
|
14
|
+
...css,
|
|
15
|
+
...c,
|
|
16
|
+
...javascript,
|
|
17
|
+
...shellscript,
|
|
18
|
+
lang
|
|
19
|
+
]
|
package/dist/cs.d.mts
ADDED
package/dist/cs.mjs
ADDED
package/dist/csharp.mjs
ADDED
package/dist/css.d.mts
ADDED
package/dist/css.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"CSS",name:"css",patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#combinators"},{include:"#selector"},{include:"#at-rules"},{include:"#rule-list"}],repository:{"at-rules":{patterns:[{begin:/^(?:\uFEFF)?(?=\p{space}*@charset\b)/dgiv,end:/;|(?=(?=$|\n))/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.charset.css",patterns:[{captures:{"1":{name:"invalid.illegal.not-lowercase.charset.css"},"2":{name:"invalid.illegal.leading-whitespace.charset.css"},"3":{name:"invalid.illegal.no-whitespace.charset.css"},"4":{name:"invalid.illegal.whitespace.charset.css"},"5":{name:"invalid.illegal.not-double-quoted.charset.css"},"6":{name:"invalid.illegal.unclosed-string.charset.css"},"7":{name:"invalid.illegal.unexpected-characters.charset.css"}},match:/((?!@charset)@[\p{L}\p{M}\p{N}\p{Pc}]+)|(\p{space}+)|(@charset\P{space}[^\;]*)|(?<=@charset)( {2,}|\t+)|(?<=@charset )([^"\;]+)|("[^"]+(?=$|\n))|(?<=")([^\;]+)/dgv},{captures:{"1":{name:"keyword.control.at-rule.charset.css"},"2":{name:"punctuation.definition.keyword.css"}},match:/((@)charset)(?=\p{space})/dgv},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/"|(?=$|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.double.css",patterns:[{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(?=(?:[^\"])+(?=$|\\n))","dgv",{"strategy":"line_or_search_start"}),end:/(?=$|\n)/dgv,name:"invalid.illegal.unclosed.string.css"}]}]},{begin:/((@)import)(?:\p{space}+|(?=$|\n)|(?=['"]|\/\*))/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.import.css"},"2":{name:"punctuation.definition.keyword.css"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.import.css",patterns:[{begin:/\p{space}*(?=\/\*)/dgvy,end:/(?<=\*\/)\p{space}*/dgv,patterns:[{include:"#comment-block"}]},{include:"#string"},{include:"#url"},{include:"#media-query-list"}]},{begin:/((@)font-face)(?=\p{space}*|\{|\/\*|(?=$|\n))/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.font-face.css"},"2":{name:"punctuation.definition.keyword.css"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.at-rule.font-face.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#rule-list"}]},{begin:/(@)page(?=[\p{space}\:\{]|\/\*|(?=$|\n))/dgiv,captures:{"0":{name:"keyword.control.at-rule.page.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*((?=$|\n)|[\:\{\;]))/dgv,name:"meta.at-rule.page.css",patterns:[{include:"#rule-list"}]},{begin:/(?=@media(\p{space}|\(|\/\*|(?=$|\n)))/dgiv,end:new EmulatedRegExp("(?<=\\})","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)media/dgivy,beginCaptures:{"0":{name:"keyword.control.at-rule.media.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*[\{\;])/dgv,name:"meta.at-rule.media.header.css",patterns:[{include:"#media-query-list"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.media.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.media.end.bracket.curly.css"}},name:"meta.at-rule.media.body.css",patterns:[{include:"$self"}]}]},{begin:/(?=@counter-style([\p{space}'"\{\;]|\/\*|(?=$|\n)))/dgiv,end:new EmulatedRegExp("(?<=\\})","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)counter-style/dgivy,beginCaptures:{"0":{name:"keyword.control.at-rule.counter-style.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*\{)/dgv,name:"meta.at-rule.counter-style.header.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{captures:{"0":{patterns:[{include:"#escapes"}]}},match:/(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.parameter.style-name.css"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.css"}},name:"meta.at-rule.counter-style.body.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#rule-list-innards"}]}]},{begin:/(?=@document([\p{space}'"\{\;]|\/\*|(?=$|\n)))/dgiv,end:new EmulatedRegExp("(?<=\\})","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)document/dgivy,beginCaptures:{"0":{name:"keyword.control.at-rule.document.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*[\{\;])/dgv,name:"meta.at-rule.document.header.css",patterns:[{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(url-prefix|domain|regexp)(\()/dgiv,beginCaptures:{"1":{name:"support.function.document-rule.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.document-rule.css",patterns:[{include:"#string"},{include:"#comment-block"},{include:"#escapes"},{match:/[^'"\)\p{space}]+/dgv,name:"variable.parameter.document-rule.css"}]},{include:"#url"},{include:"#commas"},{include:"#comment-block"},{include:"#escapes"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.document.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.document.end.bracket.curly.css"}},name:"meta.at-rule.document.body.css",patterns:[{include:"$self"}]}]},{begin:/(?=@(?:-(?:webkit|moz|o|ms)-)?keyframes([\p{space}'"\{\;]|\/\*|(?=$|\n)))/dgiv,end:new EmulatedRegExp("(?<=\\})","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)(?:-(?:webkit|moz|o|ms)-)?keyframes/dgivy,beginCaptures:{"0":{name:"keyword.control.at-rule.keyframes.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*\{)/dgv,name:"meta.at-rule.keyframes.header.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{captures:{"0":{patterns:[{include:"#escapes"}]}},match:/(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.parameter.keyframe-list.css"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.keyframes.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.keyframes.end.bracket.curly.css"}},name:"meta.at-rule.keyframes.body.css",patterns:[{include:"#comment-block"},{include:"#escapes"},{captures:{"1":{name:"entity.other.keyframe-offset.css"},"2":{name:"entity.other.keyframe-offset.percentage.css"}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(from|to)(?![\p{L}\p{M}\p{N}\p{Pc}\-])|([\-\+]?(?:\p{Nd}+(?:\.\p{Nd}+)?|\.\p{Nd}+)%)/dgiv},{include:"#rule-list"}]}]},{begin:/(?=@supports(\p{space}|\(|\/\*|(?=$|\n)))/dgiv,end:/(?<=\})(?!)|(?=;)/dgv,patterns:[{begin:/(@)supports/dgivy,beginCaptures:{"0":{name:"keyword.control.at-rule.supports.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*[\{\;])/dgv,name:"meta.at-rule.supports.header.css",patterns:[{include:"#feature-query-operators"},{include:"#feature-query"},{include:"#comment-block"},{include:"#escapes"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.supports.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.supports.end.bracket.curly.css"}},name:"meta.at-rule.supports.body.css",patterns:[{include:"$self"}]}]},{begin:/((@)(-(ms|o)-)?viewport)(?=[\p{space}'"\{\;]|\/\*|(?=$|\n))/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.viewport.css"},"2":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*[\@\{\;])/dgv,name:"meta.at-rule.viewport.css",patterns:[{include:"#comment-block"},{include:"#escapes"}]},{begin:/((@)font-feature-values)(?=[\p{space}'"\{\;]|\/\*|(?=$|\n))\p{space}*/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.font-feature-values.css"},"2":{name:"punctuation.definition.keyword.css"}},contentName:"variable.parameter.font-name.css",end:/(?=\p{space}*[\@\{\;])/dgv,name:"meta.at-rule.font-features.css",patterns:[{include:"#comment-block"},{include:"#escapes"}]},{include:"#font-features"},{begin:/((@)namespace)(?=[\p{space}'"\;]|\/\*|(?=$|\n))/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.namespace.css"},"2":{name:"punctuation.definition.keyword.css"}},end:/;|(?=[\@\{])/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.namespace.css",patterns:[{include:"#url"},{captures:{"1":{patterns:[{include:"#comment-block"}]},"2":{name:"entity.name.function.namespace-prefix.css",patterns:[{include:"#escapes"}]}},match:/(?:|(?<=^|\n(?!$))|(?<=\p{space}))(?=(?<=\p{space}|(?<=^|\n(?!$)))(?:[\-a-zA-Z_]|[^\x00-\x7F])|\p{space}*\/\*(?:[^\*]|\*[^\/])*\*\/)([^\n]*?)((?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*)/dgiv},{include:"#comment-block"},{include:"#escapes"},{include:"#string"}]},{begin:/(?=@[\p{L}\p{M}\p{N}\p{Pc}\-]+[^\;]+;s*(?=$|\n))/dgiv,end:new EmulatedRegExp("(?<=;)","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgvy,beginCaptures:{"0":{name:"keyword.control.at-rule.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.header.css"}]},{begin:/(?=@[\p{L}\p{M}\p{N}\p{Pc}\-]+(\p{space}|\(|\{|\/\*|(?=$|\n)))/dgv,end:new EmulatedRegExp("(?<=\\})","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(@)[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgvy,beginCaptures:{"0":{name:"keyword.control.at-rule.css"},"1":{name:"punctuation.definition.keyword.css"}},end:/(?=\p{space}*[\{\;])/dgv,name:"meta.at-rule.header.css"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.end.bracket.curly.css"}},name:"meta.at-rule.body.css",patterns:[{include:"$self"}]}]}]},"color-keywords":{patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.color.w3c-standard-color-name.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|transparent|turquoise|violet|wheat|whitesmoke|yellowgreen)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.color.w3c-extended-color-name.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])currentColor(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.color.current.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"invalid.deprecated.color.system.css"}]},combinators:{patterns:[{match:/\/deep\/|>>>/dgv,name:"invalid.deprecated.combinator.css"},{match:/>>|>|\+|~/dgv,name:"keyword.operator.combinator.css"}]},commas:{match:/,/dgv,name:"punctuation.separator.list.comma.css"},"comment-block":{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.css"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.css"}},name:"comment.block.css"},escapes:{patterns:[{match:/\\[0-9a-fA-F]{1,6}/dgv,name:"constant.character.escape.codepoint.css"},{begin:/\\(?=$|\n)\p{space}*/dgv,end:new EmulatedRegExp("(?<=^|\\n(?!$))","dgv",{"strategy":"not_search_start"}),name:"constant.character.escape.newline.css"},{match:/\\[^\n]/dgv,name:"constant.character.escape.css"}]},"feature-query":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.condition.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.condition.end.bracket.round.css"}},name:"meta.feature-query.css",patterns:[{include:"#feature-query-operators"},{include:"#feature-query"}]},"feature-query-operators":{patterns:[{match:/(?<=[\p{space}\(\)]|(?<=^|\n(?!$))|\*\/)(and|not|or)(?=[\p{space}\(\)]|\/\*|(?=$|\n))/dgiv,name:"keyword.operator.logical.feature.$1.css"},{include:"#rule-list-innards"}]},"font-features":{begin:/((@)(annotation|character-variant|ornaments|styleset|stylistic|swash))(?=[\p{space}\@'"\{\;]|\/\*|(?=$|\n))/dgiv,beginCaptures:{"1":{name:"keyword.control.at-rule.${3:/downcase}.css"},"2":{name:"punctuation.definition.keyword.css"}},end:/(?<=\})/dgv,name:"meta.at-rule.${3:/downcase}.css",patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.css"}},name:"meta.property-list.font-feature.css",patterns:[{captures:{"0":{patterns:[{include:"#escapes"}]}},match:/(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.font-feature.css"},{include:"#rule-list-innards"}]}]},"functional-pseudo-classes":{patterns:[{begin:/((:)dir)(\()/dgiv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{include:"#comment-block"},{include:"#escapes"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(ltr|rtl)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.text-direction.css"},{include:"#property-values"}]},{begin:/((:)lang)(\()/dgiv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{match:/(?<=[\(\,\p{space}])[a-zA-Z]+(-[a-zA-Z0-9]*|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*(?=[\)\,\p{space}])/dgv,name:"support.constant.language-range.css"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.double.css",patterns:[{include:"#escapes"},{match:/(?<=["\p{space}])[a-zA-Z\*]+(-[a-zA-Z0-9\*]*)*(?=["\p{space}])/dgv,name:"support.constant.language-range.css"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.single.css",patterns:[{include:"#escapes"},{match:/(?<=['\p{space}])[a-zA-Z\*]+(-[a-zA-Z0-9\*]*)*(?=['\p{space}])/dgv,name:"support.constant.language-range.css"}]},{include:"#commas"}]},{begin:/((:)(?:not|has|matches|where|is))(\()/dgiv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{include:"#selector-innards"}]},{begin:/((:)nth-(?:last-)?(?:child|of-type))(\()/dgiv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{match:/[\+\-]?(\p{Nd}+n?|n)(\p{space}*[\+\-]\p{space}*\p{Nd}+)?/dgiv,name:"constant.numeric.css"},{match:/even|odd/dgiv,name:"support.constant.parity.css"}]}]},functions:{patterns:[{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(calc)(\()/dgiv,beginCaptures:{"1":{name:"support.function.calc.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.calc.css",patterns:[{match:/[\*\/]|(?<=\p{space}|(?<=^|\n(?!$)))[\-\+](?=\p{space}|(?=$|\n))/dgv,name:"keyword.operator.arithmetic.css"},{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(rgba?|rgb|hsla?|hsl|hwb|lab|oklab|lch|oklch|color)(\()/dgiv,beginCaptures:{"1":{name:"support.function.misc.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.color.css",patterns:[{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])((?:-webkit-|-moz-|-o-)?(?:repeating-)?(?:linear|radial|conic)-gradient)(\()/dgiv,beginCaptures:{"1":{name:"support.function.gradient.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.gradient.css",patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(from|to|at|in|hue)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"keyword.operator.gradient.css"},{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(-webkit-gradient)(\()/dgiv,beginCaptures:{"1":{name:"invalid.deprecated.gradient.function.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.gradient.invalid.deprecated.gradient.css",patterns:[{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(from|to|color-stop)(\()/dgiv,beginCaptures:{"1":{name:"invalid.deprecated.function.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{include:"#property-values"}]},{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(annotation|attr|blur|brightness|character-variant|clamp|contrast|counters?|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|color-mix|image-set|invert|local|max|min|minmax|opacity|ornaments|repeat|saturate|sepia|styleset|stylistic|swash|symbols|cos|sin|tan|acos|asin|atan|atan2|hypot|sqrt|pow|log|exp|abs|sign)(\()/dgiv,beginCaptures:{"1":{name:"support.function.misc.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.misc.css",patterns:[{match:/(?<=[\,\p{space}"]|\*\/|(?<=^|\n(?!$)))\p{Nd}+x(?=[\p{space}\,"'\)]|\/\*|(?=$|\n))/dgiv,name:"constant.numeric.other.density.css"},{include:"#property-values"},{match:/[^'"\)\,\p{space}]+/dgv,name:"variable.parameter.misc.css"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(circle|ellipse|inset|polygon|rect)(\()/dgiv,beginCaptures:{"1":{name:"support.function.shape.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.shape.css",patterns:[{match:/(?<=\p{space}|(?<=^|\n(?!$))|\*\/)(at|round)(?=\p{space}|\/\*|(?=$|\n))/dgiv,name:"keyword.operator.shape.css"},{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(cubic-bezier|steps)(\()/dgiv,beginCaptures:{"1":{name:"support.function.timing-function.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.timing-function.css",patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(start|end)(?=\p{space}*\)|(?=$|\n))/dgiv,name:"support.constant.step-direction.css"},{include:"#property-values"}]},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])((?:translate|scale|rotate)(?:[XYZ]|3D)?|matrix(?:3D)?|skew[XY]?|perspective)(\()/dgiv,beginCaptures:{"1":{name:"support.function.transform.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},patterns:[{include:"#property-values"}]},{include:"#url"},{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(var)(\()/dgiv,beginCaptures:{"1":{name:"support.function.misc.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.variable.css",patterns:[{match:/--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.argument.css"},{include:"#property-values"}]}]},"media-feature-keywords":{match:/(?<=(?<=^|\n(?!$))|\p{space}|:|\*\/)(?:portrait|landscape|progressive|interlace|fullscreen|standalone|minimal-ui|browser|hover)(?=\p{space}|\)|(?=$|\n))/dgiv,name:"support.constant.property-value.css"},"media-features":{captures:{"1":{name:"support.type.property-name.media.css"},"2":{name:"support.type.property-name.media.css"},"3":{name:"support.type.vendored.property-name.media.css"}},match:/(?<=(?<=^|\n(?!$))|\p{space}|\(|\*\/)(?:((?:min-|max-)?(?:height|width|aspect-ratio|color|color-index|monochrome|resolution)|grid|scan|orientation|display-mode|hover)|((?:min-|max-)?device-(?:height|width|aspect-ratio))|((?:[\-_](?:webkit|apple|khtml|epub|moz|ms|o|xv|ah|rim|atsc|hp|tc|wap|ro)|(?:mso|prince))-[\p{L}\p{M}\p{N}\p{Pc}\-]+(?=\p{space}*(?:\/\*(?:[^\*]|\*[^\/])*\*\/)?\p{space}*[\:\)])))(?=\p{space}|(?=$|\n)|[\>\<\:\=]|\)|\/\*)/dgiv},"media-query":{begin:/(?:)/dgv,end:/(?=\p{space}*[\{\;])/dgv,patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#media-types"},{match:/(?<=\p{space}|(?<=^|\n(?!$))|,|\*\/)(only|not)(?=\p{space}|\{|\/\*|(?=$|\n))/dgiv,name:"keyword.operator.logical.$1.media.css"},{match:/(?<=\p{space}|(?<=^|\n(?!$))|\*\/|\))and(?=\p{space}|\/\*|(?=$|\n))/dgiv,name:"keyword.operator.logical.and.media.css"},{match:/,(?:(?:\p{space}*,)+|(?=\p{space}*[\;\)\{]))/dgv,name:"invalid.illegal.comma.css"},{include:"#commas"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.css"}},patterns:[{include:"#media-features"},{include:"#media-feature-keywords"},{match:/:/dgv,name:"punctuation.separator.key-value.css"},{match:/>=|<=|=|<|>/dgv,name:"keyword.operator.comparison.css"},{captures:{"1":{name:"constant.numeric.css"},"2":{name:"keyword.operator.arithmetic.css"},"3":{name:"constant.numeric.css"}},match:/(\p{Nd}+)\p{space}*(\/)\p{space}*(\p{Nd}+)/dgv,name:"meta.ratio.css"},{include:"#numeric-values"},{include:"#comment-block"}]}]},"media-query-list":{begin:/(?=\p{space}*[^\{\;])/dgv,end:/(?=\p{space}*[\{\;])/dgv,patterns:[{include:"#media-query"}]},"media-types":{captures:{"1":{name:"support.constant.media.css"},"2":{name:"invalid.deprecated.constant.media.css"}},match:/(?<=(?<=^|\n(?!$))|\p{space}|,|\*\/)(?:(all|print|screen|speech)|(aural|braille|embossed|handheld|projection|tty|tv))(?=(?=$|\n)|[\{\,\p{space}\;]|\/\*)/dgiv},"numeric-values":{patterns:[{captures:{"1":{name:"punctuation.definition.constant.css"}},match:/(#)(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\b/dgv,name:"constant.other.color.rgb-value.hex.css"},{captures:{"1":{name:"keyword.other.unit.percentage.css"},"2":{name:"keyword.other.unit.${2:/downcase}.css"}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])[\-\+]?(?:\p{Nd}+(?:\.\p{Nd}+)?|\.\p{Nd}+)(?:(?<=\p{Nd})E[\-\+]?\p{Nd}+)?(?:(%)|(deg|grad|rad|turn|Hz|kHz|ch|cm|em|ex|fr|in|mm|mozmm|pc|pt|px|q|rem|rch|rex|rlh|ic|ric|rcap|vh|vw|vb|vi|svh|svw|svb|svi|dvh|dvw|dvb|dvi|lvh|lvw|lvb|lvi|vmax|vmin|cqw|cqi|cqh|cqb|cqmin|cqmax|dpi|dpcm|dppx|s|ms)\b)?/dgiv,name:"constant.numeric.css"}]},"property-keywords":{patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(above|absolute|active|add|additive|after-edge|alias|all|all-petite-caps|all-scroll|all-small-caps|alpha|alphabetic|alternate|alternate-reverse|always|antialiased|auto|auto-fill|auto-fit|auto-pos|available|avoid|avoid-column|avoid-page|avoid-region|backwards|balance|baseline|before-edge|below|bevel|bidi-override|blink|block|block-axis|block-start|block-end|bold|bolder|border|border-box|both|bottom|bottom-outside|break-all|break-word|bullets|butt|capitalize|caption|cell|center|central|char|circle|clip|clone|close-quote|closest-corner|closest-side|col-resize|collapse|color|color-burn|color-dodge|column|column-reverse|common-ligatures|compact|condensed|contain|content|content-box|contents|context-menu|contextual|copy|cover|crisp-edges|crispEdges|crosshair|cyclic|dark|darken|dashed|decimal|default|dense|diagonal-fractions|difference|digits|disabled|disc|discretionary-ligatures|distribute|distribute-all-lines|distribute-letter|distribute-space|dot|dotted|double|double-circle|downleft|downright|e-resize|each-line|ease|ease-in|ease-in-out|ease-out|economy|ellipse|ellipsis|embed|end|evenodd|ew-resize|exact|exclude|exclusion|expanded|extends|extra-condensed|extra-expanded|fallback|farthest-corner|farthest-side|fill|fill-available|fill-box|filled|fit-content|fixed|flat|flex|flex-end|flex-start|flip|flow-root|forwards|freeze|from-image|full-width|geometricPrecision|georgian|grab|grabbing|grayscale|grid|groove|hand|hanging|hard-light|help|hidden|hide|historical-forms|historical-ligatures|horizontal|horizontal-tb|hue|icon|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space|ideographic|inactive|infinite|inherit|initial|inline|inline-axis|inline-block|inline-end|inline-flex|inline-grid|inline-list-item|inline-start|inline-table|inset|inside|inter-character|inter-ideograph|inter-word|intersect|invert|isolate|isolate-override|italic|jis04|jis78|jis83|jis90|justify|justify-all|kannada|keep-all|landscape|large|larger|left|light|lighten|lighter|line|line-edge|line-through|linear|linearRGB|lining-nums|list-item|local|loose|lowercase|lr|lr-tb|ltr|luminance|luminosity|main-size|mandatory|manipulation|manual|margin-box|match-parent|match-source|mathematical|max-content|medium|menu|message-box|middle|min-content|miter|mixed|move|multiply|n-resize|narrower|ne-resize|nearest-neighbor|nesw-resize|newspaper|no-change|no-clip|no-close-quote|no-common-ligatures|no-contextual|no-discretionary-ligatures|no-drop|no-historical-ligatures|no-open-quote|no-repeat|none|nonzero|normal|not-allowed|nowrap|ns-resize|numbers|numeric|nw-resize|nwse-resize|oblique|oldstyle-nums|open|open-quote|optimizeLegibility|optimizeQuality|optimizeSpeed|optional|ordinal|outset|outside|over|overlay|overline|padding|padding-box|page|painted|pan-down|pan-left|pan-right|pan-up|pan-x|pan-y|paused|petite-caps|pixelated|plaintext|pointer|portrait|pre|pre-line|pre-wrap|preserve-3d|progress|progressive|proportional-nums|proportional-width|proximity|radial|recto|region|relative|remove|repeat|repeat-[xy]|reset-size|reverse|revert|ridge|right|rl|rl-tb|round|row|row-resize|row-reverse|row-severse|rtl|ruby|ruby-base|ruby-base-container|ruby-text|ruby-text-container|run-in|running|s-resize|saturation|scale-down|screen|scroll|scroll-position|se-resize|semi-condensed|semi-expanded|separate|sesame|show|sideways|sideways-left|sideways-lr|sideways-right|sideways-rl|simplified|slashed-zero|slice|small|small-caps|small-caption|smaller|smooth|soft-light|solid|space|space-around|space-between|space-evenly|spell-out|square|sRGB|stacked-fractions|start|static|status-bar|swap|step-end|step-start|sticky|stretch|strict|stroke|stroke-box|style|sub|subgrid|subpixel-antialiased|subtract|super|sw-resize|symbolic|table|table-caption|table-cell|table-column|table-column-group|table-footer-group|table-header-group|table-row|table-row-group|tabular-nums|tb|tb-rl|text|text-after-edge|text-before-edge|text-bottom|text-top|thick|thin|titling-caps|top|top-outside|touch|traditional|transparent|triangle|ultra-condensed|ultra-expanded|under|underline|unicase|unset|upleft|uppercase|upright|use-glyph-orientation|use-script|verso|vertical|vertical-ideographic|vertical-lr|vertical-rl|vertical-text|view-box|visible|visibleFill|visiblePainted|visibleStroke|w-resize|wait|wavy|weight|whitespace|wider|words|wrap|wrap-reverse|x|x-large|x-small|xx-large|xx-small|y|zero|zoom-in|zoom-out)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.property-value.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|cjk-ideographic|decimal|decimal-leading-zero|devanagari|disc|disclosure-closed|disclosure-open|ethiopic-halehame-am|ethiopic-halehame-ti-e[rt]|ethiopic-numeric|georgian|gujarati|gurmukhi|hangul|hangul-consonant|hebrew|hiragana|hiragana-iroha|japanese-formal|japanese-informal|kannada|katakana|katakana-iroha|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman|urdu)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.property-value.list-style-type.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(?:-(?:[Aa][Hh]|[Aa][Pp][Pp][Ll][Ee]|[Aa][Tt][Ssſ][Cc]|[Ee][Pp][Uu][Bb]|[Hh][Pp]|[KKk][Hh][Tt][Mm][Ll]|[Mm][Oo][Zz]|[Mm][Ssſ]|[Oo]|[Rr][Ii][Mm]|[Rr][Oo]|[Tt][Cc]|[Ww][Aa][Pp]|[Ww][Ee][Bb][KKk][Ii][Tt]|[Xx][Vv])|(?:[Mm][Ssſ][Oo]|[Pp][Rr][Ii][Nn][Cc][Ee]))-[a-zA-Z\-]+/dgv,name:"support.constant.vendored.property-value.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(?:arial|century|comic|courier|garamond|georgia|helvetica|impact|lucida|symbol|system-ui|system|tahoma|times|trebuchet|ui-monospace|ui-rounded|ui-sans-serif|ui-serif|utopia|verdana|webdings|sans-serif|serif|monospace)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.constant.font-name.css"}]},"property-names":{patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(?:accent-color|additive-symbols|align-content|align-items|align-self|all|animation|animation-delay|animation-direction|animation-duration|animation-fill-mode|animation-iteration-count|animation-name|animation-play-state|animation-timing-function|aspect-ratio|backdrop-filter|backface-visibility|background|background-attachment|background-blend-mode|background-clip|background-color|background-image|background-origin|background-position|background-position-[xy]|background-repeat|background-size|bleed|block-size|border|border-block-end|border-block-end-color|border-block-end-style|border-block-end-width|border-block-start|border-block-start-color|border-block-start-style|border-block-start-width|border-bottom|border-bottom-color|border-bottom-left-radius|border-bottom-right-radius|border-bottom-style|border-bottom-width|border-collapse|border-color|border-end-end-radius|border-end-start-radius|border-image|border-image-outset|border-image-repeat|border-image-slice|border-image-source|border-image-width|border-inline-end|border-inline-end-color|border-inline-end-style|border-inline-end-width|border-inline-start|border-inline-start-color|border-inline-start-style|border-inline-start-width|border-left|border-left-color|border-left-style|border-left-width|border-radius|border-right|border-right-color|border-right-style|border-right-width|border-spacing|border-start-end-radius|border-start-start-radius|border-style|border-top|border-top-color|border-top-left-radius|border-top-right-radius|border-top-style|border-top-width|border-width|bottom|box-decoration-break|box-shadow|box-sizing|break-after|break-before|break-inside|caption-side|caret-color|clear|clip|clip-path|clip-rule|color|color-adjust|color-interpolation-filters|color-scheme|column-count|column-fill|column-gap|column-rule|column-rule-color|column-rule-style|column-rule-width|column-span|column-width|columns|contain|container|container-name|container-type|content|counter-increment|counter-reset|cursor|direction|display|empty-cells|enable-background|fallback|fill|fill-opacity|fill-rule|filter|flex|flex-basis|flex-direction|flex-flow|flex-grow|flex-shrink|flex-wrap|float|flood-color|flood-opacity|font|font-display|font-family|font-feature-settings|font-kerning|font-language-override|font-optical-sizing|font-size|font-size-adjust|font-stretch|font-style|font-synthesis|font-variant|font-variant-alternates|font-variant-caps|font-variant-east-asian|font-variant-ligatures|font-variant-numeric|font-variant-position|font-variation-settings|font-weight|gap|glyph-orientation-horizontal|glyph-orientation-vertical|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-gap|grid-column-start|grid-gap|grid-row|grid-row-end|grid-row-gap|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|hanging-punctuation|height|hyphens|image-orientation|image-rendering|image-resolution|ime-mode|initial-letter|initial-letter-align|inline-size|inset|inset-block|inset-block-end|inset-block-start|inset-inline|inset-inline-end|inset-inline-start|isolation|justify-content|justify-items|justify-self|kerning|left|letter-spacing|lighting-color|line-break|line-clamp|line-height|list-style|list-style-image|list-style-position|list-style-type|margin|margin-block|margin-block-end|margin-block-start|margin-bottom|margin-inline|margin-inline-end|margin-inline-start|margin-left|margin-right|margin-top|marker-end|marker-mid|marker-start|marks|mask|mask-border|mask-border-mode|mask-border-outset|mask-border-repeat|mask-border-slice|mask-border-source|mask-border-width|mask-clip|mask-composite|mask-image|mask-mode|mask-origin|mask-position|mask-repeat|mask-size|mask-type|max-block-size|max-height|max-inline-size|max-lines|max-width|max-zoom|min-block-size|min-height|min-inline-size|min-width|min-zoom|mix-blend-mode|negative|object-fit|object-position|offset|offset-anchor|offset-distance|offset-path|offset-position|offset-rotation|opacity|order|orientation|orphans|outline|outline-color|outline-offset|outline-style|outline-width|overflow|overflow-anchor|overflow-block|overflow-inline|overflow-wrap|overflow-[xy]|overscroll-behavior|overscroll-behavior-block|overscroll-behavior-inline|overscroll-behavior-[xy]|pad|padding|padding-block|padding-block-end|padding-block-start|padding-bottom|padding-inline|padding-inline-end|padding-inline-start|padding-left|padding-right|padding-top|page-break-after|page-break-before|page-break-inside|paint-order|perspective|perspective-origin|place-content|place-items|place-self|pointer-events|position|prefix|quotes|range|resize|right|rotate|row-gap|ruby-align|ruby-merge|ruby-position|scale|scroll-behavior|scroll-margin|scroll-margin-block|scroll-margin-block-end|scroll-margin-block-start|scroll-margin-bottom|scroll-margin-inline|scroll-margin-inline-end|scroll-margin-inline-start|scroll-margin-left|scroll-margin-right|scroll-margin-top|scroll-padding|scroll-padding-block|scroll-padding-block-end|scroll-padding-block-start|scroll-padding-bottom|scroll-padding-inline|scroll-padding-inline-end|scroll-padding-inline-start|scroll-padding-left|scroll-padding-right|scroll-padding-top|scroll-snap-align|scroll-snap-coordinate|scroll-snap-destination|scroll-snap-stop|scroll-snap-type|scrollbar-color|scrollbar-gutter|scrollbar-width|shape-image-threshold|shape-margin|shape-outside|shape-rendering|size|speak-as|src|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|suffix|symbols|system|tab-size|table-layout|text-align|text-align-last|text-anchor|text-combine-upright|text-decoration|text-decoration-color|text-decoration-line|text-decoration-skip|text-decoration-skip-ink|text-decoration-style|text-decoration-thickness|text-emphasis|text-emphasis-color|text-emphasis-position|text-emphasis-style|text-indent|text-justify|text-orientation|text-overflow|text-rendering|text-shadow|text-size-adjust|text-transform|text-underline-offset|text-underline-position|top|touch-action|transform|transform-box|transform-origin|transform-style|transition|transition-delay|transition-duration|transition-property|transition-timing-function|translate|unicode-bidi|unicode-range|user-select|user-zoom|vertical-align|visibility|white-space|widows|width|will-change|word-break|word-spacing|word-wrap|writing-mode|z-index|zoom|alignment-baseline|baseline-shift|clip-rule|color-interpolation|color-interpolation-filters|color-profile|color-rendering|cx|cy|dominant-baseline|enable-background|fill|fill-opacity|fill-rule|flood-color|flood-opacity|glyph-orientation-horizontal|glyph-orientation-vertical|height|kerning|lighting-color|marker-end|marker-mid|marker-start|r|rx|ry|shape-rendering|stop-color|stop-opacity|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|text-anchor|width|x|y|adjust|after|align|align-last|alignment|alignment-adjust|appearance|attachment|azimuth|background-break|balance|baseline|before|bidi|binding|bookmark|bookmark-label|bookmark-level|bookmark-target|border-length|bottom-color|bottom-left-radius|bottom-right-radius|bottom-style|bottom-width|box|box-align|box-direction|box-flex|box-flex-group|box-lines|box-ordinal-group|box-orient|box-pack|break|character|collapse|column|column-break-after|column-break-before|count|counter|crop|cue|cue-after|cue-before|decoration|decoration-break|delay|display-model|display-role|down|drop|drop-initial-after-adjust|drop-initial-after-align|drop-initial-before-adjust|drop-initial-before-align|drop-initial-size|drop-initial-value|duration|elevation|emphasis|family|fit|fit-position|flex-group|float-offset|gap|grid-columns|grid-rows|hanging-punctuation|header|hyphenate|hyphenate-after|hyphenate-before|hyphenate-character|hyphenate-lines|hyphenate-resource|icon|image|increment|indent|index|initial-after-adjust|initial-after-align|initial-before-adjust|initial-before-align|initial-size|initial-value|inline-box-align|iteration-count|justify|label|left-color|left-style|left-width|length|level|line|line-stacking|line-stacking-ruby|line-stacking-shift|line-stacking-strategy|lines|list|mark|mark-after|mark-before|marks|marquee|marquee-direction|marquee-play-count|marquee-speed|marquee-style|max|min|model|move-to|name|nav|nav-down|nav-index|nav-left|nav-right|nav-up|new|numeral|offset|ordinal-group|orient|origin|overflow-style|overhang|pack|page|page-policy|pause|pause-after|pause-before|phonemes|pitch|pitch-range|play-count|play-during|play-state|point|presentation|presentation-level|profile|property|punctuation|punctuation-trim|radius|rate|rendering-intent|repeat|replace|reset|resolution|resource|respond-to|rest|rest-after|rest-before|richness|right-color|right-style|right-width|role|rotation|rotation-point|rows|ruby|ruby-overhang|ruby-span|rule|rule-color|rule-style|rule-width|shadow|size|size-adjust|sizing|space|space-collapse|spacing|span|speak|speak-header|speak-numeral|speak-punctuation|speech|speech-rate|speed|stacking|stacking-ruby|stacking-shift|stacking-strategy|stress|stretch|string-set|style|style-image|style-position|style-type|target|target-name|target-new|target-position|text|text-height|text-justify|text-outline|text-replace|text-wrap|timing-function|top-color|top-left-radius|top-right-radius|top-style|top-width|trim|unicode|up|user-select|variant|voice|voice-balance|voice-duration|voice-family|voice-pitch|voice-pitch-range|voice-rate|voice-stress|voice-volume|volume|weight|white|white-space-collapse|word|wrap)(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgiv,name:"support.type.property-name.css"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(?:-(?:[Aa][Hh]|[Aa][Pp][Pp][Ll][Ee]|[Aa][Tt][Ssſ][Cc]|[Ee][Pp][Uu][Bb]|[Hh][Pp]|[KKk][Hh][Tt][Mm][Ll]|[Mm][Oo][Zz]|[Mm][Ssſ]|[Oo]|[Rr][Ii][Mm]|[Rr][Oo]|[Tt][Cc]|[Ww][Aa][Pp]|[Ww][Ee][Bb][KKk][Ii][Tt]|[Xx][Vv])|(?:[Mm][Ssſ][Oo]|[Pp][Rr][Ii][Nn][Cc][Ee]))-[a-zA-Z\-]+/dgv,name:"support.type.vendored.property-name.css"}]},"property-values":{patterns:[{include:"#commas"},{include:"#comment-block"},{include:"#escapes"},{include:"#functions"},{include:"#property-keywords"},{include:"#unicode-range"},{include:"#numeric-values"},{include:"#color-keywords"},{include:"#string"},{match:/!\p{space}*important(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"keyword.other.important.css"}]},"pseudo-classes":{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{name:"invalid.illegal.colon.css"}},match:/(:)(:*)(?:active|any-link|checked|default|disabled|empty|enabled|first|(?:first|last|only)-(?:child|of-type)|focus|focus-visible|focus-within|fullscreen|host|hover|in-range|indeterminate|invalid|left|link|optional|out-of-range|read-only|read-write|required|right|root|scope|target|unresolved|valid|visited)(?![\p{L}\p{M}\p{N}\p{Pc}\-]|\p{space}*[\;\}])/dgiv,name:"entity.other.attribute-name.pseudo-class.css"},"pseudo-elements":{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{name:"punctuation.definition.entity.css"}},match:/(?:(::?)(?:after|before|first-letter|first-line|(?:-(?:ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)|(?:mso|prince))-[a-z\-]+)|(::)(?:backdrop|content|grammar-error|marker|placeholder|selection|shadow|spelling-error))(?![\p{L}\p{M}\p{N}\p{Pc}\-]|\p{space}*[\;\}])/dgiv,name:"entity.other.attribute-name.pseudo-element.css"},"rule-list":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.css"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.css"}},name:"meta.property-list.css",patterns:[{include:"#rule-list-innards"}]},"rule-list-innards":{patterns:[{include:"#comment-block"},{include:"#escapes"},{include:"#font-features"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{begin:/(?<![\-a-zA-Z])(?=[\-a-zA-Z])/dgv,end:/(?=$|\n)|(?![\-a-zA-Z])/dgv,name:"meta.property-name.css",patterns:[{include:"#property-names"}]},{begin:/(:)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"}},contentName:"meta.property-value.css",end:/\p{space}*(;)|\p{space}*(?=\}|\))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"#comment-block"},{include:"#property-values"}]},{match:/;/dgv,name:"punctuation.terminator.rule.css"}]},selector:{begin:/(?=(?:\|)?(?:[\-\[\:\.\*\#a-zA-Z_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])))/dgv,end:/(?=\p{space}*[\/\@\{\)])/dgv,name:"meta.selector.css",patterns:[{include:"#selector-innards"}]},"selector-innards":{patterns:[{include:"#comment-block"},{include:"#commas"},{include:"#escapes"},{include:"#combinators"},{captures:{"1":{name:"entity.other.namespace-prefix.css"},"2":{name:"punctuation.separator.css"}},match:/(?:(?<=^|\n(?!$))|(?<=[\p{space}\,\(\}\;]))(?![\-\p{L}\p{M}\p{N}\p{Pc}\*]+\|(?![\-\[\:\.\*\#a-zA-Z_]|[^\x00-\x7F]))((?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*|\*)?(\|)/dgv},{include:"#tag-names"},{match:/\*/dgv,name:"entity.name.tag.wildcard.css"},{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#escapes"}]}},match:/(?<![\@\p{L}\p{M}\p{N}\p{Pc}\-])([\.\#])((?:-?\p{Nd}|-(?=(?=$|\n)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)|(?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*(?:[\!"'\%\&\(\*\;\<\?\@\^\`\|\]\}]|\/(?!\*))+)(?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*)/dgv,name:"invalid.illegal.bad-identifier.css"},{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#escapes"}]}},match:/(\.)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))+)(?=(?=$|\n)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)/dgv,name:"entity.other.attribute-name.class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#escapes"}]}},match:/(#)(-?(?!\p{Nd})(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))+)(?=(?=$|\n)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)/dgv,name:"entity.other.attribute-name.id.css"},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.entity.begin.bracket.square.css"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.entity.end.bracket.square.css"}},name:"meta.attribute-selector.css",patterns:[{include:"#comment-block"},{include:"#string"},{captures:{"1":{name:"storage.modifier.ignore-case.css"}},match:/(?<=["'\p{space}]|(?<=^|\n(?!$))|\*\/)\p{space}*([iI])\p{space}*(?=[\p{space}\]]|\/\*|(?=$|\n))/dgv},{captures:{"1":{name:"string.unquoted.attribute-value.css",patterns:[{include:"#escapes"}]}},match:/(?<==)\p{space}*((?!\/\*)(?:[^\\"'\p{space}\]]|\\[^\n])+)/dgv},{include:"#escapes"},{match:/[\~\|\^\$\*]?=/dgv,name:"keyword.operator.pattern.css"},{match:/\|/dgv,name:"punctuation.separator.css"},{captures:{"1":{name:"entity.other.namespace-prefix.css",patterns:[{include:"#escapes"}]}},match:/(-?(?!\p{Nd})(?:[\p{L}\p{M}\p{N}\p{Pc}\-]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))+|\*)(?=\|(?!\p{space}|=|(?=$|\n)|\])(?:-?(?!\p{Nd})|[\\\p{L}\p{M}\p{N}\p{Pc}\-]|[^\x00-\x7F]))/dgv},{captures:{"1":{name:"entity.other.attribute-name.css",patterns:[{include:"#escapes"}]}},match:new EmulatedRegExp("(-?(?!\\p{Nd})(?:(?=($E$[\\p{L}\\p{M}\\p{N}\\p{Pc}\\-]|[^\\x00-\\x7F]|\\\\(?:[0-9a-fA-F]{1,6}|[^\\n])))\\2)+)\\p{space}*(?=[\\~\\|\\^\\]\\$\\*\\=]|/\\*)","dgv",{"useEmulationGroups":true})}]},{include:"#pseudo-classes"},{include:"#pseudo-elements"},{include:"#functional-pseudo-classes"},{match:/(?<![\@\p{L}\p{M}\p{N}\p{Pc}\-])(?=[a-z][\p{L}\p{M}\p{N}\p{Pc}]*-)(?:(?![A-Z])[\p{L}\p{M}\p{N}\p{Pc}\-])+(?![\(\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"entity.name.tag.custom.css"}]},string:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/"|(?<!\\)(?=(?=$|\n)|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.double.css",patterns:[{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(?=(?:[^\\\\\"]|\\\\[^\\n])+(?=$|\\n))","dgv",{"strategy":"line_or_search_start"}),end:/(?=$|\n)/dgv,name:"invalid.illegal.unclosed.string.css",patterns:[{include:"#escapes"}]},{include:"#escapes"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/'|(?<!\\)(?=(?=$|\n)|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.single.css",patterns:[{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(?=(?:[^\\\\']|\\\\[^\\n])+(?=$|\\n))","dgv",{"strategy":"line_or_search_start"}),end:/(?=$|\n)/dgv,name:"invalid.illegal.unclosed.string.css",patterns:[{include:"#escapes"}]},{include:"#escapes"}]}]},"tag-names":{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\:\-])(?:a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|command|content|data|datalist|dd|del|details|dfn|dialog|dir|div|dl|dt|element|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h[1-6]|head|header|hgroup|hr|html|i|iframe|image|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|math|menu|menuitem|meta|meter|multicol|nav|nextid|nobr|noembed|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|plaintext|pre|progress|q|rb|rp|rt|rtc|ruby|s|samp|script|section|select|shadow|slot|small|source|spacer|span|strike|strong|style|sub|summary|sup|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp|altGlyph|altGlyphDef|altGlyphItem|animate|animateColor|animateMotion|animateTransform|circle|clipPath|color-profile|cursor|defs|desc|discard|ellipse|feBlend|feColorMatrix|feComponentTransfer|feComposite|feConvolveMatrix|feDiffuseLighting|feDisplacementMap|feDistantLight|feDropShadow|feFlood|feFuncA|feFuncB|feFuncG|feFuncR|feGaussianBlur|feImage|feMerge|feMergeNode|feMorphology|feOffset|fePointLight|feSpecularLighting|feSpotLight|feTile|feTurbulence|filter|font-face|font-face-format|font-face-name|font-face-src|font-face-uri|foreignObject|g|glyph|glyphRef|hatch|hatchpath|hkern|line|linearGradient|marker|mask|mesh|meshgradient|meshpatch|meshrow|metadata|missing-glyph|mpath|path|pattern|polygon|polyline|radialGradient|rect|set|solidcolor|stop|svg|switch|symbol|text|textPath|tref|tspan|use|view|vkern|annotation|annotation-xml|maction|maligngroup|malignmark|math|menclose|merror|mfenced|mfrac|mglyph|mi|mlabeledtr|mlongdiv|mmultiscripts|mn|mo|mover|mpadded|mphantom|mroot|mrow|ms|mscarries|mscarry|msgroup|msline|mspace|msqrt|msrow|mstack|mstyle|msub|msubsup|msup|mtable|mtd|mtext|mtr|munder|munderover|semantics)(?=[\+\~\>\p{space}\,\.\#\|\)\{\:\[]|\/\*|(?=$|\n))/dgiv,name:"entity.name.tag.css"},"unicode-range":{captures:{"0":{name:"constant.other.unicode-range.css"},"1":{name:"punctuation.separator.dash.unicode-range.css"}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])[Uu]\+[0-9A-Fa-f\?]{1,6}(?:(-)[0-9A-Fa-f]{1,6})?(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv},url:{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}\@\-])(url)(\()/dgiv,beginCaptures:{"1":{name:"support.function.url.css"},"2":{name:"punctuation.section.function.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.bracket.round.css"}},name:"meta.function.url.css",patterns:[{match:/[^'"\)\p{space}]+/dgv,name:"variable.parameter.url.css"},{include:"#string"},{include:"#comment-block"},{include:"#escapes"}]}},scopeName:"source.css",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/csv.d.mts
ADDED
package/dist/csv.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"CSV",fileTypes:["csv"],name:"csv",patterns:[{captures:{"1":{name:"rainbow1"},"2":{name:"keyword.rainbow2"},"3":{name:"entity.name.function.rainbow3"},"4":{name:"comment.rainbow4"},"5":{name:"string.rainbow5"},"6":{name:"variable.parameter.rainbow6"},"7":{name:"constant.numeric.rainbow7"},"8":{name:"entity.name.type.rainbow8"},"9":{name:"markup.bold.rainbow9"},"10":{name:"invalid.rainbow10"}},match:/( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?( *"(?:[^"]*"")*[^"]*" *(?:,|(?=$|\n))|[^\,]*(?:,|(?=$|\n)))?/dgv,name:"rainbowgroup"}],scopeName:"text.csv",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/cue.d.mts
ADDED
package/dist/cue.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"CUE",fileTypes:["cue"],name:"cue",patterns:[{include:"#whitespace"},{include:"#comment"},{captures:{"1":{name:"keyword.other.package"},"2":{name:"entity.name.namespace"}},match:/(?<![\p{L}\p{Nd}_\$\#])(package)[ \t]+([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*)(?![\p{L}\p{Nd}_\$\#])/dgv},{patterns:[{begin:/(?<![\p{L}\p{Nd}_\$\#])(import)[ \t]+(\()/dgv,beginCaptures:{"1":{name:"keyword.other.import"},"2":{name:"punctuation.section.parens.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end"}},name:"meta.imports",patterns:[{include:"#whitespace"},{include:"#comment"},{captures:{"1":{name:"entity.name.namespace"},"2":{name:"punctuation.definition.string.begin"},"3":{name:"string.quoted.double-import"},"4":{name:"punctuation.colon"},"5":{name:"entity.name"},"6":{name:"punctuation.definition.string.end"}},match:/(?:([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*)[ \t]+)?(")([^\:"]+)(?:(:)([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*))?(")/dgv,name:"meta.import-spec"},{match:/;/dgv,name:"punctuation.separator"},{include:"#invalid_in_parens"}]},{captures:{"1":{name:"keyword.other.import"},"2":{name:"entity.name.namespace"},"3":{name:"punctuation.definition.string.begin"},"4":{name:"string.quoted.double-import"},"5":{name:"punctuation.colon"},"6":{name:"entity.name"},"7":{name:"punctuation.definition.string.end"}},match:/(?<![\p{L}\p{Nd}_\$\#])(import)[ \t]+(?:([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*)[ \t]+)?(")([^\:"]+)(?:(:)([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*))?(")/dgv,name:"meta.import"}]},{include:"#punctuation_comma"},{include:"#declaration"},{include:"#invalid_in_braces"}],repository:{attribute_element:{patterns:[{begin:/([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(=)/dgv,beginCaptures:{"1":{name:"variable.other"},"2":{name:"punctuation.bind"}},end:/(?=[\,\)])/dgv,patterns:[{include:"#attribute_string"}]},{begin:/([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(\()/dgv,beginCaptures:{"1":{name:"variable.other"},"2":{name:"punctuation.attribute-elements.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.attribute-elements.end"}},patterns:[{include:"#punctuation_comma"},{include:"#attribute_element"}]},{include:"#attribute_string"}]},attribute_string:{patterns:[{include:"#string"},{match:/[^\n\,"'\#\=\(\)]+/dgv,name:"string.unquoted"},{match:/[^\,\)]+/dgv,name:"invalid"}]},comment:{patterns:[{captures:{"1":{name:"punctuation.definition.comment"}},match:/(\/\/)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment"}},end:/\*\//dgv,name:"comment.block"}]},declaration:{patterns:[{begin:/(@)([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.annotation"},"2":{name:"variable.annotation"},"3":{name:"punctuation.attribute-elements.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.attribute-elements.end"}},name:"meta.annotation",patterns:[{include:"#punctuation_comma"},{include:"#attribute_element"}]},{match:/(?<!:)::(?!:)/dgv,name:"punctuation.isa"},{include:"#punctuation_colon"},{match:/\?/dgv,name:"punctuation.option"},{match:/(?<![\=\!\>\<])=(?![\=\~])/dgv,name:"punctuation.bind"},{match:/<-/dgv,name:"punctuation.arrow"},{include:"#expression"}]},expression:{patterns:[{patterns:[{captures:{"1":{name:"keyword.control.for"},"2":{name:"variable.other"},"3":{name:"punctuation.separator"},"4":{name:"variable.other"},"5":{name:"keyword.control.in"}},match:/(?<![\p{L}\p{Nd}_\$\#])(for)[ \t]+([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(?:[ \t]*(,)[ \t]*([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+))?[ \t]+(in)(?![\p{L}\p{Nd}_\$\#])/dgv},{match:/(?<![\p{L}\p{Nd}_\$\#])if(?![\p{L}\p{Nd}_\$\#])/dgv,name:"keyword.control.conditional"},{captures:{"1":{name:"keyword.control.let"},"2":{name:"variable.other"},"3":{name:"punctuation.bind"}},match:/(?<![\p{L}\p{Nd}_\$\#])(let)[ \t]+([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)[ \t]*(=)(?![\=])/dgv}]},{patterns:[{match:/[\+\-\*]|\/(?![\/\*])/dgv,name:"keyword.operator"},{match:/(?<![\p{L}\p{Nd}_\$\#])(?:div|mod|quo|rem)(?![\p{L}\p{Nd}_\$\#])/dgv,name:"keyword.operator.word"},{match:/=[\=\~]|![\=\~]|<=|>=|[\<](?![\-\=])|[\>](?![\=])/dgv,name:"keyword.operator.comparison"},{match:/&{2}|\|{2}|!(?![\=\~])/dgv,name:"keyword.operator.logical"},{match:/&(?!&)|\|(?!\|)/dgv,name:"keyword.operator.set"}]},{captures:{"1":{name:"punctuation.accessor"},"2":{name:"variable.other.member"}},match:/(?<!\.)(\.)([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(?![\p{L}\p{Nd}_\$\#])/dgv},{patterns:[{match:/(?<![\p{L}\p{Nd}_\$\#])_(?!\|)(?![\p{L}\p{Nd}_\$\#])/dgv,name:"constant.language.top"},{match:/(?<![\p{L}\p{Nd}_\$\#])_\|_(?![\p{L}\p{Nd}_\$\#])/dgv,name:"constant.language.bottom"},{match:/(?<![\p{L}\p{Nd}_\$\#])null(?![\p{L}\p{Nd}_\$\#])/dgv,name:"constant.language.null"},{match:/(?<![\p{L}\p{Nd}_\$\#])(?:true|false)(?![\p{L}\p{Nd}_\$\#])/dgv,name:"constant.language.bool"},{patterns:[{patterns:[{match:/(?<![\p{L}\p{Nd}_\.])\p{Nd}(?:_?\p{Nd})*\.(?:\p{Nd}(?:_?\p{Nd})*)?(?:[eE][\+\-]?\p{Nd}(?:_?\p{Nd})*)?(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.float.decimal"},{match:/(?<![\p{L}\p{Nd}_\.])\p{Nd}(?:_?\p{Nd})*[eE][\+\-]?\p{Nd}(?:_?\p{Nd})*(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.float.decimal"},{match:/(?<![\p{L}\p{Nd}_\.])\.\p{Nd}(?:_?\p{Nd})*(?:[eE][\+\-]?\p{Nd}(?:_?\p{Nd})*)?(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.float.decimal"}]},{patterns:[{patterns:[{match:/(?<![\p{L}\p{Nd}_\.])(?:0|[1-9](?:_?\p{Nd})*)(?:\.\p{Nd}(?:_?\p{Nd})*)?[KMGTPEYZ]i?(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.other"},{match:/(?<![\p{L}\p{Nd}_\.])\.\p{Nd}(?:_?\p{Nd})*[KMGTPEYZ]i?(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.other"}]},{match:/(?<![\p{L}\p{Nd}_\.])(?:0|[1-9](?:_?\p{Nd})*)(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.decimal"},{match:/(?<![\p{L}\p{Nd}_\.])0b[0-1](?:_?[0-1])*(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.binary"},{match:/(?<![\p{L}\p{Nd}_\.])0[xX][0-9a-fA-F](?:_?[0-9a-fA-F])*(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.hexadecimal"},{match:/(?<![\p{L}\p{Nd}_\.])0o?[0-7](?:_?[0-7])*(?![\p{L}\p{Nd}_\.])/dgv,name:"constant.numeric.integer.octal"}]}]},{include:"#string"},{match:/(?<![\p{L}\p{Nd}_\$\#])(?:bool|u?int(?:8|16|32|64|128)?|float(?:32|64)?|string|bytes|number|rune)(?![\p{L}\p{Nd}_\$\#])/dgv,name:"support.type"},{patterns:[{begin:/(?<![\p{L}\p{Nd}_\$\#])(len|close|and|or)(\()/dgv,beginCaptures:{"1":{name:"support.function"},"2":{name:"punctuation.section.parens.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end"}},name:"meta.function-call",patterns:[{include:"#whitespace"},{include:"#comment"},{include:"#punctuation_comma"},{include:"#expression"},{include:"#invalid_in_parens"}]},{begin:/(?<![\p{L}\p{Nd}_\$\#])([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*)(\.)(\p{Lu}[\p{L}\p{Nd}_\$\#]*)(\()/dgv,beginCaptures:{"1":{name:"support.module"},"2":{name:"punctuation"},"3":{name:"support.function"},"4":{name:"punctuation.section.parens.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end"}},name:"meta.function-call",patterns:[{include:"#whitespace"},{include:"#comment"},{include:"#punctuation_comma"},{include:"#expression"},{include:"#invalid_in_parens"}]}]},{match:/(?<![\p{L}\p{Nd}_\$\#])(?:[\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)(?![\p{L}\p{Nd}_\$\#])/dgv,name:"variable.other"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.struct.begin"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.struct.end"}},name:"meta.struct",patterns:[{include:"#whitespace"},{include:"#comment"},{include:"#punctuation_comma"},{include:"#punctuation_ellipsis"},{include:"#declaration"},{include:"#invalid_in_braces"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.brackets.begin"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.brackets.end"}},name:"meta.brackets",patterns:[{include:"#whitespace"},{include:"#comment"},{include:"#punctuation_colon"},{include:"#punctuation_comma"},{include:"#punctuation_ellipsis"},{captures:{"1":{name:"variable.other"},"2":{name:"punctuation.alias"}},match:/([\p{L}\$\#][\p{L}\p{Nd}_\$\#]*|_[\p{L}\p{Nd}_\$\#]+)[ \t]*(=)/dgv},{include:"#expression"},{match:/[^\]]+/dgv,name:"invalid"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end"}},name:"meta.parens",patterns:[{include:"#whitespace"},{include:"#comment"},{include:"#punctuation_comma"},{include:"#expression"},{include:"#invalid_in_parens"}]}]}]},invalid_in_braces:{match:/[^\}]+/dgv,name:"invalid"},invalid_in_parens:{match:/[^\)]+/dgv,name:"invalid"},punctuation_colon:{match:/(?<!:):(?!:)/dgv,name:"punctuation.colon"},punctuation_comma:{match:/,/dgv,name:"punctuation.separator"},punctuation_ellipsis:{match:/(?<!\.)\.{3}(?!\.)/dgv,name:"punctuation.ellipsis"},string:{patterns:[{begin:/#"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.double-multiline",end:/"""#/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\#(?:"""|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\#(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"invalid.illegal"},{begin:/\\#\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\#[^\n]/dgv,name:"invalid.illegal"}]},{begin:/#"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.double",end:/"#/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\#(?:"|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\#(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"invalid.illegal"},{begin:/\\#\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\#[^\n]/dgv,name:"invalid.illegal"}]},{begin:/#'''/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.single-multiline",end:/'''#/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\#(?:'''|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\#(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"constant.character.escape"},{begin:/\\#\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\#[^\n]/dgv,name:"invalid.illegal"}]},{begin:/#'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.single",end:/'#/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\#(?:'|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\#(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"constant.character.escape"},{begin:/\\#\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\#[^\n]/dgv,name:"invalid.illegal"}]},{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.double-multiline",end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\(?:"""|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"invalid.illegal"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\[^\n]/dgv,name:"invalid.illegal"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.double",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\(?:"|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"invalid.illegal"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\[^\n]/dgv,name:"invalid.illegal"}]},{begin:/'''/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.single-multiline",end:/'''/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\(?:'''|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"constant.character.escape"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\[^\n]/dgv,name:"invalid.illegal"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.single",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string",patterns:[{match:/\\(?:'|\/|\\|[abfnrtv]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"},{match:/\\(?:[0-7]{3}|x[0-9A-Fa-f]{2})/dgv,name:"constant.character.escape"},{begin:/\\\(/dgv,beginCaptures:{"0":{name:"punctuation.section.interpolation.begin"}},contentName:"source.cue.embedded",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.interpolation.end"}},name:"meta.interpolation",patterns:[{include:"#whitespace"},{include:"#expression"},{include:"#invalid_in_parens"}]},{match:/\\[^\n]/dgv,name:"invalid.illegal"}]},{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin"}},contentName:"string.quoted.backtick",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end"}},name:"meta.string"}]},whitespace:{match:/[ \t\r\n]+/dgv}},scopeName:"source.cue",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/cypher.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Cypher",fileTypes:["cql","cyp","cypher"],name:"cypher",patterns:[{include:"#comments"},{include:"#constants"},{include:"#keywords"},{include:"#functions"},{include:"#path-patterns"},{include:"#operators"},{include:"#identifiers"},{include:"#properties_literal"},{include:"#numbers"},{include:"#strings"}],repository:{comments:{patterns:[{match:/\/\/[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.double-slash.cypher"}]},constants:{patterns:[{match:/\bTRUE|FALSE\b/dgiv,name:"constant.language.bool.cypher"},{match:/\bNULL\b/dgiv,name:"constant.language.missing.cypher"}]},functions:{patterns:[{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b((NOT)(?=\p{space}*\()|IS\p{space}+NULL|IS\p{space}+NOT\p{space}+NULL)/dgiv,name:"keyword.control.function.boolean.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(ALL|ANY|NONE|SINGLE)(?=\p{space}*\()/dgiv,name:"support.function.predicate.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(LENGTH|TYPE|ID|COALESCE|HEAD|LAST|TIMESTAMP|STARTNODE|ENDNODE|TOINT|TOFLOAT)(?=\p{space}*\()/dgiv,name:"support.function.scalar.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(NODES|RELATIONSHIPS|LABELS|EXTRACT|FILTER|TAIL|RANGE|REDUCE)(?=\p{space}*\()/dgiv,name:"support.function.collection.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(ABS|ACOS|ASIN|ATAN|ATAN2|COS|COT|DEGREES|E|EXP|FLOOR|HAVERSIN|LOG|LOG10|PI|RADIANS|RAND|ROUND|SIGN|SIN|SQRT|TAN)(?=\p{space}*\()/dgiv,name:"support.function.math.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(COUNT|sum|avg|max|min|stdev|stdevp|percentileDisc|percentileCont|collect)(?=\p{space}*\()/dgiv,name:"support.function.aggregation.cypher"},{comment:"List of Cypher built-in functions from http://docs.neo4j.org/chunked/milestone/query-function.html",match:/\b(STR|REPLACE|SUBSTRING|LEFT|RIGHT|LTRIM|RTRIM|TRIM|LOWER|UPPER|SPLIT)(?=\p{space}*\()/dgiv,name:"support.function.string.cypher"}]},identifiers:{patterns:[{match:/`[^\n]+?`/dgv,name:"variable.other.quoted-identifier.cypher"},{match:/[\p{L}_][\p{L}0-9_]*/dgv,name:"variable.other.identifier.cypher"}]},keywords:{patterns:[{match:/\b(START|MATCH|WHERE|RETURN|UNION|FOREACH|WITH|AS|LIMIT|SKIP|UNWIND|HAS|DISTINCT|OPTIONAL\\s+MATCH|ORDER\p{space}+BY|CALL|YIELD)\b/dgiv,name:"keyword.control.clause.cypher"},{match:/\b(ELSE|END|THEN|CASE|WHEN)\b/dgiv,name:"keyword.control.case.cypher"},{match:/\b(FIELDTERMINATOR|USING\p{space}+PERIODIC\p{space}+COMMIT|HEADERS|LOAD\p{space}+CSV|FROM)\b/dgiv,name:"keyword.data.import.cypher"},{match:/\b(USING\p{space}+INDEX|CREATE\p{space}+INDEX\p{space}+ON|DROP\p{space}+INDEX\p{space}+ON|CREATE\p{space}+CONSTRAINT\p{space}+ON|DROP\p{space}+CONSTRAINT\p{space}+ON)\b/dgiv,name:"keyword.other.indexes.cypher"},{match:/\b(MERGE|DELETE|SET|REMOVE|ON\p{space}+CREATE|ON\p{space}+MATCH|CREATE\p{space}+UNIQUE|CREATE)\b/dgiv,name:"keyword.data.definition.cypher"},{match:/\b(DESC|ASC)\b/dgiv,name:"keyword.other.order.cypher"},{begin:/\b(node|relationship|rel)((:)([\p{L}_\-][\p{L}0-9_]*))?(?=\p{space}*\()/dgiv,beginCaptures:{"1":{name:"support.class.starting-functions-point.cypher"},"2":{name:"keyword.control.index-seperator.cypher"},"3":{name:"keyword.control.index-seperator.cypher"},"4":{name:"support.class.index.cypher"}},end:/\)/dgv,name:"source.starting-functions.cypher",patterns:[{match:/(`[^\n]+?`|[\p{L}_][\p{L}0-9_]*)/dgv,name:"variable.parameter.relationship-name.cypher"},{match:/(\*)/dgv,name:"keyword.control.starting-function-params.cypher"},{include:"#comments"},{include:"#numbers"},{include:"#strings"}]}]},numbers:{patterns:[{match:/\b\p{Nd}+(\.\p{Nd}+)?\b/dgv,name:"constant.numeric.cypher"}]},operators:{patterns:[{match:/(\+|-|\/|\*|%|\?|!)/dgv,name:"keyword.operator.math.cypher"},{match:/(<=|=>|<>|<|>|=~|=)/dgv,name:"keyword.operator.compare.cypher"},{match:/\b(OR|AND|XOR|IS)\b/dgiv,name:"keyword.operator.logical.cypher"},{match:/\b(IN)\b/dgiv,name:"keyword.operator.in.cypher"}]},"path-patterns":{patterns:[{match:/(<--|-->|--)/dgv,name:"support.function.relationship-pattern.cypher"},{begin:/(<-|-)(\[)/dgv,beginCaptures:{"1":{name:"support.function.relationship-pattern-start.cypher"},"2":{name:"keyword.operator.relationship-pattern-start.cypher"}},end:/(\])(->|-)/dgv,endCaptures:{"1":{name:"keyword.operator.relationship-pattern-end.cypher"},"2":{name:"support.function.relationship-pattern-end.cypher"}},name:"path-pattern.cypher",patterns:[{include:"#identifiers"},{captures:{"1":{name:"keyword.operator.relationship-type-start.cypher"},"2":{name:"entity.name.class.relationship.type.cypher"}},match:/(:)(`[^\n]+?`|[\p{L}_][\p{L}0-9_]*)/dgv,name:"entity.name.class.relationship-type.cypher"},{captures:{"1":{name:"support.type.operator.relationship-type-or.cypher"},"2":{name:"entity.name.class.relationship.type-or.cypher"}},match:/(\|)(\p{space}*)(`[^\n]+?`|[\p{L}_][\p{L}0-9_]*)/dgv,name:"entity.name.class.relationship-type-ored.cypher"},{match:/(?:\?\*|\?|\*)\p{space}*(?:\p{Nd}+\p{space}*(?:\.\.\p{space}*\p{Nd}+)?)?/dgv,name:"support.function.relationship-pattern.quant.cypher"},{include:"#properties_literal"}]}]},properties_literal:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"keyword.control.properties_literal.cypher"}},end:/\}/dgv,endCaptures:{"0":{name:"keyword.control.properties_literal.cypher"}},name:"source.cypher",patterns:[{match:/:|,/dgv,name:"keyword.control.properties_literal.seperator.cypher"},{include:"#comments"},{include:"#constants"},{include:"#functions"},{include:"#operators"},{include:"#identifiers"},{include:"#numbers"},{include:"#strings"}]}]},string_escape:{captures:{"2":{name:"string.quoted.double.cypher"}},match:/(\\\\|\\[tbnrf])|(\\'|\\")/dgv,name:"constant.character.escape.cypher"},strings:{patterns:[{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.cypher",patterns:[{include:"#string_escape"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.cypher",patterns:[{include:"#string_escape"}]}]}},scopeName:"source.cypher",embeddedLangs:undefined,aliases:["cql"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/d.d.mts
ADDED
package/dist/d.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"D",fileTypes:["d","di","dpp"],name:"d",patterns:[{include:"#comment"},{include:"#type"},{include:"#statement"},{include:"#expression"}],repository:{"aggregate-declaration":{patterns:[{include:"#class-declaration"},{include:"#interface-declaration"},{include:"#struct-declaration"},{include:"#union-declaration"},{include:"#mixin-template-declaration"},{include:"#template-declaration"}]},"alias-declaration":{patterns:[{begin:/\b(alias)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.alias.d"}},end:/;/dgv,endCaptures:{"0":{name:"meta.alias.end.d"}},patterns:[{include:"#type"},{match:/=(?![\=\>])/dgv,name:"keyword.operator.equal.alias.d"},{include:"#expression"}]}]},"align-attribute":{patterns:[{begin:/\balign\p{space}*\(/dgv,end:/\)/dgv,name:"storage.modifier.align-attribute.d",patterns:[{include:"#integer-literal"}]},{match:/\balign\b\p{space}*(?!\()/dgv,name:"storage.modifier.align-attribute.d"}]},"alternate-wysiwyg-string":{patterns:[{begin:/`/dgv,end:/`[cwd]?/dgv,name:"string.alternate-wysiwyg-string.d",patterns:[{include:"#wysiwyg-characters"}]}]},"arbitrary-delimited-string":{begin:/q"([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,end:/\1"()/dgv,name:"string.delimited.d",patterns:[{match:/[^\n]/dgv,name:"string.delimited.d"}]},"arithmetic-expression":{patterns:[{match:/\^\^|\+\+|--|(?<!\/)\+(?!\/)|-|~|(?<!\/)\*(?!\/)|(?<![\+\*\/])\/(?![\+\*\/])|%/dgv,name:"keyword.operator.numeric.d"}]},"asm-instruction":{patterns:[{include:"#comment"},{match:/\b(align|even|naked|db|ds|di|dl|df|dd|de)\b|:/dgv,name:"keyword.asm-instruction.d"},{match:/\b__LOCAL_SIZE\b/dgv,name:"constant.language.assembly.d"},{match:/\b(offsetof|seg)\b/dgv,name:"support.type.assembly.d"},{include:"#asm-type-prefix"},{include:"#asm-primary-expression"},{include:"#operands"},{include:"#register"},{include:"#register-64"},{include:"#float-literal"},{include:"#integer-literal"},{include:"#identifier"}]},"asm-statement":{patterns:[{begin:/\b(asm)\b\p{space}*(?=\{)/dgv,captures:{"1":{name:"keyword.control.switch.d"}},end:/(?<=\})/dgv,patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"keyword.control.asm.begin.d"}},contentName:"gfm.markup.raw.assembly.d",end:/\}/dgv,endCaptures:{"0":{name:"keyword.control.asm.end.d"}},patterns:[{include:"#asm-instruction"}]}]}]},"asm-type-prefix":{patterns:[{match:/\b((near\p{space}+ptr)|(far\p{space}+ptr)|(byte\p{space}+ptr)|(short\p{space}+ptr)|(int\p{space}+ptr)|(word\p{space}+ptr)|(dword\p{space}+ptr)|(qword\p{space}+ptr)|(float\p{space}+ptr)|(double\p{space}+ptr)|(real\p{space}+ptr))\b/dgv,name:"support.type.asm-type-prefix.d"}]},"assert-expression":{patterns:[{begin:/\bassert\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.assert.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.assert.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"assign-expression":{patterns:[{match:/>>>=|\^\^=|>>=|<<=|~=|\^=|\|=|&=|%=|\/=|\*=|-=|\+=|=(?!>)/dgv,name:"keyword.operator.assign.d"}]},attribute:{patterns:[{include:"#linkage-attribute"},{include:"#align-attribute"},{include:"#deprecated-attribute"},{include:"#protection-attribute"},{include:"#pragma"},{match:/\b(static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\b/dgv,name:"entity.other.attribute-name.d"},{include:"#property"}]},"base-type":{patterns:[{match:/\b(auto|bool|byte|ubyte|short|ushort|int|uint|long|ulong|char|wchar|dchar|float|double|real|ifloat|idouble|ireal|cfloat|cdouble|creal|void|noreturn)\b/dgv,name:"storage.type.basic-type.d"},{match:/\b(string|wstring|dstring|size_t|ptrdiff_t)\b(?!\p{space}*=)/dgv,name:"storage.type.basic-type.d"}]},"binary-integer":{patterns:[{match:/\b(0b|0B)[0-1_]+(Lu|LU|uL|UL|L|u|U)?\b/dgv,name:"constant.numeric.integer.binary.d"}]},"bitwise-expression":{patterns:[{match:/\||\^|&/dgv,name:"keyword.operator.bitwise.d"}]},"block-comment":{patterns:[{begin:/\/((?!\*\/)\*)+/dgv,beginCaptures:{"0":{name:"comment.block.begin.d"}},end:/\*+\//dgv,endCaptures:{"0":{name:"comment.block.end.d"}},name:"comment.block.content.d"}]},"break-statement":{patterns:[{match:/\bbreak\b/dgv,name:"keyword.control.break.d"}]},"case-statement":{patterns:[{begin:/\b(case)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.case.range.d"}},end:/:/dgv,endCaptures:{"0":{name:"meta.case.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"cast-expression":{patterns:[{begin:/\b(cast)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.operator.cast.d"},"2":{name:"keyword.operator.cast.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.operator.cast.end.d"}},patterns:[{include:"#type"},{include:"#extended-type"}]}]},catch:{patterns:[{begin:/\b(catch)\b\p{space}*(?=\()/dgv,captures:{"1":{name:"keyword.control.catch.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},catches:{patterns:[{include:"#catch"}]},character:{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}\p{space}]+/dgv,name:"string.character.d"}]},"character-literal":{patterns:[{begin:/'/dgv,end:/'/dgv,name:"string.character-literal.d",patterns:[{include:"#character"},{include:"#escape-sequence"}]}]},"class-declaration":{patterns:[{captures:{"1":{name:"storage.type.class.d"},"2":{name:"entity.name.class.d"}},match:/\b(class)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv},{include:"#protection-attribute"},{include:"#class-members"}]},"class-members":{patterns:[{include:"#shared-static-constructor"},{include:"#shared-static-destructor"},{include:"#constructor"},{include:"#destructor"},{include:"#postblit"},{include:"#invariant"},{include:"#member-function-attribute"}]},colon:{patterns:[{match:/:/dgv,name:"support.type.colon.d"}]},comma:{patterns:[{match:/,/dgv,name:"keyword.operator.comma.d"}]},comment:{patterns:[{include:"#block-comment"},{include:"#line-comment"},{include:"#nesting-block-comment"}]},condition:{patterns:[{include:"#version-condition"},{include:"#debug-condition"},{include:"#static-if-condition"}]},"conditional-declaration":{patterns:[{include:"#condition"},{match:/\belse\b/dgv,name:"keyword.control.else.d"},{include:"#colon"},{include:"#decl-defs"}]},"conditional-expression":{patterns:[{match:/\p{space}(\?|:)\p{space}/dgv,name:"keyword.operator.ternary.d"}]},"conditional-statement":{patterns:[{include:"#condition"},{include:"#no-scope-non-empty-statement"},{match:/\belse\b/dgv,name:"keyword.control.else.d"}]},constructor:{patterns:[{match:/\bthis\b/dgv,name:"entity.name.function.constructor.d"}]},"continue-statement":{patterns:[{match:/\bcontinue\b/dgv,name:"keyword.control.continue.d"}]},"debug-condition":{patterns:[{begin:/\bdebug\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.debug.identifier.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.debug.identifier.end.d"}},patterns:[{include:"#integer-literal"},{include:"#identifier"}]},{match:/\bdebug\b\p{space}*(?!\()/dgv,name:"keyword.other.debug.plain.d"}]},"debug-specification":{patterns:[{match:/\bdebug\b\p{space}*(?==)/dgv,name:"keyword.other.debug-specification.d"}]},"decimal-float":{patterns:[{match:/\b((\.\p{Nd})|(0\.)|(([1-9]|(0[1-9_]))[0-9_]*\.))[0-9_]*((e-|E-|e\+|E\+|e|E)\p{Nd}[0-9_]*)?[LfF]?i?\b/dgv,name:"constant.numeric.float.decimal.d"}]},"decimal-integer":{patterns:[{match:/\b(0(?=[^\p{Nd}xXbB]))|([1-9][0-9_]*)(Lu|LU|uL|UL|L|u|U)?\b/dgv,name:"constant.numeric.integer.decimal.d"}]},declaration:{patterns:[{include:"#alias-declaration"},{include:"#aggregate-declaration"},{include:"#enum-declaration"},{include:"#import-declaration"},{include:"#storage-class"},{include:"#void-initializer"},{include:"#mixin-declaration"}]},"declaration-statement":{patterns:[{include:"#declaration"}]},"default-statement":{patterns:[{captures:{"1":{name:"keyword.control.case.default.d"},"2":{name:"meta.default.colon.d"}},match:/\b(default)\p{space}*(:)/dgv}]},"delete-expression":{patterns:[{match:/\bdelete\p{space}+/dgv,name:"keyword.other.delete.d"}]},"delimited-string":{begin:/q"/dgv,end:/"/dgv,name:"string.delimited.d",patterns:[{include:"#delimited-string-bracket"},{include:"#delimited-string-parens"},{include:"#delimited-string-angle-brackets"},{include:"#delimited-string-braces"}]},"delimited-string-angle-brackets":{patterns:[{begin:/</dgv,end:/>/dgv,name:"constant.character.angle-brackets.d",patterns:[{include:"#wysiwyg-characters"}]}]},"delimited-string-braces":{patterns:[{begin:/\{/dgv,end:/\}/dgv,name:"constant.character.delimited.braces.d",patterns:[{include:"#wysiwyg-characters"}]}]},"delimited-string-bracket":{patterns:[{begin:/\[/dgv,end:/\]/dgv,name:"constant.characters.delimited.brackets.d",patterns:[{include:"#wysiwyg-characters"}]}]},"delimited-string-parens":{patterns:[{begin:/\(/dgv,end:/\)/dgv,name:"constant.character.delimited.parens.d",patterns:[{include:"#wysiwyg-characters"}]}]},"deprecated-statement":{patterns:[{begin:/\bdeprecated\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.deprecated.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.deprecated.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]},{match:/\bdeprecated\b\p{space}*(?!\()/dgv,name:"keyword.other.deprecated.plain.d"}]},destructor:{patterns:[{match:/\b~this\p{space}*\(\p{space}*\)/dgv,name:"entity.name.class.destructor.d"}]},"do-statement":{patterns:[{match:/\bdo\b/dgv,name:"keyword.control.do.d"}]},"double-quoted-characters":{patterns:[{include:"#character"},{include:"#end-of-line"},{include:"#escape-sequence"}]},"double-quoted-string":{patterns:[{begin:/"/dgv,end:/"[cwd]?/dgv,name:"string.double-quoted-string.d",patterns:[{include:"#double-quoted-characters"}]}]},"end-of-line":{patterns:[{match:/\n+/dgv,name:"string.character.end-of-line.d"}]},"enum-declaration":{patterns:[{begin:/\b(enum)\b\p{space}+(?=[^\n]*[\=\;])/dgv,beginCaptures:{"1":{name:"storage.type.enum.d"}},end:/([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*)\p{space}*(?=;|=|\()(;)?/dgv,endCaptures:{"1":{name:"entity.name.type.enum.d"},"2":{name:"meta.enum.end.d"}},patterns:[{include:"#type"},{include:"#extended-type"},{match:/=(?![\=\>])/dgv,name:"keyword.operator.equal.alias.d"}]}]},eof:{patterns:[{begin:/__EOF__/dgv,beginCaptures:{"0":{name:"comment.block.documentation.eof.start.d"}},end:/(?!__NEVER_MATCH__)__NEVER_MATCH__/dgv,name:"text.eof.d"}]},equal:{patterns:[{match:/=(?![\=\>])/dgv,name:"keyword.operator.equal.d"}]},"escape-sequence":{patterns:[{match:/(\\(?:quot|amp|lt|gt|OElig|oelig|Scaron|scaron|Yuml|circ|tilde|ensp|emsp|thinsp|zwnj|zwj|lrm|rlm|ndash|mdash|lsquo|rsquo|sbquo|ldquo|rdquo|bdquo|dagger|Dagger|permil|lsaquo|rsaquo|euro|nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|Aelig|Ccedil|egrave|eacute|ecirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|fnof|Alpha|Beta|Gamma|Delta|Epsilon|Zeta|Eta|Theta|Iota|Kappa|Lambda|Mu|Nu|Xi|Omicron|Pi|Rho|Sigma|Tau|Upsilon|Phi|Chi|Psi|Omega|alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigmaf|sigma|tau|upsilon|phi|chi|psi|omega|thetasym|upsih|piv|bull|hellip|prime|Prime|oline|frasl|weierp|image|real|trade|alefsym|larr|uarr|rarr|darr|harr|crarr|lArr|uArr|rArr|dArr|hArr|forall|part|exist|empty|nabla|isin|notin|ni|prod|sum|minux|lowast|radic|prop|infin|ang|and|or|cap|cup|int|there4|sim|cong|asymp|ne|equiv|le|ge|sub|sup|nsub|sube|supe|oplus|otimes|perp|sdot|lceil|rceil|lfloor|rfloor|loz|spades|clubs|hearts|diams|lang|rang))/dgv,name:"constant.character.escape-sequence.entity.d"},{match:/(\\x[0-9a-fA-F_]{2}|\\u[0-9a-fA-F_]{4}|\\U[0-9a-fA-F_]{8}|\\[0-7]{1,3})/dgv,name:"constant.character.escape-sequence.number.d"},{match:/(\\t|\\'|\\"|\\\?|\\0|\\a|\\b|\\f|\\n|\\r|\\v|\\\\)/dgv,name:"constant.character.escape-sequence.d"}]},expression:{patterns:[{include:"#index-expression"},{include:"#expression-no-index"}]},"expression-no-index":{patterns:[{include:"#function-literal"},{include:"#assert-expression"},{include:"#assign-expression"},{include:"#mixin-expression"},{include:"#import-expression"},{include:"#traits-expression"},{include:"#is-expression"},{include:"#typeid-expression"},{include:"#shift-expression"},{include:"#logical-expression"},{include:"#rel-expression"},{include:"#bitwise-expression"},{include:"#identity-expression"},{include:"#in-expression"},{include:"#conditional-expression"},{include:"#arithmetic-expression"},{include:"#new-expression"},{include:"#delete-expression"},{include:"#cast-expression"},{include:"#type-specialization"},{include:"#comma"},{include:"#special-keyword"},{include:"#functions"},{include:"#type"},{include:"#parentheses-expression"},{include:"#lexical"}]},"extended-type":{patterns:[{match:/\b((\.\p{space}*)?[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)(\p{space}*\.\p{space}*[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)*\b/dgv,name:"entity.name.type.d"},{begin:/\[/dgv,beginCaptures:{"0":{name:"storage.type.array.expression.begin.d"}},end:/\]/dgv,endCaptures:{"0":{name:"storage.type.array.expression.end.d"}},patterns:[{match:/\.\.|\$/dgv,name:"keyword.operator.slice.d"},{include:"#type"},{include:"#expression"}]}]},"final-switch-statement":{patterns:[{begin:/\b(final\p{space}+switch)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.final.switch.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"finally-statement":{patterns:[{match:/\bfinally\b/dgv,name:"keyword.control.throw.d"}]},"float-literal":{patterns:[{include:"#decimal-float"},{include:"#hexadecimal-float"}]},"for-statement":{patterns:[{begin:/\b(for)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.for.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"foreach-reverse-statement":{patterns:[{begin:/\b(foreach_reverse)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.foreach_reverse.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{match:/;/dgv,name:"keyword.operator.semi-colon.d"},{include:"source.d"}]}]}]},"foreach-statement":{patterns:[{begin:/\b(foreach)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.foreach.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{match:/;/dgv,name:"keyword.operator.semi-colon.d"},{include:"source.d"}]}]}]},"function-attribute":{patterns:[{match:/\b(nothrow|pure)\b/dgv,name:"storage.type.modifier.function-attribute.d"},{include:"#property"}]},"function-body":{patterns:[{include:"#in-statement"},{include:"#out-statement"},{include:"#block-statement"}]},"function-literal":{patterns:[{match:/=>/dgv,name:"keyword.operator.lambda.d"},{match:/\b(function|delegate)\b/dgv,name:"keyword.other.function-literal.d"},{begin:/\b([_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(=>)/dgv,beginCaptures:{"1":{name:"variable.parameter.d"},"2":{name:"meta.lexical.token.symbolic.d"}},end:/(?=[\)\;\,\]\}])/dgv,patterns:[{include:"source.d"}]},{begin:/(?<=\)|\()(\p{space}*)(\{)/dgv,beginCaptures:{"1":{name:"source.d"},"2":{name:"source.d"}},end:/\}/dgv,patterns:[{include:"source.d"}]}]},"function-prelude":{patterns:[{match:/(?!typeof|typeid)((\.\p{space}*)?[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)(\p{space}*\.\p{space}*[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)*\p{space}*(?=\()/dgv,name:"entity.name.function.d"}]},functions:{patterns:[{include:"#function-attribute"},{include:"#function-prelude"}]},"goto-statement":{patterns:[{match:/\bgoto\p{space}+default\b/dgv,name:"keyword.control.goto.d"},{match:/\bgoto\p{space}+case\b/dgv,name:"keyword.control.goto.d"},{match:/\bgoto\b/dgv,name:"keyword.control.goto.d"}]},"hex-string":{patterns:[{begin:/x"/dgv,end:/"[cwd]?/dgv,name:"string.hex-string.d",patterns:[{match:/[a-fA-F0-9_s]+/dgv,name:"constant.character.hex-string.d"}]}]},"hexadecimal-float":{patterns:[{match:/\b0[xX][0-9a-fA-F_]*(\.[0-9a-fA-F_]*)?(p-|P-|p\+|P\+|p|P)\p{Nd}[0-9_]*[LfF]?i?\b/dgv,name:"constant.numeric.float.hexadecimal.d"}]},"hexadecimal-integer":{patterns:[{match:/\b(0x|0X)([0-9a-fA-F][0-9a-fA-F_]*)(Lu|LU|uL|UL|L|u|U)?\b/dgv,name:"constant.numeric.integer.hexadecimal.d"}]},identifier:{patterns:[{match:/\b((\.\p{space}*)?[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)(\p{space}*\.\p{space}*[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)*\b/dgv,name:"variable.d"}]},"identifier-list":{patterns:[{match:/,/dgv,name:"keyword.other.comma.d"},{include:"#identifier"}]},"identity-expression":{patterns:[{match:/\b(is|!is)\b/dgv,name:"keyword.operator.identity.d"}]},"if-statement":{patterns:[{begin:/\b(if)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.if.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]},{match:/\belse\b\p{space}*/dgv,name:"keyword.control.else.d"}]},"import-declaration":{patterns:[{begin:/\b(static\p{space}+)?(import)\p{space}+(?!\()/dgv,beginCaptures:{"1":{name:"keyword.package.import.d"},"2":{name:"keyword.package.import.d"}},end:/;/dgv,endCaptures:{"0":{name:"meta.import.end.d"}},patterns:[{include:"#import-identifier"},{include:"#comma"},{include:"#comment"}]}]},"import-expression":{patterns:[{begin:/\b(import)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"keyword.other.import.d"},"2":{name:"keyword.other.import.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.import.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"import-identifier":{patterns:[{match:/([_a-zA-Z][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)(\p{space}*\.\p{space}*[_a-zA-Z][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)*/dgv,name:"variable.parameter.import.d"}]},"in-expression":{patterns:[{match:/\b(in|!in)\b/dgv,name:"keyword.operator.in.d"}]},"in-statement":{patterns:[{match:/\bin\b/dgv,name:"keyword.control.in.d"}]},"index-expression":{patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{match:/\.\.|\$/dgv,name:"keyword.operator.slice.d"},{include:"#expression-no-index"}]}]},"integer-literal":{patterns:[{include:"#decimal-integer"},{include:"#binary-integer"},{include:"#hexadecimal-integer"}]},"interface-declaration":{patterns:[{captures:{"1":{name:"storage.type.interface.d"},"2":{name:"entity.name.type.interface.d"}},match:/\b(interface)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv}]},invariant:{patterns:[{match:/\binvariant\p{space}*\(\p{space}*\)/dgv,name:"entity.name.class.invariant.d"}]},"is-expression":{patterns:[{begin:/\bis\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.token.is.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.token.is.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},keyword:{patterns:[{match:/\babstract\b/dgv,name:"keyword.token.abstract.d"},{match:/\balias\b/dgv,name:"keyword.token.alias.d"},{match:/\balign\b/dgv,name:"keyword.token.align.d"},{match:/\basm\b/dgv,name:"keyword.token.asm.d"},{match:/\bassert\b/dgv,name:"keyword.token.assert.d"},{match:/\bauto\b/dgv,name:"keyword.token.auto.d"},{match:/\bbool\b/dgv,name:"keyword.token.bool.d"},{match:/\bbreak\b/dgv,name:"keyword.token.break.d"},{match:/\bbyte\b/dgv,name:"keyword.token.byte.d"},{match:/\bcase\b/dgv,name:"keyword.token.case.d"},{match:/\bcast\b/dgv,name:"keyword.token.cast.d"},{match:/\bcatch\b/dgv,name:"keyword.token.catch.d"},{match:/\bcdouble\b/dgv,name:"keyword.token.cdouble.d"},{match:/\bcent\b/dgv,name:"keyword.token.cent.d"},{match:/\bcfloat\b/dgv,name:"keyword.token.cfloat.d"},{match:/\bchar\b/dgv,name:"keyword.token.char.d"},{match:/\bclass\b/dgv,name:"keyword.token.class.d"},{match:/\bconst\b/dgv,name:"keyword.token.const.d"},{match:/\bcontinue\b/dgv,name:"keyword.token.continue.d"},{match:/\bcreal\b/dgv,name:"keyword.token.creal.d"},{match:/\bdchar\b/dgv,name:"keyword.token.dchar.d"},{match:/\bdebug\b/dgv,name:"keyword.token.debug.d"},{match:/\bdefault\b/dgv,name:"keyword.token.default.d"},{match:/\bdelegate\b/dgv,name:"keyword.token.delegate.d"},{match:/\bdelete\b/dgv,name:"keyword.token.delete.d"},{match:/\bdeprecated\b/dgv,name:"keyword.token.deprecated.d"},{match:/\bdo\b/dgv,name:"keyword.token.do.d"},{match:/\bdouble\b/dgv,name:"keyword.token.double.d"},{match:/\belse\b/dgv,name:"keyword.token.else.d"},{match:/\benum\b/dgv,name:"keyword.token.enum.d"},{match:/\bexport\b/dgv,name:"keyword.token.export.d"},{match:/\bextern\b/dgv,name:"keyword.token.extern.d"},{match:/\bfalse\b/dgv,name:"constant.language.boolean.false.d"},{match:/\bfinal\b/dgv,name:"keyword.token.final.d"},{match:/\bfinally\b/dgv,name:"keyword.token.finally.d"},{match:/\bfloat\b/dgv,name:"keyword.token.float.d"},{match:/\bfor\b/dgv,name:"keyword.token.for.d"},{match:/\bforeach\b/dgv,name:"keyword.token.foreach.d"},{match:/\bforeach_reverse\b/dgv,name:"keyword.token.foreach_reverse.d"},{match:/\bfunction\b/dgv,name:"keyword.token.function.d"},{match:/\bgoto\b/dgv,name:"keyword.token.goto.d"},{match:/\bidouble\b/dgv,name:"keyword.token.idouble.d"},{match:/\bif\b/dgv,name:"keyword.token.if.d"},{match:/\bifloat\b/dgv,name:"keyword.token.ifloat.d"},{match:/\bimmutable\b/dgv,name:"keyword.token.immutable.d"},{match:/\bimport\b/dgv,name:"keyword.token.import.d"},{match:/\bin\b/dgv,name:"keyword.token.in.d"},{match:/\binout\b/dgv,name:"keyword.token.inout.d"},{match:/\bint\b/dgv,name:"keyword.token.int.d"},{match:/\binterface\b/dgv,name:"keyword.token.interface.d"},{match:/\binvariant\b/dgv,name:"keyword.token.invariant.d"},{match:/\bireal\b/dgv,name:"keyword.token.ireal.d"},{match:/\bis\b/dgv,name:"keyword.token.is.d"},{match:/\blazy\b/dgv,name:"keyword.token.lazy.d"},{match:/\blong\b/dgv,name:"keyword.token.long.d"},{match:/\bmacro\b/dgv,name:"keyword.token.macro.d"},{match:/\bmixin\b/dgv,name:"keyword.token.mixin.d"},{match:/\bmodule\b/dgv,name:"keyword.token.module.d"},{match:/\bnew\b/dgv,name:"keyword.token.new.d"},{match:/\bnothrow\b/dgv,name:"keyword.token.nothrow.d"},{match:/\bnull\b/dgv,name:"constant.language.null.d"},{match:/\bout\b/dgv,name:"keyword.token.out.d"},{match:/\boverride\b/dgv,name:"keyword.token.override.d"},{match:/\bpackage\b/dgv,name:"keyword.token.package.d"},{match:/\bpragma\b/dgv,name:"keyword.token.pragma.d"},{match:/\bprivate\b/dgv,name:"keyword.token.private.d"},{match:/\bprotected\b/dgv,name:"keyword.token.protected.d"},{match:/\bpublic\b/dgv,name:"keyword.token.public.d"},{match:/\bpure\b/dgv,name:"keyword.token.pure.d"},{match:/\breal\b/dgv,name:"keyword.token.real.d"},{match:/\bref\b/dgv,name:"keyword.token.ref.d"},{match:/\breturn\b/dgv,name:"keyword.token.return.d"},{match:/\bscope\b/dgv,name:"keyword.token.scope.d"},{match:/\bshared\b/dgv,name:"keyword.token.shared.d"},{match:/\bshort\b/dgv,name:"keyword.token.short.d"},{match:/\bstatic\b/dgv,name:"keyword.token.static.d"},{match:/\bstruct\b/dgv,name:"keyword.token.struct.d"},{match:/\bsuper\b/dgv,name:"keyword.token.super.d"},{match:/\bswitch\b/dgv,name:"keyword.token.switch.d"},{match:/\bsynchronized\b/dgv,name:"keyword.token.synchronized.d"},{match:/\btemplate\b/dgv,name:"keyword.token.template.d"},{match:/\bthis\b/dgv,name:"keyword.token.this.d"},{match:/\bthrow\b/dgv,name:"keyword.token.throw.d"},{match:/\btrue\b/dgv,name:"constant.language.boolean.true.d"},{match:/\btry\b/dgv,name:"keyword.token.try.d"},{match:/\btypedef\b/dgv,name:"keyword.token.typedef.d"},{match:/\btypeid\b/dgv,name:"keyword.token.typeid.d"},{match:/\btypeof\b/dgv,name:"keyword.token.typeof.d"},{match:/\bubyte\b/dgv,name:"keyword.token.ubyte.d"},{match:/\bucent\b/dgv,name:"keyword.token.ucent.d"},{match:/\buint\b/dgv,name:"keyword.token.uint.d"},{match:/\bulong\b/dgv,name:"keyword.token.ulong.d"},{match:/\bunion\b/dgv,name:"keyword.token.union.d"},{match:/\bunittest\b/dgv,name:"keyword.token.unittest.d"},{match:/\bushort\b/dgv,name:"keyword.token.ushort.d"},{match:/\bversion\b/dgv,name:"keyword.token.version.d"},{match:/\bvoid\b/dgv,name:"keyword.token.void.d"},{match:/\bvolatile\b/dgv,name:"keyword.token.volatile.d"},{match:/\bwchar\b/dgv,name:"keyword.token.wchar.d"},{match:/\bwhile\b/dgv,name:"keyword.token.while.d"},{match:/\bwith\b/dgv,name:"keyword.token.with.d"},{match:/\b__FILE__\b/dgv,name:"keyword.token.__FILE__.d"},{match:/\b__MODULE__\b/dgv,name:"keyword.token.__MODULE__.d"},{match:/\b__LINE__\b/dgv,name:"keyword.token.__LINE__.d"},{match:/\b__FUNCTION__\b/dgv,name:"keyword.token.__FUNCTION__.d"},{match:/\b__PRETTY_FUNCTION__\b/dgv,name:"keyword.token.__PRETTY_FUNCTION__.d"},{match:/\b__gshared\b/dgv,name:"keyword.token.__gshared.d"},{match:/\b__traits\b/dgv,name:"keyword.token.__traits.d"},{match:/\b__vector\b/dgv,name:"keyword.token.__vector.d"},{match:/\b__parameters\b/dgv,name:"keyword.token.__parameters.d"}]},"labeled-statement":{patterns:[{match:/\b(?!abstract|alias|align|asm|assert|auto|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|noreturn|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|static|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__|__gshared|__traits|__vector|__parameters)[a-zA-Z_][a-zA-Z_0-9]*\p{space}*:/dgv,name:"entity.name.d"}]},lexical:{patterns:[{include:"#comment"},{include:"#string-literal"},{include:"#character-literal"},{include:"#float-literal"},{include:"#integer-literal"},{include:"#eof"},{include:"#special-tokens"},{include:"#special-token-sequence"},{include:"#keyword"},{include:"#identifier"}]},"line-comment":{patterns:[{match:/\/\/+[^\n]*(?=$|\n)/dgv,name:"comment.line.d"}]},"linkage-attribute":{patterns:[{begin:/\bextern\p{space}*\(\p{space}*C\+\+\p{space}*,/dgv,beginCaptures:{"0":{name:"keyword.other.extern.cplusplus.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.extern.cplusplus.end.d"}},patterns:[{include:"#identifier"},{include:"#comma"}]},{begin:/\bextern\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.extern.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.extern.end.d"}},patterns:[{include:"#linkage-type"}]}]},"linkage-type":{patterns:[{match:/C|C\+\+|D|Windows|Pascal|System/dgv,name:"storage.modifier.linkage-type.d"}]},"logical-expression":{patterns:[{match:/\|\||&&|==|!=|!/dgv,name:"keyword.operator.logical.d"}]},"member-function-attribute":{patterns:[{match:/\b(const|immutable|inout|shared)\b/dgv,name:"storage.type.modifier.member-function-attribute"}]},"mixin-declaration":{patterns:[{begin:/\bmixin\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.mixin.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.mixin.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"mixin-expression":{patterns:[{begin:/\bmixin\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.mixin.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.mixin.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"mixin-statement":{patterns:[{begin:/\bmixin\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.control.mixin.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.control.mixin.end.d"}},patterns:[{include:"#comment"},{include:"#expression"},{include:"#comma"}]}]},"mixin-template-declaration":{patterns:[{captures:{"1":{name:"storage.type.mixintemplate.d"},"2":{name:"entity.name.type.mixintemplate.d"}},match:/\b(mixin\p{space}*template)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv}]},module:{packages:[{import:"#module-declaration"}]},"module-declaration":{patterns:[{begin:/\b(module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.package.module.d"}},end:/;/dgv,endCaptures:{"0":{name:"meta.module.end.d"}},patterns:[{include:"#module-identifier"},{include:"#comment"}]}]},"module-identifier":{patterns:[{match:/([_a-zA-Z][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)(\p{space}*\.\p{space}*[_a-zA-Z][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)*/dgv,name:"variable.parameter.module.d"}]},"nesting-block-comment":{patterns:[{begin:/\/((?!\+\/)\+)+/dgv,beginCaptures:{"0":{name:"comment.block.documentation.begin.d"}},end:/\++\//dgv,endCaptures:{"0":{name:"comment.block.documentation.end.d"}},name:"comment.block.documentation.content.d",patterns:[{include:"#nesting-block-comment"}]}]},"new-expression":{patterns:[{match:/\bnew\p{space}+/dgv,name:"keyword.other.new.d"}]},"non-block-statement":{patterns:[{include:"#module-declaration"},{include:"#labeled-statement"},{include:"#if-statement"},{include:"#while-statement"},{include:"#do-statement"},{include:"#for-statement"},{include:"#static-foreach"},{include:"#static-foreach-reverse"},{include:"#foreach-statement"},{include:"#foreach-reverse-statement"},{include:"#switch-statement"},{include:"#final-switch-statement"},{include:"#case-statement"},{include:"#default-statement"},{include:"#continue-statement"},{include:"#break-statement"},{include:"#return-statement"},{include:"#goto-statement"},{include:"#with-statement"},{include:"#synchronized-statement"},{include:"#try-statement"},{include:"#catches"},{include:"#scope-guard-statement"},{include:"#throw-statement"},{include:"#finally-statement"},{include:"#asm-statement"},{include:"#pragma-statement"},{include:"#mixin-statement"},{include:"#conditional-statement"},{include:"#static-assert"},{include:"#deprecated-statement"},{include:"#unit-test"},{include:"#declaration-statement"}]},operands:{patterns:[{match:/\?|:/dgv,name:"keyword.operator.ternary.assembly.d"},{match:/\]|\[/dgv,name:"keyword.operator.bracket.assembly.d"},{match:/>>>|\|\||&&|==|!=|<=|>=|<<|>>|\||\^|&|<|>|\+|-|\*|\/|%|~|!/dgv,name:"keyword.operator.assembly.d"}]},"out-statement":{patterns:[{begin:/\bout\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.control.out.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.control.out.end.d"}},patterns:[{include:"#identifier"}]},{match:/\bout\b/dgv,name:"keyword.control.out.d"}]},"parentheses-expression":{patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#expression"}]}]},postblit:{patterns:[{match:/\bthis\p{space}*\(\p{space}*this\p{space}*\)\p{space}/dgv,name:"entity.name.class.postblit.d"}]},pragma:{patterns:[{match:/\bpragma\p{space}*\(\p{space}*[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*\p{space}*\)/dgv,name:"keyword.other.pragma.d"},{begin:/\bpragma\p{space}*\(\p{space}*[_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*\p{space}*,/dgv,end:/\)/dgv,name:"keyword.other.pragma.d",patterns:[{include:"#expression"}]},{match:/(?<=^|\n(?!$))#![^\n]+/dgv,name:"gfm.markup.header.preprocessor.script-tag.d"}]},"pragma-statement":{patterns:[{include:"#pragma"}]},property:{patterns:[{match:/@(property|safe|trusted|system|disable|nogc)\b/dgv,name:"entity.name.tag.property.d"},{include:"#user-defined-attribute"}]},"protection-attribute":{patterns:[{match:/\b(private|package|protected|public|export)\b/dgv,name:"keyword.other.protections.d"}]},register:{patterns:[{match:/\b(XMM0|XMM1|XMM2|XMM3|XMM4|XMM5|XMM6|XMM7|MM0|MM1|MM2|MM3|MM4|MM5|MM6|MM7|ST\(0\)|ST\(1\)|ST\(2\)|ST\(3\)|ST\(4\)|ST\(5\)|ST\(6\)|ST\(7\)|ST|TR1|TR2|TR3|TR4|TR5|TR6|TR7|DR0|DR1|DR2|DR3|DR4|DR5|DR6|DR7|CR0|CR2|CR3|CR4|EAX|EBX|ECX|EDX|EBP|ESP|EDI|ESI|AL|AH|AX|BL|BH|BX|CL|CH|CX|DL|DH|DX|BP|SP|DI|SI|ES|CS|SS|DS|GS|FS)\b/dgv,name:"storage.type.assembly.register.d"}]},"register-64":{patterns:[{match:/\b(RAX|RBX|RCX|RDX|BPL|RBP|SPL|RSP|DIL|RDI|SIL|RSI|R8B|R8W|R8D|R8|R9B|R9W|R9D|R9|R10B|R10W|R10D|R10|R11B|R11W|R11D|R11|R12B|R12W|R12D|R12|R13B|R13W|R13D|R13|R14B|R14W|R14D|R14|R15B|R15W|R15D|R15|XMM8|XMM9|XMM10|XMM11|XMM12|XMM13|XMM14|XMM15|YMM0|YMM1|YMM2|YMM3|YMM4|YMM5|YMM6|YMM7|YMM8|YMM9|YMM10|YMM11|YMM12|YMM13|YMM14|YMM15)\b/dgv,name:"storage.type.assembly.register-64.d"}]},"rel-expression":{patterns:[{match:/!<>=|!<>|<>=|!>=|!<=|<=|>=|<>|!>|!<|<|>/dgv,name:"keyword.operator.rel.d"}]},"return-statement":{patterns:[{match:/\breturn\b/dgv,name:"keyword.control.return.d"}]},"scope-guard-statement":{patterns:[{match:/\bscope\p{space}*\((exit|success|failure)\)/dgv,name:"keyword.control.scope.d"}]},"semi-colon":{patterns:[{match:/;/dgv,name:"meta.statement.end.d"}]},"shared-static-constructor":{patterns:[{match:/\b(shared\p{space}+)?static\p{space}+this\p{space}*\(\p{space}*\)/dgv,name:"entity.name.class.constructor.shared-static.d"},{include:"#function-body"}]},"shared-static-destructor":{patterns:[{match:/\b(shared\p{space}+)?static\p{space}+~this\p{space}*\(\p{space}*\)/dgv,name:"entity.name.class.destructor.static.d"}]},"shift-expression":{patterns:[{match:/<<|>>|>>>/dgv,name:"keyword.operator.shift.d"},{include:"#add-expression"}]},"special-keyword":{patterns:[{match:/\b(__FILE__|__FILE_FULL_PATH__|__MODULE__|__LINE__|__FUNCTION__|__PRETTY_FUNCTION__)\b/dgv,name:"constant.language.special-keyword.d"}]},"special-token-sequence":{patterns:[{match:/#\p{space}*line[^\n]*/dgv,name:"gfm.markup.italic.special-token-sequence.d"}]},"special-tokens":{patterns:[{match:/\b(__DATE__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\b/dgv,name:"gfm.markup.raw.special-tokens.d"}]},statement:{patterns:[{include:"#non-block-statement"},{include:"#semi-colon"}]},"static-assert":{patterns:[{begin:/\bstatic\p{space}+assert\b\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.static-assert.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.static-assert.end.d"}},patterns:[{include:"#expression"}]}]},"static-foreach":{patterns:[{begin:/\b(static\p{space}+foreach)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.static-foreach.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{match:/;/dgv,name:"keyword.operator.semi-colon.d"},{include:"source.d"}]}]}]},"static-foreach-reverse":{patterns:[{begin:/\b(static\p{space}+foreach_reverse)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.static-foreach.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{match:/;/dgv,name:"keyword.operator.semi-colon.d"},{include:"source.d"}]}]}]},"static-if-condition":{patterns:[{begin:/\bstatic\p{space}+if\b\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.control.static-if.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.control.static-if.end.d"}},patterns:[{include:"#comment"},{include:"#expression"}]}]},"storage-class":{patterns:[{match:/\b(deprecated|enum|static|extern|abstract|final|override|synchronized|auto|scope|const|immutable|inout|shared|__gshared|nothrow|pure|ref)\b/dgv,name:"storage.class.d"},{include:"#linkage-attribute"},{include:"#align-attribute"},{include:"#property"}]},"string-literal":{patterns:[{include:"#wysiwyg-string"},{include:"#alternate-wysiwyg-string"},{include:"#hex-string"},{include:"#arbitrary-delimited-string"},{include:"#delimited-string"},{include:"#double-quoted-string"},{include:"#token-string"}]},"struct-declaration":{patterns:[{captures:{"1":{name:"storage.type.struct.d"},"2":{name:"entity.name.type.struct.d"}},match:/\b(struct)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv}]},"switch-statement":{patterns:[{begin:/\b(switch)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.switch.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"synchronized-statement":{patterns:[{begin:/\b(synchronized)\b\p{space}*(?=\()/dgv,captures:{"1":{name:"keyword.control.synchronized.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"template-declaration":{patterns:[{captures:{"1":{name:"storage.type.template.d"},"2":{name:"entity.name.type.template.d"}},match:/\b(template)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv}]},"throw-statement":{patterns:[{match:/\bthrow\b/dgv,name:"keyword.control.throw.d"}]},"token-string":{begin:/q\{/dgv,beginCaptures:{"0":{name:"string.quoted.token.d"}},end:/\}[cdw]?/dgv,endCaptures:{"0":{name:"string.quoted.token.d"}},patterns:[{include:"#token-string-content"}]},"token-string-content":{patterns:[{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#token-string-content"}]},{include:"#comment"},{include:"#tokens"}]},tokens:{patterns:[{include:"#string-literal"},{include:"#character-literal"},{include:"#integer-literal"},{include:"#float-literal"},{include:"#keyword"},{match:/~=|~|>>>|>>=|>>|>=|>|=>|==|=|<>|<=|<<|<|%=|%|#|&=|&&|&|\$|\|=|\|\||\||\+=|\+\+|\+|\^=|\^\^=|\^\^|\^|\*=|\*|\}|\{|\]|\[|\)|\(|\.\.\.|\.\.|\.|\?|!>=|!>|!=|!<>=|!<>|!<=|!<|!|\/=|\/|@|:|;|,|-=|--|-/dgv,name:"meta.lexical.token.symbolic.d"},{include:"#identifier"}]},"traits-argument":{patterns:[{include:"#expression"},{include:"#type"}]},"traits-arguments":{patterns:[{include:"#traits-argument"},{include:"#comma"}]},"traits-expression":{patterns:[{begin:/\b__traits\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.traits.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.traits.end.d"}},patterns:[{include:"#traits-keyword"},{include:"#comma"},{include:"#traits-argument"}]}]},"traits-keyword":{patterns:[{match:/isAbstractClass|isArithmetic|isAssociativeArray|isFinalClass|isPOD|isNested|isFloating|isIntegral|isScalar|isStaticArray|isUnsigned|isVirtualFunction|isVirtualMethod|isAbstractFunction|isFinalFunction|isStaticFunction|isOverrideFunction|isRef|isOut|isLazy|hasMember|identifier|getAliasThis|getAttributes|getMember|getOverloads|getProtection|getVirtualFunctions|getVirtualMethods|getUnitTests|parent|classInstanceSize|getVirtualIndex|allMembers|derivedMembers|isSame|compiles/dgv,name:"support.constant.traits-keyword.d"}]},"try-statement":{patterns:[{match:/\btry\b/dgv,name:"keyword.control.try.d"}]},type:{patterns:[{include:"#typeof"},{include:"#base-type"},{include:"#type-ctor"},{begin:/!\(/dgv,end:/\)/dgv,patterns:[{include:"#type"},{include:"#expression"}]}]},"type-ctor":{patterns:[{match:/(const|immutable|inout|shared)\b/dgv,name:"storage.type.modifier.d"}]},"type-specialization":{patterns:[{match:/\b(struct|union|class|interface|enum|function|delegate|super|const|immutable|inout|shared|return|__parameters)\b/dgv,name:"keyword.other.storage.type-specialization.d"}]},"typeid-expression":{patterns:[{match:/\btypeid\p{space}*(?=\()/dgv,name:"keyword.other.typeid.d"}]},typeof:{begin:/typeof\p{space}*\(/dgv,end:/\)/dgv,name:"keyword.token.typeof.d",patterns:[{match:/return/dgv,name:"keyword.control.return.d"},{include:"#expression"}]},"union-declaration":{patterns:[{captures:{"1":{name:"storage.type.union.d"},"2":{name:"entity.name.type.union.d"}},match:/\b(union)(?:\p{space}+([A-Za-z_][\p{L}\p{M}\p{N}\p{Pc}_\p{Nd}]*))?\b/dgv}]},"user-defined-attribute":{patterns:[{match:/@([_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.tag.user-defined-property.d"},{begin:/@([_\p{L}\p{M}\p{N}\p{Pc}][_\p{Nd}\p{L}\p{M}\p{N}\p{Pc}]*)?\(/dgv,end:/\)/dgv,name:"entity.name.tag.user-defined-property.d",patterns:[{include:"#expression"}]}]},"version-condition":{patterns:[{match:/\bversion\p{space}*\(\p{space}*unittest\p{space}*\)/dgv,name:"keyword.other.version.unittest.d"},{match:/\bversion\p{space}*\(\p{space}*assert\p{space}*\)/dgv,name:"keyword.other.version.assert.d"},{begin:/\bversion\p{space}*\(/dgv,beginCaptures:{"0":{name:"keyword.other.version.identifier.begin.d"}},end:/\)/dgv,endCaptures:{"0":{name:"keyword.other.version.identifer.end.d"}},patterns:[{include:"#integer-literal"},{include:"#identifier"}]},{include:"#version-specification"}]},"version-specification":{patterns:[{match:/\bversion\b\p{space}*(?==)/dgv,name:"keyword.other.version-specification.d"}]},"void-initializer":{patterns:[{match:/\bvoid\b/dgv,name:"support.type.void.d"}]},"while-statement":{patterns:[{begin:/\b(while)\b\p{space}*/dgv,captures:{"1":{name:"keyword.control.while.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"with-statement":{patterns:[{begin:/\b(with)\b\p{space}*(?=\()/dgv,captures:{"1":{name:"keyword.control.with.d"}},end:/(?<=\))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"source.d"}]}]}]},"wysiwyg-characters":{patterns:[{include:"#character"},{include:"#end-of-line"}]},"wysiwyg-string":{patterns:[{begin:/r"/dgv,end:/"[cwd]?/dgv,name:"string.wysiwyg-string.d",patterns:[{include:"#wysiwyg-characters"}]}]}},scopeName:"source.d",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/dart.d.mts
ADDED
package/dist/dart.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Dart",name:"dart",patterns:[{match:/(?<=^|\n(?!$))(#![^\n]*)(?=$|\n)/dgv,name:"meta.preprocessor.script.dart"},{begin:/(?<=^|\n(?!$))[\p{L}\p{M}\p{N}\p{Pc}]*\b(augment\p{space}+library|library|import\p{space}+augment|import|part\p{space}+of|part|export)\b/dgv,beginCaptures:{"0":{name:"keyword.other.import.dart"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.dart"}},name:"meta.declaration.dart",patterns:[{include:"#strings"},{include:"#comments"},{match:/\b(as|show|hide)\b/dgv,name:"keyword.other.import.dart"},{match:/\b(if)\b/dgv,name:"keyword.control.dart"}]},{include:"#comments"},{include:"#punctuation"},{include:"#annotations"},{include:"#keywords"},{include:"#constants-and-special-vars"},{include:"#operators"},{include:"#strings"}],repository:{annotations:{patterns:[{match:/@[a-zA-Z]+/dgv,name:"storage.type.annotation.dart"}]},"class-identifier":{patterns:[{match:/(?<!\$)\b(bool|num|int|double|dynamic)\b(?!\$)/dgv,name:"support.class.dart"},{match:/(?<!\$)\bvoid\b(?!\$)/dgv,name:"storage.type.primitive.dart"},{begin:/(?<![a-zA-Z0-9_\$])([_\$]*[A-Z][a-zA-Z0-9_\$]*)\b/dgv,beginCaptures:{"1":{name:"support.class.dart"}},end:/(?!<)/dgv,patterns:[{include:"#type-args"}]}]},comments:{patterns:[{captures:{"0":{name:"punctuation.definition.comment.dart"}},match:/\/\*\*\//dgv,name:"comment.block.empty.dart"},{include:"#comments-doc-oldschool"},{include:"#comments-doc"},{include:"#comments-inline"}]},"comments-block":{patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.dart",patterns:[{include:"#comments-block"}]}]},"comments-doc":{patterns:[{begin:/\/\/\//dgv,end:/(?<=^|\n(?!$))(?!\p{space}*\/\/\/)/dgv,name:"comment.block.documentation.dart",patterns:[{include:"#dartdoc"}]}]},"comments-doc-oldschool":{patterns:[{begin:/\/\*\*/dgv,end:/\*\//dgv,name:"comment.block.documentation.dart",patterns:[{include:"#comments-doc-oldschool"},{include:"#comments-block"},{include:"#dartdoc"}]}]},"comments-inline":{patterns:[{include:"#comments-block"},{captures:{"1":{name:"comment.line.double-slash.dart"}},match:/((\/\/)[^\n]*)(?=$|\n)/dgv}]},"constants-and-special-vars":{patterns:[{match:/(?<!\$)\b(true|false|null)\b(?!\$)/dgv,name:"constant.language.dart"},{match:/(?<!\$)\b(this|super|augmented)\b(?!\$)/dgv,name:"variable.language.dart"},{match:/(?<!\$)\b((0(x|X)[0-9a-fA-F][0-9a-fA-F_]*)|((\p{Nd}[0-9_]*\.?[0-9_]*)|(\.\p{Nd}[0-9_]*))((e|E)(\+|-)?\p{Nd}[0-9_]*)?)\b(?!\$)/dgv,name:"constant.numeric.dart"},{include:"#class-identifier"},{include:"#function-identifier"}]},dartdoc:{patterns:[{captures:{"0":{name:"variable.name.source.dart"}},match:/(\[[^\n]*?\])/dgv},{begin:/(?<=^|\n(?!$))\p{space}*\/\/\/\p{space}*(```)/dgv,end:/(?<=^|\n(?!$))\p{space}*\/\/\/\p{space}*(```)|(?<=^|\n(?!$))(?!\p{space}*\/\/\/)/dgv,patterns:[{include:"#dartdoc-codeblock-triple"}]},{begin:/(?<=^|\n(?!$))\p{space}*\*\p{space}*(```)/dgv,end:/(?<=^|\n(?!$))\p{space}*\*\p{space}*(```)|(?<=^|\n(?!$))(?=\p{space}*\*\/)/dgv,patterns:[{include:"#dartdoc-codeblock-block"}]},{match:/`[^\`\n]+`/dgv,name:"variable.other.source.dart"},{captures:{"1":{name:"variable.other.source.dart"}},match:/(?:\*|\/\/)\p{space}{4,}([^\n]*?)(?=((?=$|\n)|\*\/))/dgv}]},"dartdoc-codeblock-block":{begin:/(?<=^|\n(?!$))\p{space}*\*\p{space}*(?!(\p{space}*```|\/))/dgv,contentName:"variable.other.source.dart",end:/\n/dgv},"dartdoc-codeblock-triple":{begin:/(?<=^|\n(?!$))\p{space}*\/\/\/\p{space}*(?!\p{space}*```)/dgv,contentName:"variable.other.source.dart",end:/\n/dgv},expression:{patterns:[{include:"#constants-and-special-vars"},{include:"#strings"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.dart"},{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#expression"}]}]},"function-identifier":{patterns:[{captures:{"1":{name:"entity.name.function.dart"},"2":{patterns:[{include:"#type-args"}]}},match:/([_\$]*[a-z][a-zA-Z0-9_\$]*)(<(?:[a-zA-Z0-9_\$\<\>\?]|,\p{space}*|\p{space}+extends\p{space}+)+>)?[\!\?]?\(/dgv}]},keywords:{patterns:[{match:/(?<!\$)\bas\b(?!\$)/dgv,name:"keyword.cast.dart"},{match:/(?<!\$)\b(try|on|catch|finally|throw|rethrow)\b(?!\$)/dgv,name:"keyword.control.catch-exception.dart"},{match:/(?<!\$)\b(break|case|continue|default|do|else|for|if|in|switch|while|when)\b(?!\$)/dgv,name:"keyword.control.dart"},{match:/(?<!\$)\b(sync(\*)?|async(\*)?|await|yield(\*)?)\b(?!\$)/dgv,name:"keyword.control.dart"},{match:/(?<!\$)\bassert\b(?!\$)/dgv,name:"keyword.control.dart"},{match:/(?<!\$)\b(new)\b(?!\$)/dgv,name:"keyword.control.new.dart"},{match:/(?<!\$)\b(return)\b(?!\$)/dgv,name:"keyword.control.return.dart"},{match:/(?<!\$)\b(abstract|sealed|base|interface|class|enum|extends|extension\p{space}+type|extension|external|factory|implements|get(?![\(\<])|mixin|native|operator|set(?![\(\<])|typedef|with|covariant)\b(?!\$)/dgv,name:"keyword.declaration.dart"},{match:/(?<!\$)\b(macro|augment|static|final|const|required|late)\b(?!\$)/dgv,name:"storage.modifier.dart"},{match:/(?<!\$)\b(?:void|var)\b(?!\$)/dgv,name:"storage.type.primitive.dart"}]},operators:{patterns:[{match:/(?<!\$)\b(is!?)\b(?!\$)/dgv,name:"keyword.operator.dart"},{match:/\?|:/dgv,name:"keyword.operator.ternary.dart"},{match:/(<<|>>>?|~|\^|\||&)/dgv,name:"keyword.operator.bitwise.dart"},{match:/((&|\^|\||<<|>>>?)=)/dgv,name:"keyword.operator.assignment.bitwise.dart"},{match:/(=>)/dgv,name:"keyword.operator.closure.dart"},{match:/(==|!=|<=?|>=?)/dgv,name:"keyword.operator.comparison.dart"},{match:/(([\+\*\/\%\-]|~)=)/dgv,name:"keyword.operator.assignment.arithmetic.dart"},{match:/(=)/dgv,name:"keyword.operator.assignment.dart"},{match:/(--|\+\+)/dgv,name:"keyword.operator.increment-decrement.dart"},{match:/(-|\+|\*|\/|~\/|%)/dgv,name:"keyword.operator.arithmetic.dart"},{match:/(!|&&|\|\|)/dgv,name:"keyword.operator.logical.dart"}]},punctuation:{patterns:[{match:/,/dgv,name:"punctuation.comma.dart"},{match:/;/dgv,name:"punctuation.terminator.dart"},{match:/\./dgv,name:"punctuation.dot.dart"}]},"string-interp":{patterns:[{captures:{"1":{name:"variable.parameter.dart"}},match:/\$([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.embedded.expression.dart"},{begin:/\$\{/dgv,end:/\}/dgv,name:"meta.embedded.expression.dart",patterns:[{include:"#expression"}]},{match:/\\[^\n]/dgv,name:"constant.character.escape.dart"}]},strings:{patterns:[{begin:/(?<!r)"""/dgv,end:/"""(?!")/dgv,name:"string.interpolated.triple.double.dart",patterns:[{include:"#string-interp"}]},{begin:/(?<!r)'''/dgv,end:/'''(?!')/dgv,name:"string.interpolated.triple.single.dart",patterns:[{include:"#string-interp"}]},{begin:/r"""/dgv,end:/"""(?!")/dgv,name:"string.quoted.triple.double.dart"},{begin:/r'''/dgv,end:/'''(?!')/dgv,name:"string.quoted.triple.single.dart"},{begin:/(?<!\|r)"/dgv,end:/"/dgv,name:"string.interpolated.double.dart",patterns:[{match:/\n/dgv,name:"invalid.string.newline"},{include:"#string-interp"}]},{begin:/r"/dgv,end:/"/dgv,name:"string.quoted.double.dart",patterns:[{match:/\n/dgv,name:"invalid.string.newline"}]},{begin:/(?<!\|r)'/dgv,end:/'/dgv,name:"string.interpolated.single.dart",patterns:[{match:/\n/dgv,name:"invalid.string.newline"},{include:"#string-interp"}]},{begin:/r'/dgv,end:/'/dgv,name:"string.quoted.single.dart",patterns:[{match:/\n/dgv,name:"invalid.string.newline"}]}]},"type-args":{begin:/(<)/dgv,beginCaptures:{"1":{name:"other.source.dart"}},end:/(>)/dgv,endCaptures:{"1":{name:"other.source.dart"}},patterns:[{include:"#class-identifier"},{match:/,/dgv},{match:/extends/dgv,name:"keyword.declaration.dart"},{include:"#comments"}]}},scopeName:"source.dart",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/dax.d.mts
ADDED