@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/ruby.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import html from './html.mjs'
|
|
3
|
+
import haml from './haml.mjs'
|
|
4
|
+
import xml from './xml.mjs'
|
|
5
|
+
import sql from './sql.mjs'
|
|
6
|
+
import graphql from './graphql.mjs'
|
|
7
|
+
import css from './css.mjs'
|
|
8
|
+
import cpp from './cpp.mjs'
|
|
9
|
+
import c from './c.mjs'
|
|
10
|
+
import javascript from './javascript.mjs'
|
|
11
|
+
import shellscript from './shellscript.mjs'
|
|
12
|
+
import lua from './lua.mjs'
|
|
13
|
+
import yaml from './yaml.mjs'
|
|
14
|
+
|
|
15
|
+
const lang = Object.freeze({displayName:"Ruby",name:"ruby",patterns:[{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"entity.name.type.class.ruby"},"5":{name:"punctuation.separator.namespace.ruby"},"7":{name:"punctuation.separator.inheritance.ruby"},"8":{name:"entity.other.inherited-class.ruby"},"11":{name:"punctuation.separator.namespace.ruby"}},comment:"class Namespace::ClassName < OtherNamespace::OtherClassName",match:/\x08(class)\p{space}+(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*)\p{space}*((<)\p{space}*(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*))?/dgv,name:"meta.class.ruby"},{captures:{"1":{name:"keyword.control.module.ruby"},"2":{name:"entity.name.type.module.ruby"},"5":{name:"punctuation.separator.namespace.ruby"}},match:/\x08(module)\p{space}+(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*)/dgv,name:"meta.module.ruby"},{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"punctuation.separator.inheritance.ruby"}},match:/\x08(class)\p{space}*(<<)\p{space}*/dgv,name:"meta.class.ruby"},{comment:"else if is a common mistake carried over from other languages. it works if you put in a second end, but it’s never what you want.",match:/(?<!\.)\belse(\p{space})+if\b/dgv,name:"invalid.deprecated.ruby"},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment (+=, -=, *=, /=)",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"variable.ruby"}},comment:"A local variable assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"}},comment:"A local variable assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"punctuation.definition.constant.hashkey.ruby"}},comment:"symbols as hash key (1.9 syntax)",match:new EmulatedRegExp("(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols as hash key (1.8 syntax)",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\3)?))\\2)(?=\\p{space}*=>)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{comment:"everything being a reserved word, not a value and needing a 'end' is a..",match:/(?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![\?\!])/dgv,name:"keyword.control.ruby"},{comment:"contextual smart pair support for block parameters",match:/(?<!\.)\bdo\b/dgv,name:"keyword.control.start-block.ruby"},{comment:"contextual smart pair support",match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.ruby.start-block"},{match:/(?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![\?\!])|\bdefined\?|\b(block_given|iterator)\?/dgv,name:"keyword.control.pseudo-method.ruby"},{match:/\bnil\b(?![\?\!])/dgv,name:"constant.language.nil.ruby"},{match:/\b(true|false)\b(?![\?\!])/dgv,name:"constant.language.boolean.ruby"},{match:/\b(__(FILE|LINE)__)\b(?![\?\!])/dgv,name:"variable.language.ruby"},{match:/\bself\b(?![\?\!])/dgv,name:"variable.language.self.ruby"},{comment:" everything being a method but having a special function is a..",match:/\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\b(?![\?\!])/dgv,name:"keyword.other.special-method.ruby"},{begin:/\b(?<!\.|::)(require|require_relative)\b(?![\?\!])/dgv,captures:{"1":{name:"keyword.other.special-method.ruby"}},end:/(?=$|\n)|(?=#|\})/dgv,name:"meta.require.ruby",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)(!|@|&|`|'|\+|\p{Nd}+|~|=|\/|\\|,|;|\.|<|>|_|\*|\$|\?|:|"|-[0adFiIlpv])/dgv,name:"variable.other.readwrite.global.pre-defined.ruby"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.ruby"}},end:/\]/dgv,name:"meta.environment-variable.ruby",patterns:[{include:"$self"}]},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=((\.|::)[A-Za-z]|\[))/dgv,name:"support.class.ruby"},{match:/\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|print|printf|proc|putc|puts|rand|readline|readlines|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\b(?![\?\!])|autoload\?|exit!)/dgv,name:"support.function.kernel.ruby"},{match:/\b[_A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.constant.ruby"},{begin:/(->)\(/dgv,beginCaptures:{"1":{name:"support.function.kernel.ruby"}},comment:"Lambda parameters.",end:/\)/dgv,patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{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.ruby"},"2":{name:"entity.name.function.ruby"},"3":{name:"punctuation.definition.parameters.ruby"}},comment:"The method pattern comes from the symbol pattern. See there for an explanation.",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.ruby"}},name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{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))[ \\t](?=[ \\t]*[^\\p{space}\\#\\;])","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"}},comment:"same as the previous rule, but without parentheses around the arguments",end:/(?=;)|(?<=[\p{L}\p{M}\p{N}\p{Pc}\]\)\}\`'"\!\?])(?=\p{space}*#|\p{space}*(?=$|\n))/dgv,name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=,|;|\p{space}*#|\p{space}*(?=$|\n))/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{captures:{"1":{name:"keyword.control.def.ruby"},"3":{name:"entity.name.function.ruby"}},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.ruby"},{match:new EmulatedRegExp("\\b([\\p{Nd}](?:(?=($E$_?\\p{Nd}))\\2)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=($E$_?\\p{Nd}))\\4)*)?([eE][\\-\\+]?\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\6)*)?|0(?:[xX]\\p{AHex}(?:(?=($E$_?\\p{AHex}))\\7)*|[oO]?[0-7](?:(?=($E$_?[0-7]))\\8)*|[bB][01](?:(?=($E$_?[01]))\\9)*|[dD]\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\10)*))\\b","dgv",{"useEmulationGroups":true}),name:"constant.numeric.ruby"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},comment:"symbol literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.ruby"}},comment:"symbol literal with \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{comment:"Needs higher precedence than regular expressions.",match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.ruby"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.single.ruby",patterns:[{match:/\\'|\\\\/dgv,name:"constant.character.escape.ruby"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with interpolation and \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.double.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<!\.)`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"execute string (allows for interpolation)",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\)])((/))(?![\\?\\*\\+])(?=(?:(?=($E$(?:\\\\/|[^\\/])*))\\3)/[eimnosux]*\\p{space}*(?:[\\)\\]\\}\\#\\.\\,\\?\\:]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|(?=$|\\n)|if|else|elsif|then|do|end|unless|while|until|or|and)|(?=$|\\n))","dgv",{"useEmulationGroups":true}),captures:{"1":{name:"string.regexp.interpolated.ruby"},"2":{name:"punctuation.section.regexp.ruby"}},comment:"regular expression literal with interpolation",contentName:"string.regexp.interpolated.ruby",end:/((\/[eimnosux]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\}[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\][eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\)[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/>[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\1[eimnosux]*()/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"}]},{begin:/%I\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%I\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%I</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%I\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%I([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%i\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%i\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%i</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%i\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%i([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%W\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%W\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%W</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%W\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%W([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%w\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%w\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%w</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%w\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%w([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%[Qx]?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%[Qx]?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%[Qx]?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%[Qx]?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%[Qx]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%([^\p{L}\p{M}\p{N}\p{Pc}\p{space}\=])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%q\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%q</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%q\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%q\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%q([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%s\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%s</dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%s\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%s\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%s([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[\\$a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?![\\>\\=])))\\3)?|===?|<=>|>[\\>\\=]?|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?|@@?[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.ruby"},{begin:/(?<=^|\n(?!$))=begin/dgv,captures:{"0":{name:"punctuation.definition.comment.ruby"}},comment:"multiline comments",end:/(?<=^|\n(?!$))=end/dgv,name:"comment.block.documentation.ruby"},{include:"#yard"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ruby"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/\n/dgv,name:"comment.line.number-sign.ruby"}]},{comment:"\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2nd alternation = octal):\n\t\t\t?\\0 ?\\07 ?\\017\n\n\t\t\texamples (3rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (4th alternation = meta-ctrl):\n\t\t\t?\\C-a ?\\M-a ?\\C-\\M-\\C-\\M-a\n\n\t\t\texamples (4th alternation = normal):\n\t\t\t?a ?A ?0 \n\t\t\t?* ?\" ?( \n\t\t\t?. ?#\n\t\t\t\n\t\t\t\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x\p{AHex}{1,2}(?!\p{AHex})\b|0[0-7]{0,2}(?![0-7])\b|[^x0MC])|(\\[MC]-)+[\p{L}\p{M}\p{N}\p{Pc}]|[^\p{space}\\])/dgv,name:"constant.numeric.ruby"},{begin:/(?<=^|\n(?!$))__END__\n/dgv,captures:{"0":{name:"string.unquoted.program-block.ruby"}},comment:"__END__ marker",contentName:"text.plain",end:/(?=not)impossible/dgv,patterns:[{begin:/(?=<?xml|<[Hh][Tt][Mm][Ll]\b|!DOCTYPE [Hh][Tt][Mm][Ll]\b)/dgv,end:/(?=not)impossible/dgv,name:"text.html.embedded.ruby",patterns:[{include:"text.html.basic"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HTML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.html",patterns:[{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.ruby"}},contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.html.basic"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.haml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.haml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.haml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded XML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.xml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.xml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded SQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.sql",patterns:[{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.ruby"}},contentName:"source.sql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.sql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded GraphQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.graphql",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.graphql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.graphql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded CSS",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.css",patterns:[{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.ruby"}},contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.css"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C++",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.cpp",patterns:[{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.ruby"}},contentName:"source.cpp",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.cpp"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.c",patterns:[{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.ruby"}},contentName:"source.c",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.c"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js",patterns:[{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.ruby"}},contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded jQuery Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js.jquery",patterns:[{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.ruby"}},contentName:"source.js.jquery",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js.jquery"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Shell",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.shell",patterns:[{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.ruby"}},contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.shell"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Lua",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.lua",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.lua"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Ruby",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.ruby",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.ruby"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded YAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.yaml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.yaml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Slim",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.slim",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.slim",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.slim"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?:(?=($E$=\\p{space}*<<([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/(?<=^|\n(?!$))\2(?=$|\n)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$((<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\4,\\p{space}?)*<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\6)))\\1)([^\\n]*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.string.begin.ruby"},"7":{patterns:[{include:"source.ruby"}]}},comment:"heredoc with multiple inputs and indented terminator",end:/(?<=^|\n(?!$))\p{space}*\6(?=$|\n)()()()()()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{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.ruby"}},end:/(?<!\|)(\|)(?!\|)/dgv,name:"meta.block.parameters.ruby",patterns:[{begin:/(?![\p{space}\,\|\(])/dgv,end:/(?=,|\|\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"variable.other.block.ruby"},"3":{name:"variable.other.block.unused.ruby variable.other.constant.ruby"}},match:/([\&\*]?)([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}_]*)|(_[\p{L}\p{M}\p{N}\p{Pc}_]*)/dgv}]},{match:/,/dgv,name:"punctuation.separator.variable.ruby"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.ruby"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.ruby"},{match:/<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?/dgv,name:"keyword.operator.comparison.ruby"},{match:/(?<!\.)\b(and|not|or)\b(?![\?\!])/dgv,name:"keyword.operator.logical.ruby"},{match:/(?<=(?<=^|\n(?!$))|[ \t\!])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.ruby"},{captures:{"1":{name:"keyword.operator.logical.ruby"}},comment:"Safe navigation operator",match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/(%|&|\*\*|\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.ruby"},{match:/=/dgv,name:"keyword.operator.assignment.ruby"},{match:/\||~|>>/dgv,name:"keyword.operator.other.ruby"},{match:/;/dgv,name:"punctuation.separator.statement.ruby"},{match:/,/dgv,name:"punctuation.separator.object.ruby"},{captures:{"1":{name:"punctuation.separator.namespace.ruby"}},comment:"Mark as namespace separator if double colons followed by capital letter",match:/(::)\p{space}*(?=[A-Z])/dgv},{captures:{"1":{name:"punctuation.separator.method.ruby"}},comment:"Mark as method separator if double colons not followed by capital letter",match:/(\.|::)\p{space}*(?![A-Z])/dgv},{comment:"Must come after method and constant separators to prefer double colons",match:/:/dgv,name:"punctuation.separator.other.ruby"},{match:/\{/dgv,name:"punctuation.section.scope.begin.ruby"},{match:/\}/dgv,name:"punctuation.section.scope.end.ruby"},{match:/\[/dgv,name:"punctuation.section.array.begin.ruby"},{match:/\]/dgv,name:"punctuation.section.array.end.ruby"},{match:/\(|\)/dgv,name:"punctuation.section.function.ruby"},{begin:/(?<=[^\.]\.|::)(?=[a-zA-Z][a-zA-Z0-9_\!\?]*[^a-zA-Z0-9_\!\?])/dgv,end:/(?<=[a-zA-Z0-9_\!\?])(?=[^a-zA-Z0-9_\!\?])/dgv,name:"meta.function-call.ruby",patterns:[{match:/([a-zA-Z][a-zA-Z0-9_\!\?]*)(?=[^a-zA-Z0-9_\!\?])/dgv,name:"entity.name.function.ruby"}]},{begin:/([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ruby"},"2":{name:"punctuation.section.function.ruby"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.ruby"}},name:"meta.function-call.ruby",patterns:[{include:"$self"}]}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x[\p{Nd}a-fA-F]{1,2}|[^\n])/dgv,name:"constant.character.escape.ruby"},heredoc:{begin:/(?<=^|\n(?!$))<<[\-\~]?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=$|\n)/dgv,patterns:[{include:"$self"}]},interpolated_ruby:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.ruby"}},contentName:"source.ruby",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.ruby"}},name:"meta.embedded.line.ruby",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"}]},method_parameters:{patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"#params"},{include:"$self"}],repository:{braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},params:{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{name:"punctuation.definition.constant.ruby"},"4":{name:"variable.parameter.function.ruby"}},match:/(&|\*\*?)?(?:([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\?\!]?(:))|([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.function.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]}}},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.ruby"},"3":{name:"punctuation.definition.arbitrary-repetition.ruby"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.ruby"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.ruby"}},end:/\]/dgv,name:"string.regexp.character-class.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(\?#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.ruby"}},name:"comment.line.number-sign.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.ruby"}},end:/\)/dgv,name:"string.regexp.group.ruby",patterns:[{include:"#regex_sub"}]},{begin:/(?<=(?<=^|\n(?!$))|\p{space})(#)\p{space}(?=[a-zA-Z0-9\,\. \t\?\!\-[^\x00-\x7F]]*(?=$|\n))/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.ruby"}},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.",end:/(?=$|\n)\n?/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},name:"comment.line.number-sign.ruby"}]},yard:{patterns:[{include:"#yard_comment"},{include:"#yard_param_types"},{include:"#yard_option"},{include:"#yard_tag"},{include:"#yard_types"},{include:"#yard_directive"},{include:"#yard_see"},{include:"#yard_macro_attribute"}]},yard_comment:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that follow the tag-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_continuation:{match:/(?<=^|\n(?!$))\p{space}*#/dgv,name:"punctuation.definition.comment.ruby"},yard_directive:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(endgroup|group|method|parse|scope|visibility)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD directives",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_macro_attribute:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(attribute|macro)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})(\p{space}+([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*:?))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"11":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for attribute and macro tags because name goes after []",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_option:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(option)(?=\\p{space})(?:(?=($E$\\p{space}+([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\6)?(?:(?=($E$\\p{space}+((\\[)[^\\n]+(\\]))))\\8)?(?:(?=($E$\\p{space}+((\\P{space}*))))\\12)?(?:(?=($E$\\p{space}+((\\()[^\\n]+(\\)))))\\15)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.keyword.yard.ruby"},"11":{name:"comment.line.hashkey.yard.ruby"},"12":{name:"comment.line.defaultvalue.yard.ruby"},"13":{name:"comment.line.punctuation.yard.ruby"},"14":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD option tag that follow the tag-name-types-key-(value)-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_param_types:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\p{space})(?:(?=($E$\\p{space}+(?:(?=($E$([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)|((\\[)[^\\n]+(\\]))))\\7)))\\6)?(?:(?=($E$\\p{space}+(?:(?=($E$((\\[)[^\\n]+(\\]))|([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\13)))\\12)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.type.yard.ruby"},"11":{name:"comment.line.punctuation.yard.ruby"},"12":{name:"comment.line.punctuation.yard.ruby"},"13":{name:"comment.line.parameter.yard.ruby"}},comment:"For YARD tags that follow the tag-name-types-description or tag-types-name-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_see:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(see)(?=\p{space})(\p{space}+([^\n]+?))?(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for @see because name could contain url",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_tag:{captures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that are just the tag",match:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(private)(?=$|\n)/dgv,name:"comment.line.number-sign.ruby"},yard_types:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(raise|return|yield(?:return)?)(?=\p{space})(\p{space}+((\[)[^\n]+(\])))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD tags that follow the tag-types-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]}},scopeName:"source.ruby",embeddedLangs:["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],aliases:["rb"]})
|
|
16
|
+
|
|
17
|
+
export default [
|
|
18
|
+
...html,
|
|
19
|
+
...haml,
|
|
20
|
+
...xml,
|
|
21
|
+
...sql,
|
|
22
|
+
...graphql,
|
|
23
|
+
...css,
|
|
24
|
+
...cpp,
|
|
25
|
+
...c,
|
|
26
|
+
...javascript,
|
|
27
|
+
...shellscript,
|
|
28
|
+
...lua,
|
|
29
|
+
...yaml,
|
|
30
|
+
lang
|
|
31
|
+
]
|
package/dist/rust.d.mts
ADDED
package/dist/rust.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Rust",name:"rust",patterns:[{begin:/(<)(\[)/dgv,beginCaptures:{"1":{name:"punctuation.brackets.angle.rust"},"2":{name:"punctuation.brackets.square.rust"}},comment:"boxed slice literal",end:/>/dgv,endCaptures:{"0":{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#gtypes"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"}]},{captures:{"1":{name:"keyword.operator.macro.dollar.rust"},"3":{name:"keyword.other.crate.rust"},"4":{name:"entity.name.type.metavariable.rust"},"6":{name:"keyword.operator.key-value.rust"},"7":{name:"variable.other.metavariable.specifier.rust"}},comment:"macro type metavariables",match:/(\$)((crate)|([A-Z][A-Za-z0-9_]*))((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?/dgv,name:"meta.macro.metavariable.type.rust",patterns:[{include:"#keywords"}]},{captures:{"1":{name:"keyword.operator.macro.dollar.rust"},"2":{name:"variable.other.metavariable.name.rust"},"4":{name:"keyword.operator.key-value.rust"},"5":{name:"variable.other.metavariable.specifier.rust"}},comment:"macro metavariables",match:/(\$)([a-z][A-Za-z0-9_]*)((:)(block|expr|ident|item|lifetime|literal|meta|path?|stmt|tt|ty|vis))?/dgv,name:"meta.macro.metavariable.rust",patterns:[{include:"#keywords"}]},{captures:{"1":{name:"entity.name.function.macro.rules.rust"},"3":{name:"entity.name.function.macro.rust"},"4":{name:"entity.name.type.macro.rust"},"5":{name:"punctuation.brackets.curly.rust"}},comment:"macro rules",match:/\b(macro_rules!)\p{space}+(([a-z0-9_]+)|([A-Z][a-z0-9_]*))\p{space}+(\{)/dgv,name:"meta.macro.rules.rust"},{captures:{"1":{name:"storage.type.rust"},"2":{name:"entity.name.module.rust"}},comment:"modules",match:/(mod)\p{space}+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)/dgv},{begin:/\b(extern)\p{space}+(crate)/dgv,beginCaptures:{"1":{name:"storage.type.rust"},"2":{name:"keyword.other.crate.rust"}},comment:"external crate imports",end:/;/dgv,endCaptures:{"0":{name:"punctuation.semi.rust"}},name:"meta.import.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#punctuation"}]},{begin:/\b(use)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.other.rust"}},comment:"use statements",end:/;/dgv,endCaptures:{"0":{name:"punctuation.semi.rust"}},name:"meta.use.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#namespaces"},{include:"#punctuation"},{include:"#types"},{include:"#lvariables"}]},{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#types"},{include:"#keywords"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#variables"}],repository:{attributes:{begin:/(#)(!?)(\[)/dgv,beginCaptures:{"1":{name:"punctuation.definition.attribute.rust"},"3":{name:"punctuation.brackets.attribute.rust"}},comment:"attributes",end:/\]/dgv,endCaptures:{"0":{name:"punctuation.brackets.attribute.rust"}},name:"meta.attribute.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#strings"},{include:"#gtypes"},{include:"#types"}]},"block-comments":{patterns:[{comment:"empty block comments",match:/\/\*\*\//dgv,name:"comment.block.rust"},{begin:/\/\*\*/dgv,comment:"block documentation comments",end:/\*\//dgv,name:"comment.block.documentation.rust",patterns:[{include:"#block-comments"}]},{begin:/\/\*(?!\*)/dgv,comment:"block comments",end:/\*\//dgv,name:"comment.block.rust",patterns:[{include:"#block-comments"}]}]},comments:{patterns:[{captures:{"1":{name:"punctuation.definition.comment.rust"}},comment:"documentation comments",match:/(\/\/\/)[^\n]*(?=$|\n)/dgv,name:"comment.line.documentation.rust"},{captures:{"1":{name:"punctuation.definition.comment.rust"}},comment:"line comments",match:/(\/\/)[^\n]*(?=$|\n)/dgv,name:"comment.line.double-slash.rust"}]},constants:{patterns:[{comment:"ALL CAPS constants",match:/\b[A-Z]{2}[A-Z0-9_]*\b/dgv,name:"constant.other.caps.rust"},{captures:{"1":{name:"storage.type.rust"},"2":{name:"constant.other.caps.rust"}},comment:"constant declarations",match:/\b(const)\p{space}+([A-Z][A-Za-z0-9_]*)\b/dgv},{captures:{"1":{name:"punctuation.separator.dot.decimal.rust"},"2":{name:"keyword.operator.exponent.rust"},"3":{name:"keyword.operator.exponent.sign.rust"},"4":{name:"constant.numeric.decimal.exponent.mantissa.rust"},"5":{name:"entity.name.type.numeric.rust"}},comment:"decimal integers and floats",match:/\b\p{Nd}[\p{Nd}_]*(\.?)[\p{Nd}_]*(?:(E|e)([\+\-]?)([\p{Nd}_]+))?(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\b/dgv,name:"constant.numeric.decimal.rust"},{captures:{"1":{name:"entity.name.type.numeric.rust"}},comment:"hexadecimal integers",match:/\b0x[\p{Nd}a-fA-F_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\b/dgv,name:"constant.numeric.hex.rust"},{captures:{"1":{name:"entity.name.type.numeric.rust"}},comment:"octal integers",match:/\b0o[0-7_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\b/dgv,name:"constant.numeric.oct.rust"},{captures:{"1":{name:"entity.name.type.numeric.rust"}},comment:"binary integers",match:/\b0b[01_]+(i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)?\b/dgv,name:"constant.numeric.bin.rust"},{comment:"booleans",match:/\b(true|false)\b/dgv,name:"constant.language.bool.rust"}]},escapes:{captures:{"1":{name:"constant.character.escape.backslash.rust"},"2":{name:"constant.character.escape.bit.rust"},"3":{name:"constant.character.escape.unicode.rust"},"4":{name:"constant.character.escape.unicode.punctuation.rust"},"5":{name:"constant.character.escape.unicode.punctuation.rust"}},comment:"escapes: ASCII, byte, Unicode, quote, regex",match:/(\\)(?:(x[0-7][\p{Nd}a-fA-F])|(u(\{)[\p{Nd}a-fA-F]{4,6}(\}))|[^\n])/dgv,name:"constant.character.escape.rust"},functions:{patterns:[{captures:{"1":{name:"keyword.other.rust"},"2":{name:"punctuation.brackets.round.rust"}},comment:"pub as a function",match:/\b(pub)(\()/dgv},{begin:/\b(fn)\p{space}+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\()|(<))/dgv,beginCaptures:{"1":{name:"keyword.other.fn.rust"},"2":{name:"entity.name.function.rust"},"4":{name:"punctuation.brackets.round.rust"},"5":{name:"punctuation.brackets.angle.rust"}},comment:"function definition",end:/(\{)|(;)/dgv,endCaptures:{"1":{name:"punctuation.brackets.curly.rust"},"2":{name:"punctuation.semi.rust"}},name:"meta.function.definition.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:/((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.rust"},"2":{name:"punctuation.brackets.round.rust"}},comment:"function/method calls, chaining",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]},{begin:/((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)(?=::<[^\n]*>\()/dgv,beginCaptures:{"1":{name:"entity.name.function.rust"}},comment:"function/method calls with turbofish",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.brackets.round.rust"}},name:"meta.function.call.rust",patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#attributes"},{include:"#keywords"},{include:"#lvariables"},{include:"#constants"},{include:"#gtypes"},{include:"#functions"},{include:"#lifetimes"},{include:"#macros"},{include:"#namespaces"},{include:"#punctuation"},{include:"#strings"},{include:"#types"},{include:"#variables"}]}]},gtypes:{patterns:[{comment:"option types",match:/\b(Some|None)\b/dgv,name:"entity.name.type.option.rust"},{comment:"result types",match:/\b(Ok|Err)\b/dgv,name:"entity.name.type.result.rust"}]},interpolations:{captures:{"1":{name:"punctuation.definition.interpolation.rust"},"2":{name:"punctuation.definition.interpolation.rust"}},comment:"curly brace interpolations",match:/(\{)[^"\{\}]*(\})/dgv,name:"meta.interpolation.rust"},keywords:{patterns:[{comment:"control flow keywords",match:/\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\b/dgv,name:"keyword.control.rust"},{comment:"storage keywords",match:/\b(extern|let|macro|mod)\b/dgv,name:"keyword.other.rust storage.type.rust"},{comment:"const keyword",match:/\b(const)\b/dgv,name:"storage.modifier.rust"},{comment:"type keyword",match:/\b(type)\b/dgv,name:"keyword.declaration.type.rust storage.type.rust"},{comment:"enum keyword",match:/\b(enum)\b/dgv,name:"keyword.declaration.enum.rust storage.type.rust"},{comment:"trait keyword",match:/\b(trait)\b/dgv,name:"keyword.declaration.trait.rust storage.type.rust"},{comment:"struct keyword",match:/\b(struct)\b/dgv,name:"keyword.declaration.struct.rust storage.type.rust"},{comment:"storage modifiers",match:/\b(abstract|static)\b/dgv,name:"storage.modifier.rust"},{comment:"other keywords",match:/\b(as|async|become|box|dyn|move|final|gen|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\b/dgv,name:"keyword.other.rust"},{comment:"fn",match:/\bfn\b/dgv,name:"keyword.other.fn.rust"},{comment:"crate",match:/\bcrate\b/dgv,name:"keyword.other.crate.rust"},{comment:"mut",match:/\bmut\b/dgv,name:"storage.modifier.mut.rust"},{comment:"logical operators",match:/(\^|\||\|\||&&|<<|>>|!)(?!=)/dgv,name:"keyword.operator.logical.rust"},{comment:"logical AND, borrow references",match:/&(?![\&\=])/dgv,name:"keyword.operator.borrow.and.rust"},{comment:"assignment operators",match:/(\+=|-=|\*=|\/=|%=|\^=|&=|\|=|<<=|>>=)/dgv,name:"keyword.operator.assignment.rust"},{comment:"single equal",match:/(?<![\<\>])=(?!=|>)/dgv,name:"keyword.operator.assignment.equal.rust"},{comment:"comparison operators",match:/(=(=)?(?!>)|!=|<=|(?<!=)>=)/dgv,name:"keyword.operator.comparison.rust"},{comment:"math operators",match:/(([\+\%]|(\*(?![\p{L}\p{M}\p{N}\p{Pc}])))(?!=))|(-(?!>))|(\/(?!\/))/dgv,name:"keyword.operator.math.rust"},{captures:{"1":{name:"punctuation.brackets.round.rust"},"2":{name:"punctuation.brackets.square.rust"},"3":{name:"punctuation.brackets.curly.rust"},"4":{name:"keyword.operator.comparison.rust"},"5":{name:"punctuation.brackets.round.rust"},"6":{name:"punctuation.brackets.square.rust"},"7":{name:"punctuation.brackets.curly.rust"}},comment:"less than, greater than (special case)",match:/(?:\b|(?:(\))|(\])|(\})))[ \t]+([\<\>])[ \t]+(?:\b|(?:(\()|(\[)|(\{)))/dgv},{comment:"namespace operator",match:/::/dgv,name:"keyword.operator.namespace.rust"},{captures:{"1":{name:"keyword.operator.dereference.rust"}},comment:"dereference asterisk",match:/(\*)(?=[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv},{comment:"subpattern binding",match:/@/dgv,name:"keyword.operator.subpattern.rust"},{comment:"dot access",match:/\.(?!\.)/dgv,name:"keyword.operator.access.dot.rust"},{comment:"ranges, range patterns",match:/\.{2}(=|\.)?/dgv,name:"keyword.operator.range.rust"},{comment:"colon",match:/:(?!:)/dgv,name:"keyword.operator.key-value.rust"},{comment:"dashrocket, skinny arrow",match:/->|<-/dgv,name:"keyword.operator.arrow.skinny.rust"},{comment:"hashrocket, fat arrow",match:/=>/dgv,name:"keyword.operator.arrow.fat.rust"},{comment:"dollar macros",match:/\$/dgv,name:"keyword.operator.macro.dollar.rust"},{comment:"question mark operator, questionably sized, macro kleene matcher",match:/\?/dgv,name:"keyword.operator.question.rust"}]},lifetimes:{patterns:[{captures:{"1":{name:"punctuation.definition.lifetime.rust"},"2":{name:"entity.name.type.lifetime.rust"}},comment:"named lifetime parameters",match:/(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\b/dgv},{captures:{"1":{name:"keyword.operator.borrow.rust"},"2":{name:"punctuation.definition.lifetime.rust"},"3":{name:"entity.name.type.lifetime.rust"}},comment:"borrowing references to named lifetimes",match:/(&)(['])([a-zA-Z_][0-9a-zA-Z_]*)(?!['])\b/dgv}]},lvariables:{patterns:[{comment:"self",match:/\b[Ss]elf\b/dgv,name:"variable.language.self.rust"},{comment:"super",match:/\bsuper\b/dgv,name:"variable.language.super.rust"}]},macros:{patterns:[{captures:{"2":{name:"entity.name.function.macro.rust"},"3":{name:"entity.name.type.macro.rust"}},comment:"macros",match:/(([a-z_][A-Za-z0-9_]*!)|([A-Z_][A-Za-z0-9_]*!))/dgv,name:"meta.macro.rust"}]},namespaces:{patterns:[{captures:{"1":{name:"entity.name.namespace.rust"},"2":{name:"keyword.operator.namespace.rust"}},comment:"namespace (non-type, non-function path segment)",match:/(?<![A-Za-z0-9_])([A-Za-z0-9_]+)((?<!super|self)::)/dgv}]},punctuation:{patterns:[{comment:"comma",match:/,/dgv,name:"punctuation.comma.rust"},{comment:"curly braces",match:/[\{\}]/dgv,name:"punctuation.brackets.curly.rust"},{comment:"parentheses, round brackets",match:/[\(\)]/dgv,name:"punctuation.brackets.round.rust"},{comment:"semicolon",match:/;/dgv,name:"punctuation.semi.rust"},{comment:"square brackets",match:/[\[\]]/dgv,name:"punctuation.brackets.square.rust"},{comment:"angle brackets",match:/(?<!=)[\<\>]/dgv,name:"punctuation.brackets.angle.rust"}]},strings:{patterns:[{begin:/(b?)(")/dgv,beginCaptures:{"1":{name:"string.quoted.byte.raw.rust"},"2":{name:"punctuation.definition.string.rust"}},comment:"double-quoted strings and byte strings",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.rust"}},name:"string.quoted.double.rust",patterns:[{include:"#escapes"},{include:"#interpolations"}]},{begin:/(b?r)(#*)(")/dgv,beginCaptures:{"1":{name:"string.quoted.byte.raw.rust"},"2":{name:"punctuation.definition.string.raw.rust"},"3":{name:"punctuation.definition.string.rust"}},comment:"double-quoted raw strings and raw byte strings",end:/(")((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.rust"},"2":{name:"punctuation.definition.string.raw.rust"}},name:"string.quoted.double.rust"},{begin:/(b)?(')/dgv,beginCaptures:{"1":{name:"string.quoted.byte.raw.rust"},"2":{name:"punctuation.definition.char.rust"}},comment:"characters and bytes",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.char.rust"}},name:"string.quoted.single.char.rust",patterns:[{include:"#escapes"}]}]},types:{patterns:[{captures:{"1":{name:"entity.name.type.numeric.rust"}},comment:"numeric types",match:/(?<![A-Za-z])(f32|f64|i128|i16|i32|i64|i8|isize|u128|u16|u32|u64|u8|usize)\b/dgv},{begin:/\b(_?[A-Z][A-Za-z0-9_]*)(<)/dgv,beginCaptures:{"1":{name:"entity.name.type.rust"},"2":{name:"punctuation.brackets.angle.rust"}},comment:"parameterized types",end:/>/dgv,endCaptures:{"0":{name:"punctuation.brackets.angle.rust"}},patterns:[{include:"#block-comments"},{include:"#comments"},{include:"#keywords"},{include:"#lvariables"},{include:"#lifetimes"},{include:"#punctuation"},{include:"#types"},{include:"#variables"}]},{comment:"primitive types",match:/\b(bool|char|str)\b/dgv,name:"entity.name.type.primitive.rust"},{captures:{"1":{name:"keyword.declaration.trait.rust storage.type.rust"},"2":{name:"entity.name.type.trait.rust"}},comment:"trait declarations",match:/\b(trait)\p{space}+(_?[A-Z][A-Za-z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.declaration.struct.rust storage.type.rust"},"2":{name:"entity.name.type.struct.rust"}},comment:"struct declarations",match:/\b(struct)\p{space}+(_?[A-Z][A-Za-z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.declaration.enum.rust storage.type.rust"},"2":{name:"entity.name.type.enum.rust"}},comment:"enum declarations",match:/\b(enum)\p{space}+(_?[A-Z][A-Za-z0-9_]*)\b/dgv},{captures:{"1":{name:"keyword.declaration.type.rust storage.type.rust"},"2":{name:"entity.name.type.declaration.rust"}},comment:"type declarations",match:/\b(type)\p{space}+(_?[A-Z][A-Za-z0-9_]*)\b/dgv},{comment:"types",match:/\b_?[A-Z][A-Za-z0-9_]*\b(?!!)/dgv,name:"entity.name.type.rust"}]},variables:{patterns:[{comment:"variables",match:/\b(?<!(?<!\.)\.)(?:r#(?!(crate|[Ss]elf|super)))?[a-z0-9_]+\b/dgv,name:"variable.other.rust"}]}},scopeName:"source.rust",embeddedLangs:undefined,aliases:["rs"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/sas.d.mts
ADDED
package/dist/sas.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import sql from './sql.mjs'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"SAS",fileTypes:["sas"],foldingStartMarker:/(proc|data|%macro)[^\n]*;(?=$|\n)/dgiv,foldingStopMarker:/(run|quit|%mend)\p{space}?;/dgiv,name:"sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"},{begin:/\b(data)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.other.sas"}},comment:"Begins a DATA step and provides names for any output SAS data sets, views, or programs.",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"},{captures:{"1":{name:"keyword.other.sas"},"2":{name:"keyword.other.sas"}},match:/(?:(stack|pgm|view|source)\p{space}?=\p{space}?|(debug|nesting|nolist))/dgiv}]},{begin:/\b(set|update|modify|merge)\p{space}+/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"entity.name.class.sas"},"3":{name:"entity.name.class.sas"}},comment:"DATA set File-Handling Statements for DATA step",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"}]},{match:/\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\b/dgiv,name:"keyword.control.sas"},{captures:{"1":{name:"support.class.sas"},"3":{name:"entity.name.function.sas"}},match:/(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]*)/dgiv,name:"keyword.other.sas"},{begin:/\b(proc\p{space}*(sql))\b/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},comment:"Looks like for this to work there must be a *name* as well as the patterns/include bit.",end:/\b(quit)\p{space}*;/dgiv,endCaptures:{"1":{name:"keyword.control.sas"}},name:"meta.sql.sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"source.sql"}]},{match:/\b(by|label|format)\b/dgiv,name:"keyword.datastep.sas"},{captures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},match:/\b(proc ([\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgiv,name:"meta.function-call.sas"},{match:/\b(_n_|_error_)\b/dgiv,name:"variable.language.sas"},{captures:{"1":{name:"support.class.sas"}},match:/\b(_all_|_character_|_cmd_|_freq_|_i_|_infile_|_last_|_msg_|_null_|_numeric_|_temporary_|_type_|abort|abs|addr|adjrsq|airy|alpha|alter|altlog|altprint|and|arcos|array|arsin|as|atan|attrc|attrib|attrn|authserver|autoexec|awscontrol|awsdef|awsmenu|awsmenumerge|awstitle|backward|band|base|betainv|between|blocksize|blshift|bnot|bor|brshift|bufno|bufsize|bxor|by|byerr|byline|byte|calculated|call|cards|cards4|case|catcache|cbufno|cdf|ceil|center|cexist|change|chisq|cinv|class|cleanup|close|cnonct|cntllev|coalesce|codegen|col|collate|collin|column|comamid|comaux1|comaux2|comdef|compbl|compound|compress|config|continue|convert|cos|cosh|cpuid|create|cross|crosstab|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|datalines|datalines4|date|datejul|datepart|datetime|day|dbcslang|dbcstype|dclose|ddm|delete|delimiter|depdb|depdbsl|depsl|depsyd|deptab|dequote|descending|descript|design=|device|dflang|dhms|dif|digamma|dim|dinfo|display|distinct|dkricond|dkrocond|dlm|dnum|do|dopen|doptname|doptnum|dread|drop|dropnote|dsname|dsnferr|echo|else|emaildlg|emailid|emailpw|emailserver|emailsys|encrypt|end|endsas|engine|eof|eov|erf|erfc|error|errorcheck|errors|exist|exp|fappend|fclose|fcol|fdelete|feedback|fetch|fetchobs|fexist|fget|file|fileclose|fileexist|filefmt|filename|fileref|filevar|finfo|finv|fipname|fipnamel|fipstate|first|firstobs|floor|fmterr|fmtsearch|fnonct|fnote|font|fontalias|footnote[1-9]?|fopen|foptname|foptnum|force|formatted|formchar|formdelim|formdlim|forward|fpoint|fpos|fput|fread|frewind|frlen|from|fsep|full|fullstimer|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|go|goto|group|gwindow|hbar|hbound|helpenv|helploc|hms|honorappearance|hosthelp|hostprint|hour|hpct|html|hvar|ibessel|ibr|id|if|index|indexc|indexw|infile|informat|initcmd|initstmt|inner|input|inputc|inputn|inr|insert|int|intck|intnx|into|intrr|invaliddata|irr|is|jbessel|join|juldate|keep|kentb|kurtosis|label|lag|last|lbound|leave|left|length|levels|lgamma|lib|libname|library|libref|line|linesize|link|list|log|log10|log2|logpdf|logpmf|logsdf|lostcard|lowcase|lrecl|ls|macro|macrogen|maps|mautosource|max|maxdec|maxr|mdy|mean|measures|median|memtype|merge|merror|min|minute|missing|missover|mlogic|mod|mode|model|modify|month|mopen|mort|mprint|mrecall|msglevel|msymtabmax|mvarsize|myy|n|nest|netpv|new|news|nmiss|no|nobatch|nobs|nocaps|nocardimage|nocenter|nocharcode|nocmdmac|nocol|nocum|nodate|nodbcs|nodetails|nodmr|nodms|nodmsbatch|nodup|nodupkey|noduplicates|noechoauto|noequals|noerrorabend|noexitwindows|nofullstimer|noicon|noimplmac|noint|nolist|noloadlist|nomiss|nomlogic|nomprint|nomrecall|nomsgcase|nomstored|nomultenvappl|nonotes|nonumber|noobs|noovp|nopad|nopercent|noprint|noprintinit|normal|norow|norsasuser|nosetinit|nosource|nosource2|nosplash|nosymbolgen|note|notes|notitle|notitles|notsorted|noverbose|noxsync|noxwait|npv|null|number|numkeys|nummousekeys|nway|obs|ods|on|open|option|order|ordinal|otherwise|out|outer|outp=|output|over|ovp|p(1|5|10|25|50|75|90|95|99)|pad|pad2|page|pageno|pagesize|paired|parm|parmcards|path|pathdll|pathname|pdf|peek|peekc|pfkey|pmf|point|poisson|poke|position|printer|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probsig|probt|procleave|project|prt|propcase|prxmatch|prxparse|prxchange|prxposn|ps|put|putc|putn|pw|pwreq|qtr|quote|r|ranbin|rancau|ranexp|rangam|range|ranks|rannor|ranpoi|rantbl|rantri|ranuni|read|recfm|register|regr|remote|remove|rename|repeat|replace|resolve|retain|return|reuse|reverse|rewind|right|round|rsquare|rtf|rtrace|rtraceloc|s|s2|samploc|sasautos|sascontrol|sasfrscr|sashelp|sasmsg|sasmstore|sasscript|sasuser|saving|scan|sdf|second|select|selection|separated|seq|serror|set|setcomm|setot|sign|simple|sin|sinh|siteinfo|skewness|skip|sle|sls|sortedby|sortpgm|sortseq|sortsize|soundex|source2|spedis|splashlocation|split|spool|sqrt|start|std|stderr|stdin|stfips|stimer|stname|stnamel|stop|stopover|strip|subgroup|subpopn|substr|sum|sumwgt|symbol|symbolgen|symget|symput|sysget|sysin|sysleave|sysmsg|sysparm|sysprint|sysprintfont|sysprod|sysrc|system|t|table|tables|tan|tanh|tapeclose|tbufsize|terminal|test|then|time|timepart|tinv|title[1-9]?|tnonct|to|today|tol|tooldef|totper|transformout|translate|trantab|tranwrd|trigamma|trim|trimn|trunc|truncover|type|unformatted|uniform|union|until|upcase|update|user|usericon|uss|validate|value|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vnferr|vtype|vtypex|weekday|weight|when|where|while|wincharset|window|work|workinit|workterm|write|wsum|wsumx|x|xsync|xwait|year|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate)\b/dgiv,name:"support.function.sas"}],repository:{blockComment:{patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.slashstar.sas"}]},constant:{patterns:[{comment:"numeric constant",match:/(?<![\&\}])\b\p{Nd}*\.?\p{Nd}+([eEdD][\-\+]?\p{Nd}+)?\b/dgv,name:"constant.numeric.sas"},{comment:"single quote numeric-type constant",match:/(')([^']+)(')(dt|[dt])/dgv,name:"constant.numeric.quote.single.sas"},{comment:"double quote numeric-type constant",match:/(")([^"]+)(")(dt|[dt])/dgv,name:"constant.numeric.quote.double.sas"}]},dataSet:{patterns:[{begin:/(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}?\(/dgv,beginCaptures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set with options",end:/\)/dgv,patterns:[{include:"#dataSetOptions"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"}]},{captures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set without options",match:/\b(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv}]},dataSetOptions:{patterns:[{match:/(?<=\p{space}|\(|\))(?:ALTER|BUFNO|BUFSIZE|CNTLLEV|COMPRESS|DLDMGACTION|ENCRYPT|ENCRYPTKEY|EXTENDOBSCOUNTER|GENMAX|GENNUM|INDEX|LABEL|OBSBUF|OUTREP|PW|PWREQ|READ|REPEMPTY|REPLACE|REUSE|ROLE|SORTEDBY|SPILL|TOBSNO|TYPE|WRITE|FILECLOSE|FIRSTOBS|IN|OBS|POINTOBS|WHERE|WHEREUP|IDXNAME|IDXWHERE|DROP|KEEP|RENAME)\p{space}?=/dgiv,name:"keyword.other.sas"}]},macro:{patterns:[{match:/(&+[a-z_]([a-z0-9_]+)?(\.+)?)\b/dgiv,name:"variable.other.macro.sas"}]},operator:{patterns:[{match:/([\+\-\*\^\/])/dgv,name:"keyword.operator.arithmetic.sas"},{match:/\b(eq|ne|gt|lt|ge|le|in|not|&|and|or|min|max)\b/dgiv,name:"keyword.operator.comparison.sas"},{match:/([¬\<\>\^\~]?=(:)?|>|<|\||!|¦|¬|(?<=^|\n(?!$))|~|<>|><|\|\|)/dgv,name:"keyword.operator.sas"}]},quote:{patterns:[{begin:/(?<!%)(')/dgv,comment:"single quoted string block",end:/(')([bx])?/dgv,name:"string.quoted.single.sas"},{begin:/(")/dgv,comment:"double quoted string block",end:/(")([bx])?/dgv,name:"string.quoted.double.sas"}]},starComment:{patterns:[{include:"#blockcomment"},{begin:/(?<=;)[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.inline.star.sas"},{begin:/(?<=^|\n(?!$))[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.start.sas"}]}},scopeName:"source.sas",embeddedLangs:["sql"],aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
...sql,
|
|
7
|
+
lang
|
|
8
|
+
]
|
package/dist/sass.d.mts
ADDED
package/dist/sass.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Sass",fileTypes:["sass"],foldingStartMarker:/\/\*|(?<=^|\n(?!$))#|(?<=^|\n(?!$))\*|(?<=^|\n(?!$))\b|\*#?region|(?<=^|\n(?!$))\./dgv,foldingStopMarker:/\*\/|\*#?endregion|(?<=^|\n(?!$))\p{space}*(?=$|\n)/dgv,name:"sass",patterns:[{begin:/(?<=^|\n(?!$))(\p{space}*)(\/\*)/dgv,end:/(\*\/)|(?<=^|\n(?!$))(?!\p{space}(?!))/dgv,name:"comment.block.sass",patterns:[{include:"#comment-tag"},{include:"#comment-param"}]},{match:/(?<=^|\n(?!$))[\t ]*\/?\/\/[\t ]*[SRI][\t ]*(?=$|\n)/dgv,name:"keyword.other.sass.formatter.action"},{begin:/(?<=^|\n(?!$))[\t ]*\/\/[\t ]*(import)[\t ]*(css-variables)[\t ]*(from)/dgv,captures:{"1":{name:"keyword.control"},"2":{name:"variable"},"3":{name:"keyword.control"}},end:/(?=$|\n)\n?/dgv,name:"comment.import.css.variables",patterns:[{include:"#import-quotes"}]},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#placeholder-selector"},{begin:/\$[a-zA-Z0-9_\-]+(?=:)/dgv,captures:{"0":{name:"variable.other.name"}},end:/(?=$|\n)\n?|(?=\)\p{space}\)|\)\n)/dgv,name:"sass.script.maps",patterns:[{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#reserved-words"},{include:"#parent-selector"},{include:"#property-value"},{include:"#semicolon"},{include:"#dotdotdot"}]},{include:"#variable-root"},{include:"#numeric"},{include:"#unit"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#dotdotdot"},{begin:/@include|\+(?![^\p{L}\p{M}\p{N}\p{Pc}]|\p{Nd})/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass"}},end:/(?=\n|\()/dgv,name:"support.function.name.sass.library"},{begin:/(?<=^|\n(?!$))(@use)/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass.use"}},end:/(?=\n)/dgv,name:"sass.use",patterns:[{match:/as|with/dgv,name:"support.type.css.sass"},{include:"#numeric"},{include:"#unit"},{include:"#variable-root"},{include:"#rgb-value"},{include:"#comma"},{include:"#parenthesis-open"},{include:"#parenthesis-close"},{include:"#colon"},{include:"#import-quotes"}]},{begin:/(?<=^|\n(?!$))@import([^\n]*?)( as[^\n]*)?(?=$|\n)/dgv,captures:{"1":{name:"constant.character.css.sass"},"2":{name:"invalid"}},end:/(?=\n)/dgv,name:"keyword.control.at-rule.use"},{begin:/@mixin|(?<=^|\n(?!$))[\t ]*=|@function/dgv,captures:{"0":{name:"keyword.control.at-rule.css.sass"}},end:/(?=$|\n)\n?|(?=\()/dgv,name:"support.function.name.sass",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]+/dgv,name:"entity.name.function"}]},{begin:/@/dgv,end:/(?=$|\n)\n?|\p{space}(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\p{space}|,))/dgv,name:"keyword.control.at-rule.css.sass"},{begin:/(?<!-|\()\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|u|slot)\b(?!-|\)|:\p{space})|&/dgv,end:/(?=$|\n)\n?|(?=\p{space}|,|\(|\)|\.|#|\[|>|-|_)/dgv,name:"entity.name.tag.css.sass.symbol",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/#/dgv,end:/(?=$|\n)\n?|(?=\p{space}|,|\(|\)|\.|\[|>)/dgv,name:"entity.other.attribute-name.id.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/\.|(?<=&)(-|_)/dgv,end:/(?=$|\n)\n?|(?=\p{space}|,|\(|\)|\[|>)/dgv,name:"entity.other.attribute-name.class.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{begin:/\[/dgv,end:/\]/dgv,name:"entity.other.attribute-selector.sass",patterns:[{include:"#double-quoted"},{include:"#single-quoted"},{match:/\^|\$|\*|~/dgv,name:"keyword.other.regex.sass"}]},{match:/(?<=^|\n(?!$))((?<=\]|\)|not\(|\*|>|>\p{space})|\n*):[a-z\:\-]+|(::|:-)[a-z\:\-]+/dgv,name:"entity.other.attribute-name.pseudo-class.css.sass"},{include:"#module"},{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*\(/dgv,name:"entity.name.function"},{match:/\)/dgv,name:"entity.name.function.close"},{begin:/:/dgv,end:/(?=$|\n)\n?|(?=\p{space}\(|and\(|\),)/dgv,name:"meta.property-list.css.sass.prop",patterns:[{match:/(?<=:)[a-z\-]+\p{space}/dgv,name:"support.type.property-name.css.sass.prop.name"},{include:"#double-slash"},{include:"#double-quoted"},{include:"#single-quoted"},{include:"#interpolation"},{include:"#curly-brackets"},{include:"#variable"},{include:"#rgb-value"},{include:"#numeric"},{include:"#unit"},{include:"#module"},{match:/--[^\n]+?(?=\))/dgv,name:"variable.css"},{match:/[\p{L}\p{M}\p{N}\p{Pc}\-]*\(/dgv,name:"entity.name.function"},{match:/\)/dgv,name:"entity.name.function.close"},{include:"#flag"},{include:"#comma"},{include:"#semicolon"},{include:"#function"},{include:"#function-content"},{include:"#operator"},{include:"#parent-selector"},{include:"#property-value"}]},{include:"#rgb-value"},{include:"#function"},{include:"#function-content"},{begin:/(?<=\})(?!\n|\(|\)|[a-zA-Z0-9_\-]+:)/dgv,end:/\p{space}|(?=,|\.|\[|\)|\n)/dgv,name:"entity.name.tag.css.sass",patterns:[{include:"#interpolation"},{include:"#pseudo-class"}]},{include:"#operator"},{match:/[a-z\-]+((?=:|#\{))/dgv,name:"support.type.property-name.css.sass.prop.name"},{include:"#reserved-words"},{include:"#property-value"}],repository:{colon:{match:/:/dgv,name:"meta.property-list.css.sass.colon"},comma:{match:/\band\b|\bor\b|,/dgv,name:"comment.punctuation.comma.sass"},"comment-param":{match:/@([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"storage.type.class.jsdoc"},"comment-tag":{begin:/(?<=\{\{)/dgv,end:/(?=\}\})/dgv,name:"comment.tag.sass"},"curly-brackets":{match:/\{|\}/dgv,name:"invalid"},dotdotdot:{match:/\.\.\./dgv,name:"variable.other"},"double-quoted":{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.css.sass",patterns:[{include:"#quoted-interpolation"}]},"double-slash":{begin:/\/\//dgv,end:/(?=$|\n)\n?/dgv,name:"comment.line.sass",patterns:[{include:"#comment-tag"}]},flag:{match:/!(important|default|optional|global)/dgv,name:"keyword.other.important.css.sass"},function:{match:/(?<=[\p{space}\|\(\|\,\|\:])(?!url|format|attr)[a-zA-Z0-9_\-][\p{L}\p{M}\p{N}\p{Pc}\-]*(?=\()/dgv,name:"support.function.name.sass"},"function-content":{begin:/(?<=url\(|format\(|attr\()/dgv,end:/[^\n](?=\))/dgv,name:"string.quoted.double.css.sass"},"import-quotes":{match:/["']?\.{0,2}[\p{L}\p{M}\p{N}\p{Pc}\/]+["']?/dgv,name:"constant.character.css.sass"},interpolation:{begin:/#\{/dgv,end:/\}/dgv,name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"},{include:"#double-quoted"},{include:"#single-quoted"}]},module:{captures:{"1":{name:"constant.character.module.name"},"2":{name:"constant.numeric.module.dot"}},match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+?)(\.)/dgv,name:"constant.character.module"},numeric:{match:/(-|\.)?\p{Nd}+(\.\p{Nd}+)?/dgv,name:"constant.numeric.css.sass"},operator:{match:/\+|\p{space}-\p{space}|\p{space}-(?=\$)|(?<=\()-(?=\$)|\p{space}-(?=\()|\*|\/|%|=|!|<|>|~/dgv,name:"keyword.operator.sass"},"parent-selector":{match:/&/dgv,name:"entity.name.tag.css.sass"},"parenthesis-close":{match:/\)/dgv,name:"entity.name.function.parenthesis.close"},"parenthesis-open":{match:/\(/dgv,name:"entity.name.function.parenthesis.open"},"placeholder-selector":{begin:/(?<!\p{Nd})%(?!\p{Nd})/dgv,end:/(?=$|\n)\n?|\p{space}/dgv,name:"entity.other.inherited-class.placeholder-selector.css.sass"},"property-value":{match:/[a-zA-Z0-9_\-]+/dgv,name:"meta.property-value.css.sass support.constant.property-value.css.sass"},"pseudo-class":{match:/:[a-z\:\-]+/dgv,name:"entity.other.attribute-name.pseudo-class.css.sass"},"quoted-interpolation":{begin:/#\{/dgv,end:/\}/dgv,name:"support.function.interpolation.sass",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#operator"},{include:"#unit"},{include:"#comma"}]},"reserved-words":{match:/\b(false|from|in|not|null|through|to|true)\b/dgv,name:"support.type.property-name.css.sass"},"rgb-value":{match:/(#)([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})\b/dgv,name:"constant.language.color.rgb-value.css.sass"},semicolon:{match:/;/dgv,name:"invalid"},"single-quoted":{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.css.sass",patterns:[{include:"#quoted-interpolation"}]},unit:{match:/(?<=[\p{Nd}]|\})(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|fr|%)/dgv,name:"keyword.control.unit.css.sass"},variable:{match:/\$[a-zA-Z0-9_\-]+/dgv,name:"variable.other.value"},"variable-root":{match:/\$[a-zA-Z0-9_\-]+/dgv,name:"variable.other.root"}},scopeName:"source.sass",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/scala.d.mts
ADDED
package/dist/scala.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Scala",fileTypes:["scala"],firstLineMatch:/(?<=^|\n(?!$))#!\/[^\n]*\b[\p{L}\p{M}\p{N}\p{Pc}]*scala\b/dgv,foldingStartMarker:/\/\*\*|\{\p{space}*(?=$|\n)/dgv,foldingStopMarker:/\*\*\/|(?<=^|\n(?!$))\p{space}*\}/dgv,name:"scala",patterns:[{include:"#code"}],repository:{backQuotedVariable:{match:/`[^\`]+`/dgv},"block-comments":{patterns:[{captures:{"0":{name:"punctuation.definition.comment.scala"}},match:/\/\*\*\//dgv,name:"comment.block.empty.scala"},{begin:/(?<=^|\n(?!$))\p{space}*(\/\*\*)(?!\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scala"}},name:"comment.block.documentation.scala",patterns:[{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"variable.parameter.scala"}},match:/(@param)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"keyword.other.documentation.scaladoc.scala"},"2":{name:"entity.name.class"}},match:/(@(?:tparam|throws))\p{space}+(\P{space}+)/dgv},{match:/@(return|see|note|example|constructor|usecase|author|version|since|todo|deprecated|migration|define|inheritdoc|groupname|groupprio|groupdesc|group|contentDiagram|documentable|syntax)\b/dgv,name:"keyword.other.documentation.scaladoc.scala"},{captures:{"1":{name:"punctuation.definition.documentation.link.scala"},"2":{name:"string.other.link.title.markdown"},"3":{name:"punctuation.definition.documentation.link.scala"}},match:/(\[\[)([^\]]+)(\]\])/dgv},{include:"#block-comments"}]},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\*\//dgv,name:"comment.block.scala",patterns:[{include:"#block-comments"}]}]},"char-literal":{patterns:[{captures:{"1":{name:"punctuation.definition.character.begin.scala"},"2":{name:"punctuation.definition.character.end.scala"}},match:/(')'(')/dgv,name:"string.quoted.other constant.character.literal.scala"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.character.begin.scala"}},end:/'|(?=$|\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.character.end.scala"}},name:"string.quoted.other constant.character.literal.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-character-escape.scala"},{match:/[^']{2,}/dgv,name:"invalid.illegal.character-literal-too-long"},{match:/(?<!')[^']/dgv,name:"invalid.illegal.character-literal-too-long"}]}]},code:{patterns:[{include:"#using-directive"},{include:"#script-header"},{include:"#storage-modifiers"},{include:"#declarations"},{include:"#inheritance"},{include:"#extension"},{include:"#imports"},{include:"#exports"},{include:"#comments"},{include:"#strings"},{include:"#initialization"},{include:"#xml-literal"},{include:"#keywords"},{include:"#using"},{include:"#constants"},{include:"#singleton-type"},{include:"#inline"},{include:"#scala-quoted-or-symbol"},{include:"#char-literal"},{include:"#empty-parentheses"},{include:"#parameter-list"},{include:"#qualifiedClassName"},{include:"#backQuotedVariable"},{include:"#curly-braces"},{include:"#meta-brackets"},{include:"#meta-bounds"},{include:"#meta-colons"}]},comments:{patterns:[{include:"#block-comments"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scala"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scala"}},end:/\n/dgv,name:"comment.line.double-slash.scala"}]}]},constants:{patterns:[{match:/\b(false|null|true)\b/dgv,name:"constant.language.scala"},{match:/\b(0[xX][0-9a-fA-F_]*)\b/dgv,name:"constant.numeric.scala"},{match:/\b((\p{Nd}[0-9_]*(\.\p{Nd}[0-9_]*)?)([eE](\+|-)?\p{Nd}[0-9_]*)?|\p{Nd}[0-9_]*)[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/(\.\p{Nd}[0-9_]*)([eE](\+|-)?\p{Nd}[0-9_]*)?[LlFfDd]?\b/dgv,name:"constant.numeric.scala"},{match:/\b0[bB][01]([01_]*[01])?[Ll]?\b/dgv,name:"constant.numeric.scala"},{match:/\b(this|super)\b/dgv,name:"variable.language.scala"}]},"curly-braces":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.scala"}},patterns:[{include:"#code"}]},declarations:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.function.declaration"}},match:/\b(def)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class.declaration"}},match:/\b(trait)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(?:(case)\p{space}+)?(class|object|enum)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.type.declaration"}},match:/(?<!\.)\b(type)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"keyword.declaration.volatile.scala"}},match:/\b(?:(val)|(var))\b\p{space}*(?!\/\/|\/\*)(?=(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)?\()/dgv},{captures:{"1":{name:"keyword.declaration.stable.scala"},"2":{name:"variable.stable.declaration.scala"}},match:/\b(val)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.declaration.volatile.scala"},"2":{name:"variable.volatile.declaration.scala"}},match:/\b(var)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)(?:\p{space}*,\p{space}*(?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))*)?(?!")/dgv},{captures:{"1":{name:"keyword.other.package.scala"},"2":{name:"keyword.declaration.scala"},"3":{name:"entity.name.class.declaration"}},match:/\b(package)\p{space}+(object)\b\p{space}*(?!\/\/|\/\*)((?:(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`))?/dgv},{begin:/\b(package)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.package.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.package.scala",patterns:[{include:"#comments"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.package.scala"},{match:/\./dgv,name:"punctuation.definition.package"}]},{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.given.declaration"}},match:/\b(given)\b\p{space}*([_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`)?/dgv}]},"empty-parentheses":{captures:{"1":{name:"meta.bracket.scala"}},match:/(\(\))/dgv,name:"meta.parentheses.scala"},exports:{begin:/\b(export)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.export.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.export.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.export.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.export.scala"},{match:/\./dgv,name:"punctuation.definition.export"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.export.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.renamed-from.scala"},"3":{name:"entity.name.export.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.export.renamed-to.scala"},"6":{name:"entity.name.export.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.export.given.scala"},{captures:{"1":{name:"keyword.other.export.given.scala"},"2":{name:"entity.name.class.export.scala"},"3":{name:"entity.name.export.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},extension:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/(?<=^|\n(?!$))\p{space}*(extension)\p{space}+(?=[\[\(])/dgv}]},imports:{begin:/\b(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.other.import.scala"}},end:/(?<=[\n\;])/dgv,name:"meta.import.scala",patterns:[{include:"#comments"},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{match:/\p{space}(as)\p{space}/dgv,name:"keyword.other.import.as.scala"},{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?/dgv,name:"entity.name.class.import.scala"},{match:/(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"},{begin:/\{/dgv,beginCaptures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,endCaptures:{"0":{name:"meta.bracket.scala"}},name:"meta.import.selector.scala",patterns:[{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.renamed-from.scala"},"3":{name:"entity.name.import.renamed-from.scala"},"4":{name:"keyword.other.arrow.scala"},"5":{name:"entity.name.class.import.renamed-to.scala"},"6":{name:"entity.name.import.renamed-to.scala"}},match:/(given\p{space})?\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*(=>)\p{space}*(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))\p{space}*/dgv},{match:/\b(given)\b/dgv,name:"keyword.other.import.given.scala"},{captures:{"1":{name:"keyword.other.import.given.scala"},"2":{name:"entity.name.class.import.scala"},"3":{name:"entity.name.import.scala"}},match:/(given\p{space}+)?(?:([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)|(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)))/dgv}]}]},inheritance:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"},"2":{name:"entity.name.class"}},match:/\b(extends|with|derives)\b\p{space}*([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?=\([^\)]+=>)|(?=(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))|(?="))?/dgv}]},initialization:{captures:{"1":{name:"keyword.declaration.scala"}},match:/\b(new)\b/dgv},inline:{patterns:[{match:/\b(inline)(?=\p{space}+((?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)|`[^\`]+`)\p{space}*:)/dgv,name:"storage.modifier.other"},{match:/\b(inline)\b(?=(?:[^\n](?!\b(?:val|def|given)\b))*\b(if|match)\b)/dgv,name:"keyword.control.flow.scala"}]},keywords:{patterns:[{match:/\b(return|throw)\b/dgv,name:"keyword.control.flow.jump.scala"},{match:/\b(classOf|isInstanceOf|asInstanceOf)\b/dgv,name:"support.function.type-of.scala"},{match:/\b(else|if|then|do|while|for|yield|match|case)\b/dgv,name:"keyword.control.flow.scala"},{match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(if|while|for|match)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv,name:"keyword.control.flow.end.scala"},{match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(val)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv,name:"keyword.declaration.stable.end.scala"},{match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(var)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv,name:"keyword.declaration.volatile.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"keyword.declaration.end.scala"},"3":{name:"entity.name.type.declaration"}},match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(?:(new|extension)|([A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?))(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv},{match:/\b(catch|finally|try)\b/dgv,name:"keyword.control.exception.scala"},{match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(try)(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv,name:"keyword.control.exception.end.scala"},{captures:{"1":{name:"keyword.declaration.end.scala"},"2":{name:"entity.name.declaration"}},match:/(?<=^|\n(?!$))\p{space}*(end)\p{space}+(`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+))?(?=\p{space}*(\/\/[^\n]*|\/\*(?![^\n]*\*\/\p{space}*\P{space}[^\n]*)[^\n]*)?(?=$|\n))/dgv},{match:/([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){3,}/dgv,name:"keyword.operator.scala"},{captures:{"1":{patterns:[{match:/(\|\||&&)/dgv,name:"keyword.operator.logical.scala"},{match:/(!=|==|<=|>=)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n][^\n]/dgv,name:"keyword.operator.scala"}]}},match:/((?:[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|[\\]){2,}|_\*)/dgv},{captures:{"1":{patterns:[{match:/(!)/dgv,name:"keyword.operator.logical.scala"},{match:/(\*|-|\+|\/|%|~)/dgv,name:"keyword.operator.arithmetic.scala"},{match:/(=|<|>)/dgv,name:"keyword.operator.comparison.scala"},{match:/[^\n]/dgv,name:"keyword.operator.scala"}]}},match:/(?<!_)([\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]|\\)/dgv}]},"meta-bounds":{comment:"For themes: Matching view bounds",match:/<%|=:=|<:<|<%<|>:|<:/dgv,name:"meta.bounds.scala"},"meta-brackets":{comment:"For themes: Brackets look nice when colored.",patterns:[{comment:"The punctuation.section.*.begin is needed for return snippet in source bundle",match:/\{/dgv,name:"punctuation.section.block.begin.scala"},{comment:"The punctuation.section.*.end is needed for return snippet in source bundle",match:/\}/dgv,name:"punctuation.section.block.end.scala"},{match:/\{|\}|\(|\)|\[|\]/dgv,name:"meta.bracket.scala"}]},"meta-colons":{comment:"For themes: Matching type colons",patterns:[{match:/(?<!:):(?!:)/dgv,name:"meta.colon.scala"}]},"parameter-list":{patterns:[{captures:{"1":{name:"variable.parameter.scala"},"2":{name:"meta.colon.scala"}},match:/(?<=[^\._\$a-zA-Z0-9])(`[^\`]+`|[_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)\p{space}*(:)\p{space}+/dgv}]},qualifiedClassName:{captures:{"1":{name:"entity.name.class"}},match:/(\b([A-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)/dgv},"scala-quoted-or-symbol":{patterns:[{captures:{"1":{name:"keyword.control.flow.staging.scala constant.other.symbol.scala"},"2":{name:"constant.other.symbol.scala"}},match:new EmulatedRegExp("(')((?:(?=($E$[A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}][A-Z\\p{Lt}\\p{Lu}_a-z\\$\\p{Lo}\\p{Nl}\\p{Ll}0-9]*(?:(?<=_)[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+)?|[\\!\\#\\%\\&\\*\\+\\-\\/\\:\\<\\>\\=\\?\\@\\^\\|\\~\\p{Sm}\\p{So}]+))\\3))(?!')","dgv",{"useEmulationGroups":true})},{match:/'(?=\p{space}*\{(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/'(?=\p{space}*\[(?!'))/dgv,name:"keyword.control.flow.staging.scala"},{match:/\$(?=\p{space}*\{)/dgv,name:"keyword.control.flow.staging.scala"}]},"script-header":{captures:{"1":{name:"string.unquoted.shebang.scala"}},match:/(?<=^|\n(?!$))#!([^\n]*)(?=$|\n)/dgv,name:"comment.block.shebang.scala"},"singleton-type":{captures:{"1":{name:"keyword.type.scala"}},match:/\.(type)(?![A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|\p{Nd})/dgv},"storage-modifiers":{patterns:[{match:/\b(private\[\P{space}+\]|protected\[\P{space}+\]|private|protected)\b/dgv,name:"storage.modifier.access"},{match:/\b(synchronized|@volatile|abstract|final|lazy|sealed|implicit|override|@transient|@native)\b/dgv,name:"storage.modifier.other"},{match:/(?<=(?<=^|\n(?!$))|\p{space})\b(transparent|opaque|infix|open|inline)\b(?=[a-z\p{space}]*\b(def|val|var|given|type|class|trait|object|enum)\b)/dgv,name:"storage.modifier.other"}]},"string-interpolation":{patterns:[{match:/\$\$/dgv,name:"constant.character.escape.interpolation.scala"},{captures:{"1":{name:"punctuation.definition.template-expression.begin.scala"}},match:/(\$)([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\p{Lo}\p{Nl}\p{Ll}0-9]*)/dgv,name:"meta.template.expression.scala"},{begin:/\$\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.template-expression.begin.scala"}},contentName:"meta.embedded.line.scala",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.template-expression.end.scala"}},name:"meta.template.expression.scala",patterns:[{include:"#code"}]}]},strings:{patterns:[{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"""(?!")/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.triple.scala",patterns:[{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"}]},{begin:/\b(raw)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(""")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(""")(?!")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.triple.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{include:"#string-interpolation"},{match:/\\\\|\\u[0-9A-Fa-f]{4}/dgv,name:"constant.character.escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.triple.interpolated.scala"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scala"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scala"}},name:"string.quoted.double.scala",patterns:[{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"}]},{begin:/\b(raw)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]},{begin:/\b([A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?)(")/dgv,beginCaptures:{"1":{name:"keyword.interpolation.scala"},"2":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.begin.scala"}},end:/(")|\$\n|(\$[^\$"_\{A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}])/dgv,endCaptures:{"1":{name:"string.quoted.double.interpolated.scala punctuation.definition.string.end.scala"},"2":{name:"invalid.illegal.unrecognized-string-escape.scala"}},patterns:[{match:/\$[\$"]/dgv,name:"constant.character.escape.scala"},{include:"#string-interpolation"},{match:/\\(?:[btnfr\\"']|[0-7]{1,3}|u[0-9A-Fa-f]{4})/dgv,name:"constant.character.escape.scala"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unrecognized-string-escape.scala"},{match:/[^\n]/dgv,name:"string.quoted.double.interpolated.scala"}]}]},using:{patterns:[{captures:{"1":{name:"keyword.declaration.scala"}},match:/(?<=\()\p{space}*(using)\p{space}/dgv}]},"using-directive":{begin:/(?<=^|\n(?!$))\p{space}*(\/\/>)\p{space}*(using)[^\P{space}\n]+(?:(\P{space}+))?/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.scala"},"2":{name:"keyword.other.import.scala"},"3":{patterns:[{match:/[A-Z\p{Lt}\p{Lu}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|`[^\`]+`|(?:[A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}][A-Z\p{Lt}\p{Lu}_a-z\$\p{Lo}\p{Nl}\p{Ll}0-9]*(?:(?<=_)[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)?|[\!\#\%\&\*\+\-\/\:\<\>\=\?\@\^\|\~\p{Sm}\p{So}]+)/dgv,name:"entity.name.import.scala"},{match:/\./dgv,name:"punctuation.definition.import"}]}},end:/\n/dgv,name:"comment.line.shebang.scala",patterns:[{include:"#constants"},{include:"#strings"},{match:/[^\p{space}\,]+/dgv,name:"string.quoted.double.scala"}]},"xml-doublequotedString":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.double.xml",patterns:[{include:"#xml-entity"}]},"xml-embedded-content":{patterns:[{begin:/\{/dgv,captures:{"0":{name:"meta.bracket.scala"}},end:/\}/dgv,name:"meta.source.embedded.scala",patterns:[{include:"#code"}]},{captures:{"1":{name:"entity.other.attribute-name.namespace.xml"},"2":{name:"entity.other.attribute-name.xml"},"3":{name:"punctuation.separator.namespace.xml"},"4":{name:"entity.other.attribute-name.localname.xml"}},match:/ (?:([\-_a-zA-Z0-9]+)((:)))?([_a-zA-Z\-]+)=/dgv},{include:"#xml-doublequotedString"},{include:"#xml-singlequotedString"}]},"xml-entity":{captures:{"1":{name:"punctuation.definition.constant.xml"},"3":{name:"punctuation.definition.constant.xml"}},match:/(&)([\:a-zA-Z_][\:a-zA-Z0-9_\.\-]*|#\p{Nd}+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.xml"},"xml-literal":{patterns:[{begin:/(<)((?:([_a-zA-Z0-9][_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*))(?=(\p{space}[^\>]*)?><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"}},comment:"We do not allow a tag name to start with a - since this would likely conflict with the <- operator. This is not very common for tag names anyway. Also code such as -- if (val <val2 || val> val3) will falsly be recognized as an xml tag. The solution is to put a space on either side of the comparison operator",end:/(>(<))\/(?:([\-_a-zA-Z0-9]+)((:)))?([\-_a-zA-Z0-9\:]*[_a-zA-Z0-9])(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"meta.scope.between-tag-pair.xml"},"3":{name:"entity.name.tag.namespace.xml"},"4":{name:"entity.name.tag.xml"},"5":{name:"punctuation.separator.namespace.xml"},"6":{name:"entity.name.tag.localname.xml"},"7":{name:"punctuation.definition.tag.xml"}},name:"meta.tag.no-content.xml",patterns:[{include:"#xml-embedded-content"}]},{begin:/(<\/?)(?:([_a-zA-Z0-9][\-_a-zA-Z0-9]*)((:)))?([_a-zA-Z0-9][\-_a-zA-Z0-9\:]*)(?=[^\>]*?>)/dgv,captures:{"1":{name:"punctuation.definition.tag.xml"},"2":{name:"entity.name.tag.namespace.xml"},"3":{name:"entity.name.tag.xml"},"4":{name:"punctuation.separator.namespace.xml"},"5":{name:"entity.name.tag.localname.xml"}},end:/(\/?>)/dgv,name:"meta.tag.xml",patterns:[{include:"#xml-embedded-content"}]},{include:"#xml-entity"}]},"xml-singlequotedString":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.xml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.xml"}},name:"string.quoted.single.xml",patterns:[{include:"#xml-entity"}]}},scopeName:"source.scala",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/scheme.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Scheme",fileTypes:["scm","ss","sch","rkt"],name:"scheme",patterns:[{include:"#comment"},{include:"#block-comment"},{include:"#sexp"},{include:"#string"},{include:"#language-functions"},{include:"#quote"},{include:"#illegal"}],repository:{"block-comment":{begin:/#\|/dgv,contentName:"comment",end:/\|#/dgv,name:"comment",patterns:[{include:"#block-comment",name:"comment"}]},comment:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=;)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.scheme"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/;/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scheme"}},end:/\n/dgv,name:"comment.line.semicolon.scheme"}]},constants:{patterns:[{match:/#[t\|f]/dgv,name:"constant.language.boolean.scheme"},{match:/(?<=[\(\p{space}])((#e|#i)?\p{Nd}+(\.\p{Nd}+)?|(#x)[0-9a-fA-F]+|(#o)[0-7]+|(#b)[01]+)(?=[\p{space}\;\(\)'"\,\[\]])/dgv,name:"constant.numeric.scheme"}]},illegal:{match:/[\(\)\[\]]/dgv,name:"invalid.illegal.parenthesis.scheme"},"language-functions":{patterns:[{match:/(?<=(\p{space}|\(|\[))(do|or|and|else|quasiquote|begin|if|case|set!|cond|let|unquote|define|let\*|unquote-splicing|delay|letrec)(?=(\p{space}|\())/dgv,name:"keyword.control.scheme"},{comment:"\n\t\t\t\t\t\tThese functions run a test, and return a boolean\n\t\t\t\t\t\tanswer.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(char-alphabetic|char-lower-case|char-numeric|char-ready|char-upper-case|char-whitespace|(?:char|string)(?:-ci)?(?:=|<=?|>=?)|atom|boolean|bound-identifier=|char|complex|identifier|integer|symbol|free-identifier=|inexact|eof-object|exact|list|(?:input|output)-port|pair|real|rational|zero|vector|negative|odd|null|string|eq|equal|eqv|even|number|positive|procedure)(\?)(?=(\p{space}|\())/dgv,name:"support.function.boolean-test.scheme"},{comment:"\n\t\t\t\t\t\tThese functions change one type into another.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(char->integer|exact->inexact|inexact->exact|integer->char|symbol->string|list->vector|list->string|identifier->symbol|vector->list|string->list|string->number|string->symbol|number->string)(?=(\p{space}|\())/dgv,name:"support.function.convert-type.scheme"},{comment:"\n\t\t\t\t\t\tThese functions are potentially dangerous because\n\t\t\t\t\t\tthey have side-effects which could affect other\n\t\t\t\t\t\tparts of the program.\n\t\t\t\t\t",match:/(?<=(\p{space}|\())(set-(?:car|cdr)|(?:vector|string)-(?:fill|set))(!)(?=(\p{space}|\())/dgv,name:"support.function.with-side-effects.scheme"},{comment:"\n\t\t\t\t\t\t+, -, *, /, =, >, etc. \n\t\t\t\t\t",match:/(?<=(\p{space}|\())(>=?|<=?|=|[\*\/\+\-])(?=(\p{space}|\())/dgv,name:"keyword.operator.arithmetic.scheme"},{match:/(?<=(\p{space}|\())(append|apply|approximate|call-with-current-continuation|call\/cc|catch|construct-identifier|define-syntax|display|foo|for-each|force|format|cd|gen-counter|gen-loser|generate-identifier|last-pair|length|let-syntax|letrec-syntax|list|list-ref|list-tail|load|log|macro|magnitude|map|map-streams|max|member|memq|memv|min|newline|nil|not|peek-char|rationalize|read|read-char|return|reverse|sequence|substring|syntax|syntax-rules|transcript-off|transcript-on|truncate|unwrap-syntax|values-list|write|write-char|cons|c(a|d){1,4}r|abs|acos|angle|asin|assoc|assq|assv|atan|ceiling|cos|floor|round|sin|sqrt|tan|(?:real|imag)-part|numerator|denominatormodulo|exp|expt|remainder|quotient|lcm|call-with-(?:input|output)-file|(?:close|current)-(?:input|output)-port|with-(?:input|output)-from-file|open-(?:input|output)-file|char-(?:downcase|upcase|ready)|make-(?:polar|promise|rectangular|string|vector)string(?:-(?:append|copy|length|ref))?|vector(?:-length|-ref))(?=(\p{space}|\())/dgv,name:"support.function.general.scheme"}]},quote:{comment:"\n\t\t\t\tWe need to be able to quote any kind of item, which creates\n\t\t\t\ta tiny bit of complexity in our grammar. It is hopefully\n\t\t\t\tnot overwhelming complexity.\n\t\t\t\t\n\t\t\t\tNote: the first two matches are special cases. quoted\n\t\t\t\tsymbols, and quoted empty lists are considered constant.other\n\t\t\t\t\n\t\t\t",patterns:[{captures:{"1":{name:"punctuation.section.quoted.symbol.scheme"}},match:/(')\p{space}*([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)/dgv,name:"constant.other.symbol.scheme"},{captures:{"1":{name:"punctuation.section.quoted.empty-list.scheme"},"2":{name:"meta.expression.scheme"},"3":{name:"punctuation.section.expression.begin.scheme"},"4":{name:"punctuation.section.expression.end.scheme"}},match:/(')\p{space}*((\()\p{space}*(\)))/dgv,name:"constant.other.empty-list.schem"},{begin:/(')\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.section.quoted.scheme"}},comment:"quoted double-quoted string or s-expression",end:/(?=[\p{space}\(\)])|(?<=\n)/dgv,name:"string.other.quoted-object.scheme",patterns:[{include:"#quoted"}]}]},"quote-sexp":{begin:/(?<=\()\p{space}*(quote)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.quote.scheme"}},comment:"\n\t\t\t\tSomething quoted with (quote «thing»). In this case «thing»\n\t\t\t\twill not be evaluated, so we are considering it a string.\n\t\t\t",contentName:"string.other.quote.scheme",end:/(?=[\p{space}\)])|(?<=\n)/dgv,patterns:[{include:"#quoted"}]},quoted:{patterns:[{include:"#string"},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.scheme"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.scheme"}},name:"meta.expression.scheme",patterns:[{include:"#quoted"}]},{include:"#quote"},{include:"#illegal"}]},sexp:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.scheme"}},end:/(\))(\n)?/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.scheme"},"2":{name:"meta.after-expression.scheme"}},name:"meta.expression.scheme",patterns:[{include:"#comment"},{begin:/(?<=\()(define)\p{space}+(\()([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)((\p{space}+([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._]))*)\p{space}*(\))/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"punctuation.definition.function.scheme"},"3":{name:"entity.name.function.scheme"},"4":{name:"variable.parameter.function.scheme"},"7":{name:"punctuation.definition.function.scheme"}},end:/(?=\))/dgv,name:"meta.declaration.procedure.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{begin:/(?<=\()(lambda)\p{space}+(\()((?:([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._])\p{space}+)*(?:([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*|[\._]))?)(\))/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"punctuation.definition.variable.scheme"},"3":{name:"variable.parameter.scheme"},"6":{name:"punctuation.definition.variable.scheme"}},comment:"\n\t\t\t\t\t\tNot sure this one is quite correct. That \\s* is\n\t\t\t\t\t\tparticularly troubling\n\t\t\t\t\t",end:/(?=\))/dgv,name:"meta.declaration.procedure.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{begin:/(?<=\()(define)\p{space}([0-9A-Za-z][0-9A-Za-z\!\$\%\&\*\+-\.\/\:\<\=\>\?\@\^_\~]*)\p{space}*[^\n]*?/dgv,captures:{"1":{name:"keyword.control.scheme"},"2":{name:"variable.other.scheme"}},end:/(?=\))/dgv,name:"meta.declaration.variable.scheme",patterns:[{include:"#comment"},{include:"#sexp"},{include:"#illegal"}]},{include:"#quote-sexp"},{include:"#quote"},{include:"#language-functions"},{include:"#string"},{include:"#constants"},{match:/(?<=[\(\p{space}])(#\\)(space|newline|tab)(?=[\p{space}\)])/dgv,name:"constant.character.named.scheme"},{match:/(?<=[\(\p{space}])(#\\)x[0-9A-F]{2,4}(?=[\p{space}\)])/dgv,name:"constant.character.hex-literal.scheme"},{match:/(?<=[\(\p{space}])(#\\)[^\n](?=[\p{space}\)])/dgv,name:"constant.character.escape.scheme"},{comment:"\n\t\t\t\t\t\tthe . in (a . b) which conses together two elements\n\t\t\t\t\t\ta and b. (a b c) == (a . (b . (c . nil)))\n\t\t\t\t\t",match:/(?<=[ \(\)])\.(?=[ \(\)])/dgv,name:"punctuation.separator.cons.scheme"},{include:"#sexp"},{include:"#illegal"}]},string:{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scheme"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.scheme"}},name:"string.quoted.double.scheme",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.scheme"}]}},scopeName:"source.scheme",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/scss.d.mts
ADDED
package/dist/scss.mjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import css from './css.mjs'
|
|
3
|
+
|
|
4
|
+
const lang = Object.freeze({displayName:"SCSS",name:"scss",patterns:[{include:"#variable_setting"},{include:"#at_rule_forward"},{include:"#at_rule_use"},{include:"#at_rule_include"},{include:"#at_rule_import"},{include:"#general"},{include:"#flow_control"},{include:"#rules"},{include:"#property_list"},{include:"#at_rule_mixin"},{include:"#at_rule_media"},{include:"#at_rule_function"},{include:"#at_rule_charset"},{include:"#at_rule_option"},{include:"#at_rule_namespace"},{include:"#at_rule_fontface"},{include:"#at_rule_page"},{include:"#at_rule_keyframes"},{include:"#at_rule_at_root"},{include:"#at_rule_supports"},{match:/;/dgv,name:"punctuation.terminator.rule.css"}],repository:{at_rule_at_root:{begin:/\p{space}*((@)(at-root))(\p{space}+|(?=$|\n))/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.at-root.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.at-root.scss",patterns:[{include:"#function_attributes"},{include:"#functions"},{include:"#selectors"}]},at_rule_charset:{begin:/\p{space}*((@)charset\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;|(?=$|\n)))/dgv,name:"meta.at-rule.charset.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"}]},at_rule_content:{begin:/\p{space}*((@)content\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.content.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.content.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_each:{begin:/\p{space}*((@)each\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.each.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=\}))/dgv,name:"meta.at-rule.each.scss",patterns:[{match:/\b(in|,)\b/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_else:{begin:/\p{space}*((@)else(\p{space}*(if)?))\p{space}*/dgv,captures:{"1":{name:"keyword.control.else.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.else.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_extend:{begin:/\p{space}*((@)extend\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.extend.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.extend.scss",patterns:[{include:"#variable"},{include:"#selectors"},{include:"#property_values"}]},at_rule_fontface:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((@)font-face\b)/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.fontface.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.fontface.scss",patterns:[{include:"#function_attributes"}]}]},at_rule_for:{begin:/\p{space}*((@)for\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.for.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.for.scss",patterns:[{match:/(==|!=|<=|>=|<|>|from|to|through)/dgv,name:"keyword.control.operator"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},at_rule_forward:{begin:/\p{space}*((@)forward\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.forward.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.forward.scss",patterns:[{match:/\b(as|hide|show)\b/dgv,name:"keyword.control.operator"},{captures:{"1":{name:"entity.other.attribute-name.module.scss"},"2":{name:"punctuation.definition.wildcard.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\*)/dgv},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"entity.name.function.scss"},{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"}]},at_rule_function:{patterns:[{begin:/\p{space}*((@)function\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.function.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"keyword.control.at-rule.function.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},match:/\p{space}*((@)function\b)\p{space}*/dgv,name:"meta.at-rule.function.scss"}]},at_rule_if:{begin:/\p{space}*((@)if\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.if.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.if.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"}]},at_rule_import:{begin:/\p{space}*((@)import\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.import.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;)|(?=\}))/dgv,name:"meta.at-rule.import.scss",patterns:[{include:"#variable"},{include:"#string_single"},{include:"#string_double"},{include:"#functions"},{include:"#comment_line"}]},at_rule_include:{patterns:[{begin:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"},"4":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.include.scss",patterns:[{include:"#function_attributes"}]},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"entity.name.function.scss"}},match:/(?<=@include)\p{space}+(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv},{captures:{"0":{name:"meta.at-rule.include.scss"},"1":{name:"keyword.control.at-rule.include.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)include)\b/dgv}]},at_rule_keyframes:{begin:/(?<=(?<=^|\n(?!$))|\p{space})(@)(?:-(?:webkit|moz)-)?keyframes\b/dgv,beginCaptures:{"0":{name:"keyword.control.at-rule.keyframes.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?<=\})/dgv,name:"meta.at-rule.keyframes.scss",patterns:[{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@keyframes)\p{space}+((?:[_A-Za-z][\-\p{L}\p{M}\p{N}\p{Pc}]|-[_A-Za-z])[\-\p{L}\p{M}\p{N}\p{Pc}]*)/dgv},{begin:/(?<=@keyframes)\p{space}+(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/(?<=@keyframes)\p{space}+(')/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.scss"}},contentName:"entity.name.function.scss",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.keyframes.begin.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.keyframes.end.scss"}},patterns:[{match:/\b(?:(?:100|[1-9]\p{Nd}|\p{Nd})%|from|to)(?=\p{space}*\{)/dgv,name:"entity.other.attribute-name.scss"},{include:"#flow_control"},{include:"#interpolation"},{include:"#property_list"},{include:"#rules"}]}]},at_rule_media:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((@)media)\b/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.media.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.media.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{match:/\b(only)\b/dgv,name:"keyword.control.operator.css.scss"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.media-query.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.media-query.end.bracket.round.scss"}},name:"meta.property-list.media-query.scss",patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=$|\n)|(?![\-a-z])/dgv,name:"meta.property-name.media-query.scss",patterns:[{include:"source.css#media-features"},{include:"source.css#property-names"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.media-query.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},{include:"#variable"},{include:"#conditional_operators"},{include:"source.css#media-types"}]}]},at_rule_mixin:{patterns:[{begin:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.scss"},"2":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},name:"meta.at-rule.mixin.scss",patterns:[{include:"#function_attributes"}]},{captures:{"1":{name:"entity.name.function.scss"}},match:/(?<=@mixin)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"meta.at-rule.mixin.scss"},{captures:{"1":{name:"keyword.control.at-rule.mixin.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)mixin)\b/dgv,name:"meta.at-rule.mixin.scss"}]},at_rule_namespace:{patterns:[{begin:/(?<=@namespace)\p{space}+(?=url)/dgv,end:/(?=;|(?=$|\n))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{begin:/(?<=@namespace)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv,captures:{"1":{name:"entity.name.namespace-prefix.scss"}},end:/(?=;|(?=$|\n))/dgv,name:"meta.at-rule.namespace.scss",patterns:[{include:"#variables"},{include:"#property_values"},{include:"#string_single"},{include:"#string_double"}]},{captures:{"1":{name:"keyword.control.at-rule.namespace.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/((@)namespace)\b/dgv,name:"meta.at-rule.namespace.scss"}]},at_rule_option:{captures:{"1":{name:"keyword.control.at-rule.charset.scss"},"2":{name:"punctuation.definition.keyword.scss"}},match:/(?<=^|\n(?!$))\p{space}*((@)option\b)\p{space}*/dgv,name:"meta.at-rule.option.scss"},at_rule_page:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((@)page)(?=:|\p{space})\p{space}*([\-\:\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,captures:{"1":{name:"keyword.control.at-rule.page.scss"},"2":{name:"punctuation.definition.keyword.scss"},"3":{name:"entity.name.function.scss"}},end:/\p{space}*(?=\{)/dgv,name:"meta.at-rule.page.scss"}]},at_rule_return:{begin:/\p{space}*((@)(return)\b)/dgv,captures:{"1":{name:"keyword.control.return.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*((?=;))/dgv,name:"meta.at-rule.return.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},at_rule_supports:{begin:/(?<=(?<=^|\n(?!$))|\p{space})(@)supports\b/dgv,captures:{"0":{name:"keyword.control.at-rule.supports.scss"},"1":{name:"punctuation.definition.keyword.scss"}},end:/(?=\{)|(?=$|\n)/dgv,name:"meta.at-rule.supports.scss",patterns:[{include:"#logical_operators"},{include:"#properties"},{match:/\(/dgv,name:"punctuation.definition.condition.begin.bracket.round.scss"},{match:/\)/dgv,name:"punctuation.definition.condition.end.bracket.round.scss"}]},at_rule_use:{begin:/\p{space}*((@)use\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.at-rule.use.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.use.scss",patterns:[{match:/\b(as|with)\b/dgv,name:"keyword.control.operator"},{match:/\b[\p{L}\p{M}\p{N}\p{Pc}\-]+\b/dgv,name:"variable.scss"},{match:/\*/dgv,name:"variable.language.expanded-namespace.scss"},{include:"#string_single"},{include:"#string_double"},{include:"#comment_line"},{include:"#comment_block"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.parameters.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]}]},at_rule_warn:{begin:/\p{space}*((@)(warn|debug|error)\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.warn.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=;)/dgv,name:"meta.at-rule.warn.scss",patterns:[{include:"#variable"},{include:"#string_double"},{include:"#string_single"}]},at_rule_while:{begin:/\p{space}*((@)while\b)\p{space}*/dgv,captures:{"1":{name:"keyword.control.while.scss"},"2":{name:"punctuation.definition.keyword.scss"}},end:/\p{space}*(?=\})/dgv,name:"meta.at-rule.while.scss",patterns:[{include:"#conditional_operators"},{include:"#variable"},{include:"#property_values"},{include:"$self"}]},comment_block:{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.scss"}},name:"comment.block.scss"},comment_docblock:{begin:/\/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/(?=(?=$|\n))/dgv,name:"comment.block.documentation.scss",patterns:[{include:"source.sassdoc"}]},comment_line:{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.scss"}},end:/\n/dgv,name:"comment.line.scss"},comparison_operators:{match:/==|!=|<=|>=|<|>/dgv,name:"keyword.operator.comparison.scss"},conditional_operators:{patterns:[{include:"#comparison_operators"},{include:"#logical_operators"}]},constant_default:{match:/!default/dgv,name:"keyword.other.default.scss"},constant_functions:{begin:/(?:([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.))?([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()/dgv,beginCaptures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"support.function.misc.scss"},"4":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},constant_important:{match:/!important/dgv,name:"keyword.other.important.scss"},constant_mathematical_symbols:{match:/\b(\+|-|\*|\/)\b/dgv,name:"support.constant.mathematical-symbols.scss"},constant_optional:{match:/!optional/dgv,name:"keyword.other.optional.scss"},constant_sass_functions:{begin:/(headings|stylesheet-url|rgba?|hsla?|ie-hex-str|red|green|blue|alpha|opacity|hue|saturation|lightness|prefixed|prefix|-moz|-svg|-css2|-pie|-webkit|-ms|font-(?:files|url)|grid-image|image-(?:width|height|url|color)|sprites?|sprite-(?:map|map-name|file|url|position)|inline-(?:font-files|image)|opposite-position|grad-point|grad-end-position|color-stops|color-stops-in-percentages|grad-color-stops|(?:radial|linear)-(?:gradient|svg-gradient)|opacify|fade-?in|transparentize|fade-?out|lighten|darken|saturate|desaturate|grayscale|adjust-(?:hue|lightness|saturation|color)|scale-(?:lightness|saturation|color)|change-color|spin|complement|invert|mix|-compass-(?:list|space-list|slice|nth|list-size)|blank|compact|nth|first-value-of|join|length|append|nest|append-selector|headers|enumerate|range|percentage|unitless|unit|if|type-of|comparable|elements-of-type|quote|unquote|escape|e|sin|cos|tan|abs|round|ceil|floor|pi|translate(?:X|Y))(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},flow_control:{patterns:[{include:"#at_rule_if"},{include:"#at_rule_else"},{include:"#at_rule_warn"},{include:"#at_rule_for"},{include:"#at_rule_while"},{include:"#at_rule_each"},{include:"#at_rule_return"}]},function_attributes:{patterns:[{match:/:/dgv,name:"punctuation.separator.key-value.scss"},{include:"#general"},{include:"#property_values"},{match:/[\=\{\}\?\;\@]/dgv,name:"invalid.illegal.scss"}]},functions:{patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\()\p{space}*/dgv,beginCaptures:{"1":{name:"support.function.misc.scss"},"2":{name:"punctuation.section.function.scss"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.scss"}},patterns:[{include:"#parameters"}]},{match:/([\p{L}\p{M}\p{N}\p{Pc}\-]+)/dgv,name:"support.function.misc.scss"}]},general:{patterns:[{include:"#variable"},{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"}]},interpolation:{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.interpolation.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.interpolation.end.bracket.curly.scss"}},name:"variable.interpolation.scss",patterns:[{include:"#variable"},{include:"#property_values"}]},logical_operators:{match:/\b(not|or|and)\b/dgv,name:"keyword.operator.logical.scss"},map:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.map.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.map.end.bracket.round.scss"}},name:"meta.definition.variable.map.scss",patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{captures:{"1":{name:"support.type.map.key.scss"},"2":{name:"punctuation.separator.key-value.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)\p{space}*(:)/dgv},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"},{include:"#map"},{include:"#variable"},{include:"#property_values"}]},operators:{match:/[\-\+\*\/](?!\p{space}*[\-\+\*\/])/dgv,name:"keyword.operator.css"},parameters:{patterns:[{include:"#variable"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#function_attributes"}]},{include:"#property_values"},{include:"#comment_block"},{match:/[^'"\,\) \t]+/dgv,name:"variable.parameter.url.scss"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]},parent_selector_suffix:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(?<=&)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\$|\})+)(?=(?=$|\n)|[\p{space}\,\.\#\)\[\:\{\>\+\~\|]|\/\*)/dgv,name:"entity.other.attribute-name.parent-selector-suffix.css"},properties:{patterns:[{begin:/(?<![\-a-z])(?=[\-a-z])/dgv,end:/(?=$|\n)|(?![\-a-z])/dgv,name:"meta.property-name.scss",patterns:[{include:"source.css#property-names"},{include:"#at_rule_include"}]},{begin:/(:)\p{space}*(?!(\p{space}*\{))/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.scss"}},contentName:"meta.property-value.scss",end:/\p{space}*(;|(?=\}|\)))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},property_list:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.property-list.begin.bracket.curly.scss"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.property-list.end.bracket.curly.scss"}},name:"meta.property-list.scss",patterns:[{include:"#flow_control"},{include:"#rules"},{include:"#properties"},{include:"$self"}]},property_values:{patterns:[{include:"#string_single"},{include:"#string_double"},{include:"#constant_functions"},{include:"#constant_sass_functions"},{include:"#constant_important"},{include:"#constant_default"},{include:"#constant_optional"},{include:"source.css#numeric-values"},{include:"source.css#property-keywords"},{include:"source.css#color-keywords"},{include:"source.css#property-names"},{include:"#constant_mathematical_symbols"},{include:"#operators"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.begin.bracket.round.scss"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.round.scss"}},patterns:[{include:"#general"},{include:"#property_values"}]}]},rules:{patterns:[{include:"#general"},{include:"#at_rule_extend"},{include:"#at_rule_content"},{include:"#at_rule_include"},{include:"#at_rule_media"},{include:"#selectors"}]},selector_attribute:{captures:{"1":{name:"punctuation.definition.attribute-selector.begin.bracket.square.scss"},"2":{name:"entity.other.attribute-name.attribute.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"3":{name:"keyword.operator.scss"},"4":{name:"string.unquoted.attribute-value.scss",patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"5":{name:"string.quoted.double.attribute-value.scss"},"6":{name:"punctuation.definition.string.begin.scss"},"7":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"8":{name:"punctuation.definition.string.end.scss"},"9":{name:"string.quoted.single.attribute-value.scss"},"10":{name:"punctuation.definition.string.begin.scss"},"11":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]},"12":{name:"punctuation.definition.string.end.scss"},"13":{name:"punctuation.definition.attribute-selector.end.bracket.square.scss"}},match:/(\[)\p{space}*((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+?)(?:\p{space}*([\~\|\^\$\*]?=)\p{space}*(?:((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)|((")([^\n]*?)("))|((')([^\n]*?)('))))?\p{space}*(\])/dgiv,name:"meta.attribute-selector.scss"},selector_class:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.scss"}]}},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"},selector_custom:{match:new EmulatedRegExp("\\b([a-zA-Z0-9]+(-[a-zA-Z0-9]+)+)(?=\\.|(?:(?=($E$\\p{space}+))\\3)[^\\:]|\\p{space}*[\\,\\[\\{]|:(link|visited|hover|active|focus|target|lang|disabled|enabled|checked|indeterminate|root|nth-(child|last-child|of-type|last-of-type)|first-child|last-child|first-of-type|last-of-type|only-child|only-of-type|empty|not|valid|invalid)(\\([0-9A-Za-z]*\\))?)","dgv",{"useEmulationGroups":true}),name:"entity.name.tag.custom.scss"},selector_id:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(#)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.?\$|\})+)(?=(?=$|\n)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.id.css"},selector_placeholder:{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{patterns:[{include:"#interpolation"},{match:/\\([0-9a-fA-F]{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{match:/\$|\}/dgv,name:"invalid.illegal.identifier.scss"}]}},match:/(%)((?:[\-a-zA-Z_0-9]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n])|#\{|\.\$|\$|\})+)(?=;|(?=$|\n)|[\p{space}\,\#\)\[\:\{\>\+\~\|]|\.[^\$]|\/\*)/dgv,name:"entity.other.attribute-name.placeholder.css"},selector_pseudo_class:{patterns:[{begin:/((:)\bnth-(?:child|last-child|of-type|last-of-type))(\()/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.definition.pseudo-class.begin.bracket.round.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.pseudo-class.end.bracket.round.css"}},patterns:[{include:"#interpolation"},{match:/\p{Nd}+/dgv,name:"constant.numeric.css"},{match:/(?<=\p{Nd})n\b|\b(n|even|odd)\b/dgv,name:"constant.other.scss"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.scss"}]},{include:"source.css#pseudo-classes"},{include:"source.css#pseudo-elements"},{include:"source.css#functional-pseudo-classes"}]},selectors:{patterns:[{include:"source.css#tag-names"},{include:"#selector_custom"},{include:"#selector_class"},{include:"#selector_id"},{include:"#selector_pseudo_class"},{include:"#tag_wildcard"},{include:"#tag_parent_reference"},{include:"source.css#pseudo-elements"},{include:"#selector_attribute"},{include:"#selector_placeholder"},{include:"#parent_selector_suffix"}]},string_double:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.double.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},string_single:{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.scss"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.scss"}},name:"string.quoted.single.scss",patterns:[{match:/\\(\p{AHex}{1,6}|[^\n])/dgv,name:"constant.character.escape.scss"},{include:"#interpolation"}]},tag_parent_reference:{match:/&/dgv,name:"entity.name.tag.reference.scss"},tag_wildcard:{match:/\*/dgv,name:"entity.name.tag.wildcard.scss"},variable:{patterns:[{include:"#variables"},{include:"#interpolation"}]},variable_setting:{begin:/(?=\$[\p{L}\p{M}\p{N}\p{Pc}\-]+\p{space}*:)/dgv,contentName:"meta.definition.variable.scss",end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.rule.scss"}},patterns:[{match:/\$[\p{L}\p{M}\p{N}\p{Pc}\-]+(?=\p{space}*:)/dgv,name:"variable.scss"},{begin:/:/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.scss"}},end:/(?=;)/dgv,patterns:[{include:"#comment_docblock"},{include:"#comment_block"},{include:"#comment_line"},{include:"#map"},{include:"#property_values"},{include:"#variable"},{match:/,/dgv,name:"punctuation.separator.delimiter.scss"}]}]},variables:{patterns:[{captures:{"1":{name:"variable.scss"},"2":{name:"punctuation.access.module.scss"},"3":{name:"variable.scss"}},match:/\b([\p{L}\p{M}\p{N}\p{Pc}\-]+)(\.)(\$[\p{L}\p{M}\p{N}\p{Pc}\-]+)\b/dgv},{match:/(\$|--)[A-Za-z0-9_\-]+\b/dgv,name:"variable.scss"}]}},scopeName:"source.css.scss",embeddedLangs:["css"],aliases:undefined})
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
...css,
|
|
8
|
+
lang
|
|
9
|
+
]
|
package/dist/sdbl.d.mts
ADDED
package/dist/sdbl.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"1C (Query)",fileTypes:["sdbl","query"],firstLineMatch:/Выбрать|Select(\p{space}+Разрешенные|\p{space}+Allowed)?(\p{space}+Различные|\p{space}+Distinct)?(\p{space}+Первые|\p{space}+Top)?[^\n]*/dgiv,name:"sdbl",patterns:[{match:/((?<=^|\n(?!$))\p{space}*\/\/[^\n]*(?=$|\n))/dgv,name:"comment.line.double-slash.sdbl"},{begin:/\/\//dgv,end:/(?=$|\n)/dgv,name:"comment.line.double-slash.sdbl"},{begin:/"/dgv,end:/"(?!["])/dgv,name:"string.quoted.double.sdbl",patterns:[{match:/""/dgv,name:"constant.character.escape.sdbl"},{match:/((?<=^|\n(?!$))\p{space}*\/\/[^\n]*(?=$|\n))/dgv,name:"comment.line.double-slash.sdbl"}]},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Неопределено|Undefined|Истина|True|Ложь|False|NULL)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgiv,name:"constant.language.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(\p{Nd}+\.?\p{Nd}*)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgv,name:"constant.numeric.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Выбор|Case|Когда|When|Тогда|Then|Иначе|Else|Конец|End)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgiv,name:"keyword.control.conditional.sdbl"},{match:/(?<!КАК\p{space}|AS\p{space})(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(НЕ|NOT|И|AND|ИЛИ|OR|В\p{space}+ИЕРАРХИИ|IN\p{space}+HIERARCHY|В|In|Между|Between|Есть(\p{space}+НЕ)?\p{space}+NULL|Is(\p{space}+NOT)?\p{space}+NULL|Ссылка|Refs|Подобно|Like)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgiv,name:"keyword.operator.logical.sdbl"},{match:/<=|>=|=|<|>/dgv,name:"keyword.operator.comparison.sdbl"},{match:/(\+|-|\*|\/|%)/dgv,name:"keyword.operator.arithmetic.sdbl"},{match:/(,|;)/dgv,name:"keyword.operator.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Выбрать|Select|Разрешенные|Allowed|Различные|Distinct|Первые|Top|Как|As|ПустаяТаблица|EmptyTable|Поместить|Into|Уничтожить|Drop|Из|From|((Левое|Left|Правое|Right|Полное|Full)\p{space}+(Внешнее\p{space}+|Outer\p{space}+)?Соединение|Join)|((Внутреннее|Inner)\p{space}+Соединение|Join)|Где|Where|(Сгруппировать\p{space}+По(\p{space}+Группирующим\p{space}+Наборам)?)|(Group\p{space}+By(\p{space}+Grouping\p{space}+Set)?)|Имеющие|Having|Объединить(\p{space}+Все)?|Union(\p{space}+All)?|(Упорядочить\p{space}+По)|(Order\p{space}+By)|Автоупорядочивание|Autoorder|Итоги|Totals|По(\p{space}+Общие)?|By(\p{space}+Overall)?|(Только\p{space}+)?Иерархия|(Only\p{space}+)?Hierarchy|Периодами|Periods|Индексировать|Index|Выразить|Cast|Возр|Asc|Убыв|Desc|Для\p{space}+Изменения|(For\p{space}+Update(\p{space}+Of)?)|Спецсимвол|Escape|СгруппированоПо|GroupedBy)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgiv,name:"keyword.control.sdbl"},{comment:"Функции языка запросов",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Значение|Value|ДатаВремя|DateTime|Тип|Type)(?=\()/dgiv,name:"support.function.sdbl"},{comment:"Функции работы со строками",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Подстрока|Substring|НРег|Lower|ВРег|Upper|Лев|Left|Прав|Right|ДлинаСтроки|StringLength|СтрНайти|StrFind|СтрЗаменить|StrReplace|СокрЛП|TrimAll|СокрЛ|TrimL|СокрП|TrimR)(?=\()/dgiv,name:"support.function.sdbl"},{comment:"Функции работы с датами",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Год|Year|Квартал|Quarter|Месяц|Month|ДеньГода|DayOfYear|День|Day|Неделя|Week|ДеньНедели|Weekday|Час|Hour|Минута|Minute|Секунда|Second|НачалоПериода|BeginOfPeriod|КонецПериода|EndOfPeriod|ДобавитьКДате|DateAdd|РазностьДат|DateDiff|Полугодие|HalfYear|Декада|TenDays)(?=\()/dgiv,name:"support.function.sdbl"},{comment:"Функции работы с числами",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(ACOS|COS|ASIN|SIN|ATAN|TAN|EXP|POW|LOG|LOG10|Цел|Int|Окр|Round|SQRT)(?=\()/dgiv,name:"support.function.sdbl"},{comment:"Агрегатные функции",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(Сумма|Sum|Среднее|Avg|Минимум|Min|Максимум|Max|Количество|Count)(?=\()/dgiv,name:"support.function.sdbl"},{comment:"Прочие функции",match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?<=^|\n(?!$)))(ЕстьNULL|IsNULL|Представление|Presentation|ПредставлениеСсылки|RefPresentation|ТипЗначения|ValueType|АвтономерЗаписи|RecordAutoNumber|РазмерХранимыхДанных|StoredDataSize|УникальныйИдентификатор|UUID)(?=\()/dgiv,name:"support.function.sdbl"},{match:/(?<=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.])(Число|Number|Строка|String|Дата|Date|Булево|Boolean)(?=[^\p{L}\p{M}\p{N}\p{Pc}а-яё\.]|(?=$|\n))/dgiv,name:"support.type.sdbl"},{match:/(&[\p{L}\p{M}\p{N}\p{Pc}а-яё]+)/dgv,name:"variable.parameter.sdbl"}],scopeName:"source.sdbl",embeddedLangs:undefined,aliases:["1c-query"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/sh.d.mts
ADDED
package/dist/sh.mjs
ADDED