@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/typst.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Typst",name:"typst",patterns:[{include:"#markup"}],repository:{arguments:{patterns:[{match:/\b[A-Za-z_][0-9A-Za-z_\-]*(?=:)/dgv,name:"variable.parameter.typst"},{include:"#code"}]},code:{patterns:[{include:"#common"},{begin:/\{/dgv,captures:{"0":{name:"punctuation.definition.block.code.typst"}},end:/\}/dgv,name:"meta.block.code.typst",patterns:[{include:"#code"}]},{begin:/\[/dgv,captures:{"0":{name:"punctuation.definition.block.content.typst"}},end:/\]/dgv,name:"meta.block.content.typst",patterns:[{include:"#markup"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\n/dgv,name:"comment.line.double-slash.typst"},{match:/:/dgv,name:"punctuation.separator.colon.typst"},{match:/,/dgv,name:"punctuation.separator.comma.typst"},{match:/=>|\.\./dgv,name:"keyword.operator.typst"},{match:/==|!=|<=|<|>=|>/dgv,name:"keyword.operator.relational.typst"},{match:/\+=|-=|\*=|\/=|=/dgv,name:"keyword.operator.assignment.typst"},{match:/\+|\*|\/|(?<![A-Za-z_][0-9A-Za-z_\-]*)-(?![0-9A-Za-z]_-\]*[A-Za-z_])/dgv,name:"keyword.operator.arithmetic.typst"},{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.word.typst"},{match:/\b(let|as|in|set|show)\b/dgv,name:"keyword.other.typst"},{match:/\b(if|else)\b/dgv,name:"keyword.control.conditional.typst"},{match:/\b(for|while|break|continue)\b/dgv,name:"keyword.control.loop.typst"},{match:/\b(import|include|export)\b/dgv,name:"keyword.control.import.typst"},{match:/\b(return)\b/dgv,name:"keyword.control.flow.typst"},{include:"#constants"},{comment:"Function name",match:/\b[A-Za-z_][0-9A-Za-z_\-]*!?(?=\[|\()/dgv,name:"entity.name.function.typst"},{comment:"Function name",match:/(?<=\bshow\p{space}*)\b[A-Za-z_][0-9A-Za-z_\-]*(?=\p{space}*[\:\.])/dgv,name:"entity.name.function.typst"},{begin:/(?<=\b[A-Za-z_][0-9A-Za-z_\-]*!?)\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},comment:"Function arguments",end:/\)/dgv,patterns:[{include:"#arguments"}]},{match:/\b[A-Za-z_][0-9A-Za-z_\-]*\b/dgv,name:"variable.other.typst"},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},end:/\)|(?=;)/dgv,name:"meta.group.typst",patterns:[{include:"#code"}]}]},comments:{patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\*\//dgv,name:"comment.block.typst",patterns:[{include:"#comments"}]},{begin:/(?<!:)\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\n/dgv,name:"comment.line.double-slash.typst",patterns:[{include:"#comments"}]}]},common:{patterns:[{include:"#comments"}]},constants:{patterns:[{match:/\bnone\b/dgv,name:"constant.language.none.typst"},{match:/\bauto\b/dgv,name:"constant.language.auto.typst"},{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?(mm|pt|cm|in|em)\b/dgv,name:"constant.numeric.length.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?(rad|deg)\b/dgv,name:"constant.numeric.angle.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?%/dgv,name:"constant.numeric.percentage.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?fr/dgv,name:"constant.numeric.fr.typst"},{match:/\b\p{Nd}+\b/dgv,name:"constant.numeric.integer.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?\b/dgv,name:"constant.numeric.float.typst"},{begin:/"/dgv,captures:{"0":{name:"punctuation.definition.string.typst"}},end:/"/dgv,name:"string.quoted.double.typst",patterns:[{match:/\\([\\"nrt]|u\{?[0-9a-zA-Z]*\}?)/dgv,name:"constant.character.escape.string.typst"}]},{begin:/\$/dgv,captures:{"0":{name:"punctuation.definition.string.math.typst"}},end:/\$/dgv,name:"string.other.math.typst"}]},markup:{patterns:[{include:"#common"},{match:/\\([\\\/\[\]\{\}\#\*_\=\~\`\$-\.]|u\{[0-9a-zA-Z]*\}?)/dgv,name:"constant.character.escape.content.typst"},{match:/\\/dgv,name:"punctuation.definition.linebreak.typst"},{match:/~/dgv,name:"punctuation.definition.nonbreaking-space.typst"},{match:/-\?/dgv,name:"punctuation.definition.shy.typst"},{match:/---/dgv,name:"punctuation.definition.em-dash.typst"},{match:/--/dgv,name:"punctuation.definition.en-dash.typst"},{match:/\.\.\./dgv,name:"punctuation.definition.ellipsis.typst"},{match:/:([a-zA-Z0-9]+:)+/dgv,name:"constant.symbol.typst"},{begin:/((?<=^|\n(?!$))\*|\*(?=$|\n)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)\*)|(\*(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))/dgv,captures:{"0":{name:"punctuation.definition.bold.typst"}},end:/((?<=^|\n(?!$))\*|\*(?=$|\n)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)\*)|(\*(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))|\n|(?=\])/dgv,name:"markup.bold.typst",patterns:[{include:"#markup"}]},{begin:/((?<=^|\n(?!$))_|_(?=$|\n)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)_)|(_(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))/dgv,captures:{"0":{name:"punctuation.definition.italic.typst"}},end:/((?<=^|\n(?!$))_|_(?=$|\n)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)_)|(_(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))|\n|(?=\])/dgv,name:"markup.italic.typst",patterns:[{include:"#markup"}]},{match:/https?:\/\/[0-9a-zA-Z\~\/\%\#\&\='\,\;\.\+\?]*/dgv,name:"markup.underline.link.typst"},{begin:/`{3,}/dgv,captures:{"0":{name:"punctuation.definition.raw.typst"}},end:/\x00/dgv,name:"markup.raw.block.typst"},{begin:/`/dgv,captures:{"0":{name:"punctuation.definition.raw.typst"}},end:/`/dgv,name:"markup.raw.inline.typst"},{begin:/\$/dgv,captures:{"0":{name:"punctuation.definition.string.math.typst"}},end:/\$/dgv,name:"string.other.math.typst"},{begin:/(?<=^|\n(?!$))\p{space}*=+\p{space}+/dgv,beginCaptures:{"0":{name:"punctuation.definition.heading.typst"}},contentName:"entity.name.section.typst",end:/\n|(?=<)/dgv,name:"markup.heading.typst",patterns:[{include:"#markup"}]},{match:/(?<=^|\n(?!$))\p{space}*-\p{space}+/dgv,name:"punctuation.definition.list.unnumbered.typst"},{match:/(?<=^|\n(?!$))\p{space}*(\p{Nd}*\.|\+)\p{space}+/dgv,name:"punctuation.definition.list.numbered.typst"},{captures:{"1":{name:"punctuation.definition.list.description.typst"},"2":{name:"markup.list.term.typst"}},match:/(?<=^|\n(?!$))\p{space}*(\/)\p{space}+([^\:]*:)/dgv},{captures:{"1":{name:"punctuation.definition.label.typst"}},match:/<[A-Za-z_][0-9A-Za-z_\-]*>/dgv,name:"entity.other.label.typst"},{captures:{"1":{name:"punctuation.definition.reference.typst"}},match:/(@)[A-Za-z_][0-9A-Za-z_\-]*/dgv,name:"entity.other.reference.typst"},{begin:/(#)(let|set|show)\b/dgv,beginCaptures:{"0":{name:"keyword.other.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(;)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.terminator.statement.typst"}},patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(as|in)\b/dgv,name:"keyword.other.typst"},{begin:/((#)if|(?<=(\}|\])\p{space}*)else)\b/dgv,beginCaptures:{"0":{name:"keyword.control.conditional.typst"},"2":{name:"punctuation.definition.keyword.typst"}},end:/\n|(?=\])|(?<=\}|\])/dgv,patterns:[{include:"#code"}]},{begin:/(#)(for|while)\b/dgv,beginCaptures:{"0":{name:"keyword.control.loop.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(?=\])|(?<=\}|\])/dgv,patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(break|continue)\b/dgv,name:"keyword.control.loop.typst"},{begin:/(#)(import|include|export)\b/dgv,beginCaptures:{"0":{name:"keyword.control.import.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(;)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.terminator.statement.typst"}},patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(return)\b/dgv,name:"keyword.control.flow.typst"},{captures:{"2":{name:"punctuation.definition.function.typst"}},comment:"Function name",match:/((#)[A-Za-z_][0-9A-Za-z_\-]*!?)(?=\[|\()/dgv,name:"entity.name.function.typst"},{begin:/(?<=#[A-Za-z_][0-9A-Za-z_\-]*!?)\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},comment:"Function arguments",end:/\)/dgv,patterns:[{include:"#arguments"}]},{captures:{"1":{name:"punctuation.definition.variable.typst"}},match:/(#)[A-Za-z_][\.0-9A-Za-z_\-]*/dgv,name:"entity.other.interpolated.typst"},{begin:/#/dgv,end:/\p{space}/dgv,name:"meta.block.content.typst",patterns:[{include:"#code"}]}]}},scopeName:"source.typst",embeddedLangs:undefined,aliases:["typ"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/v.d.mts
ADDED
package/dist/v.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"V",fileTypes:[".v",".vh",".vsh",".vv","v.mod"],name:"v",patterns:[{include:"#comments"},{include:"#function-decl"},{include:"#as-is"},{include:"#attributes"},{include:"#assignment"},{include:"#module-decl"},{include:"#import-decl"},{include:"#hash-decl"},{include:"#brackets"},{include:"#builtin-fix"},{include:"#escaped-fix"},{include:"#operators"},{include:"#function-limited-overload-decl"},{include:"#function-extend-decl"},{include:"#function-exist"},{include:"#generic"},{include:"#constants"},{include:"#type"},{include:"#enum"},{include:"#interface"},{include:"#struct"},{include:"#keywords"},{include:"#storage"},{include:"#numbers"},{include:"#strings"},{include:"#types"},{include:"#punctuations"},{include:"#variable-assign"},{include:"#function-decl"}],repository:{"as-is":{begin:/\p{space}+(as|is)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.$1.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]*)/dgv,endCaptures:{"1":{name:"entity.name.alias.v"}}},assignment:{captures:{"1":{patterns:[{include:"#operators"}]}},match:/\p{space}+((?::|\+|-|\*|\/|%|&|\||\^)?=)\p{space}+/dgv,name:"meta.definition.variable.v"},attributes:{captures:{"1":{name:"meta.function.attribute.v"},"2":{name:"punctuation.definition.begin.bracket.square.v"},"3":{name:"storage.modifier.attribute.v"},"4":{name:"punctuation.definition.end.bracket.square.v"}},match:/(?<=^|\n(?!$))\p{space}*((\[)(deprecated|unsafe|console|heap|manualfree|typedef|live|inline|flag|ref_only|direct_array_access|callconv)(\]))/dgv,name:"meta.definition.attribute.v"},brackets:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.curly.end.v"}},patterns:[{include:"$self"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.round.begin.v"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.round.end.v"}},patterns:[{include:"$self"}]},{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.bracket.square.begin.v"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.bracket.square.end.v"}},patterns:[{include:"$self"}]}]},"builtin-fix":{patterns:[{patterns:[{match:/(const)(?=\p{space}*\()/dgv,name:"storage.modifier.v"},{match:/\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\b(?=\p{space}*\()/dgv,name:"keyword.$1.v"}]},{patterns:[{match:/(\$if|\$else)(?=\p{space}*\()/dgv,name:"keyword.control.v"},{match:/\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b(?=\p{space}*\()/dgv,name:"keyword.control.v"}]},{patterns:[{captures:{"1":{name:"storage.type.numeric.v"}},match:/(?<![^\n])(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\p{space}*\()/dgv,name:"meta.expr.numeric.cast.v"},{captures:{"1":{name:"storage.type.$1.v"}},match:/(bool|byte|byteptr|charptr|voidptr|string|rune|size_t|[ui]size)(?=\p{space}*\()/dgv,name:"meta.expr.bool.cast.v"}]}]},comments:{patterns:[{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.v"}},name:"comment.block.documentation.v",patterns:[{include:"#comments"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.v"}},end:/(?=$|\n)/dgv,name:"comment.line.double-slash.v"}]},constants:{match:/\b(true|false|none)\b/dgv,name:"constant.language.v"},enum:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.enum.v"},"3":{name:"entity.name.enum.v"}},match:/(?<=^|\n(?!$))\p{space}*(?:(pub)?\p{space}+)?(enum)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.enum.v"},"function-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"entity.name.function.v"},"4":{patterns:[{include:"#generic"}]}},match:/(?<=^|\n(?!$))(\bpub\b\p{space}+)?(\bfn\b)\p{space}+(?:\([^\)]+\)\p{space}+)?(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-exist":{captures:{"0":{name:"meta.function.call.v"},"1":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"2":{patterns:[{include:"#generic"}]}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?(?=\p{space}*\()/dgv,name:"meta.support.function.v"},"function-extend-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]},"7":{patterns:[{include:"#generic"}]}},match:/(?<=^|\n(?!$))\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*((?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>))?/dgv,name:"meta.definition.function.v"},"function-limited-overload-decl":{captures:{"1":{name:"storage.modifier.v"},"2":{name:"keyword.fn.v"},"3":{name:"punctuation.definition.bracket.round.begin.v"},"4":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"5":{name:"punctuation.definition.bracket.round.end.v"},"6":{patterns:[{include:"#operators"}]},"7":{name:"punctuation.definition.bracket.round.begin.v"},"8":{patterns:[{include:"#brackets"},{include:"#storage"},{include:"#generic"},{include:"#types"},{include:"#punctuation"}]},"9":{name:"punctuation.definition.bracket.round.end.v"},"10":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.function.v"}]}},match:/(?<=^|\n(?!$))\p{space}*(pub)?\p{space}*(fn)\p{space}*(\()([^\)]*)(\))\p{space}*([\+\-\*\/])?\p{space}*(\()([^\)]*)(\))\p{space}*(?:C\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.definition.function.v"},generic:{patterns:[{captures:{"1":{name:"punctuation.definition.bracket.angle.begin.v"},"2":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.generic.v"}]},"3":{name:"punctuation.definition.bracket.angle.end.v"}},match:/(?<=[\p{L}\p{M}\p{N}\p{Pc}\p{space}\+])(<)([\p{L}\p{M}\p{N}\p{Pc}]+)(>)/dgv,name:"meta.definition.generic.v"}]},"hash-decl":{begin:/(?<=^|\n(?!$))\p{space}*(#)/dgv,end:/(?=$|\n)/dgv,name:"markup.bold.v"},"illegal-name":{match:/\p{Nd}[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},"import-decl":{begin:/(?<=^|\n(?!$))\p{space}*(import)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.import.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.import.v"}},name:"meta.import.v"},interface:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"keyword.interface.v"},"3":{patterns:[{include:"#illegal-name"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.interface.v"}]}},match:/(?<=^|\n(?!$))\p{space}*(?:(pub)?\p{space}+)?(interface)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.interface.v"},keywords:{patterns:[{match:/(\$if|\$else)/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|spawn|goto|defer|return|shared|select|rlock|lock|atomic|asm)\b/dgv,name:"keyword.control.v"},{match:/(?<!@)\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\b/dgv,name:"keyword.$1.v"}]},"module-decl":{begin:/(?<=^|\n(?!$))\p{space}*(module)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.module.v"}},end:/([\p{L}\p{M}\p{N}\p{Pc}\.]+)/dgv,endCaptures:{"1":{name:"entity.name.module.v"}},name:"meta.module.v"},numbers:{patterns:[{match:/(\p{Nd}+(_?))+(\.)(\p{Nd}+[eE][\-\+]?\p{Nd}+)/dgv,name:"constant.numeric.exponential.v"},{match:/(\p{Nd}+(_?))+(\.)(\p{Nd}+)/dgv,name:"constant.numeric.float.v"},{match:/0b(?:[0-1]+_?)+/dgv,name:"constant.numeric.binary.v"},{match:/0o(?:[0-7]+_?)+/dgv,name:"constant.numeric.octal.v"},{match:/0x(?:[0-9a-fA-F]+_?)+/dgv,name:"constant.numeric.hex.v"},{match:/(?:\p{Nd}+[_]?)+/dgv,name:"constant.numeric.integer.v"}]},operators:{patterns:[{match:/(\+|-|\*|\/|%|\+\+|--|>>|<<)/dgv,name:"keyword.operator.arithmetic.v"},{match:/(==|!=|>|<|>=|<=)/dgv,name:"keyword.operator.relation.v"},{match:/(:=|=|\+=|-=|\*=|\/=|%=|&=|\|=|\^=|~=|&&=|\|\|=|>>=|<<=)/dgv,name:"keyword.operator.assignment.v"},{match:/(&|\||\^|~|<(?!<)|>(?!>))/dgv,name:"keyword.operator.bitwise.v"},{match:/(&&|\|\||!)/dgv,name:"keyword.operator.logical.v"},{match:/\?/dgv,name:"keyword.operator.optional.v"}]},punctuation:{patterns:[{match:/\./dgv,name:"punctuation.delimiter.period.dot.v"},{match:/,/dgv,name:"punctuation.delimiter.comma.v"},{match:/:/dgv,name:"punctuation.separator.key-value.colon.v"},{match:/;/dgv,name:"punctuation.definition.other.semicolon.v"},{match:/\?/dgv,name:"punctuation.definition.other.questionmark.v"},{match:/#/dgv,name:"punctuation.hash.v"}]},punctuations:{patterns:[{match:/\./dgv,name:"punctuation.accessor.v"},{match:/,/dgv,name:"punctuation.separator.comma.v"}]},storage:{match:/\b(const|mut|pub)\b/dgv,name:"storage.modifier.v"},"string-escaped-char":{patterns:[{match:/\\([0-7]{3}|[\$abfnrtv\\'"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/dgv,name:"constant.character.escape.v"},{match:/\\[^0-7\$xuUabfnrtv'"]/dgv,name:"invalid.illegal.unknown-escape.v"}]},"string-interpolation":{captures:{"1":{patterns:[{match:/\$\p{Nd}[\.\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"invalid.illegal.v"},{match:/\$([\.\p{L}\p{M}\p{N}\p{Pc}]+|\{[^\n]*?\})/dgv,name:"variable.other.interpolated.v"}]}},match:/(\$([\p{L}\p{M}\p{N}\p{Pc}\.]+|\{[^\n]*?\}))/dgv,name:"meta.string.interpolation.v"},"string-placeholder":{match:/%(\[\p{Nd}+\])?([\+\#\-0 ]{0,2}((\p{Nd}+|\*)?(\.?(\p{Nd}+|\*|(\[\p{Nd}+\])\*?)?(\[\p{Nd}+\])?)?))?[vT\%tbcdoqxXUbeEfFgGsp]/dgv,name:"constant.other.placeholder.v"},strings:{patterns:[{begin:/`/dgv,end:/`/dgv,name:"string.quoted.rune.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(r)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.raw.v",patterns:[{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)'/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/'/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]},{begin:/(c?)"/dgv,beginCaptures:{"1":{name:"storage.type.string.v"}},end:/"/dgv,name:"string.quoted.v",patterns:[{include:"#string-escaped-char"},{include:"#string-interpolation"},{include:"#string-placeholder"}]}]},struct:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(?:(mut|pub(?:\p{space}+mut)?|__global)\p{space}+)?(struct|union)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+)\p{space}*|(\{)/dgv,beginCaptures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.type.v"},"4":{name:"punctuation.definition.bracket.curly.begin.v"}},end:/\p{space}*|(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.bracket.curly.end.v"}},name:"meta.definition.struct.v",patterns:[{include:"#struct-access-modifier"},{captures:{"1":{name:"variable.other.property.v"},"2":{patterns:[{include:"#numbers"},{include:"#brackets"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"storage.type.other.v"}]},"3":{name:"keyword.operator.assignment.v"},"4":{patterns:[{include:"$self"}]}},match:new EmulatedRegExp("\\b([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\p{space}+([\\p{L}\\p{M}\\p{N}\\p{Pc}\\[\\]\\*\\&\\.]+)(?:\\p{space}*(=)\\p{space}*((?:(?=($E$(?:[^\\n](?=(?=$|\\n)|//|/\\*))*))\\5)))?","dgv",{"useEmulationGroups":true})},{include:"#types"},{include:"$self"}]},{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.struct.v"},"3":{name:"entity.name.struct.v"}},match:/(?<=^|\n(?!$))\p{space}*(mut|pub(?:\p{space}+mut)?|__global)\p{space}+?(struct)\p{space}+(?:\p{space}+([\p{L}\p{M}\p{N}\p{Pc}\.]+))?/dgv,name:"meta.definition.struct.v"}]},"struct-access-modifier":{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"punctuation.separator.struct.key-value.v"}},match:/(?<=\p{space}|(?<=^|\n(?!$)))(mut|pub(?:\p{space}+mut)?|__global)(:|\b)/dgv},type:{captures:{"1":{name:"storage.modifier.$1.v"},"2":{name:"storage.type.type.v"},"3":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]},"4":{patterns:[{include:"#illegal-name"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"entity.name.type.v"}]}},match:/(?<=^|\n(?!$))\p{space}*(?:(pub)?\p{space}+)?(type)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}]+\.+)?([\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,name:"meta.definition.type.v"},types:{patterns:[{match:/(?<!\.)\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\b/dgv,name:"storage.type.numeric.v"},{match:/(?<!\.)\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\b/dgv,name:"storage.type.$1.v"}]},"variable-assign":{captures:{"0":{patterns:[{match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.assignment.v"},{include:"#punctuation"}]}},match:/[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*(?:,\p{space}*[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)*(?=\p{space}*(?:=|:=))/dgv}},scopeName:"source.v",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/vala.d.mts
ADDED
package/dist/vala.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Vala",fileTypes:["vala","vapi","gs"],name:"vala",patterns:[{include:"#code"}],repository:{code:{patterns:[{include:"#comments"},{include:"#constants"},{include:"#strings"},{include:"#keywords"},{include:"#types"},{include:"#functions"},{include:"#variables"}]},comments:{patterns:[{captures:{"0":{name:"punctuation.definition.comment.vala"}},match:/\/\*\*\//dgv,name:"comment.block.empty.vala"},{include:"text.html.javadoc"},{include:"#comments-inline"}]},"comments-inline":{patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.vala"}},end:/\*\//dgv,name:"comment.block.vala"},{captures:{"1":{name:"comment.line.double-slash.vala"},"2":{name:"punctuation.definition.comment.vala"}},match:/\p{space}*((\/\/)[^\n]*(?=$|\n)\n?)/dgv}]},constants:{patterns:[{match:/\b((0(x|X)[0-9a-fA-F]*)|((\p{Nd}+\.?\p{Nd}*)|(\.\p{Nd}+))((e|E)(\+|-)?\p{Nd}+)?)([LlFfUuDd]|UL|ul)?\b/dgv,name:"constant.numeric.vala"},{match:/\b([A-Z][A-Z0-9_]+)\b/dgv,name:"variable.other.constant.vala"}]},functions:{patterns:[{match:/([\p{L}\p{M}\p{N}\p{Pc}]+)(?=\p{space}*(<[\p{space}\p{L}\p{M}\p{N}\p{Pc}\.]+>\p{space}*)?\()/dgv,name:"entity.name.function.vala"}]},keywords:{patterns:[{match:/(?<=(?<=^|\n(?!$))|[^\@\p{L}\p{M}\p{N}\p{Pc}\.])(as|do|if|in|is|not|or|and|for|get|new|out|ref|set|try|var|base|case|else|enum|lock|null|this|true|void|weak|async|break|catch|class|const|false|owned|throw|using|while|with|yield|delete|extern|inline|params|public|return|sealed|signal|sizeof|static|struct|switch|throws|typeof|unlock|default|dynamic|ensures|finally|foreach|private|unowned|virtual|abstract|continue|delegate|internal|override|requires|volatile|construct|interface|namespace|protected|errordomain)\b/dgv,name:"keyword.vala"},{match:/(?<=(?<=^|\n(?!$))|[^\@\p{L}\p{M}\p{N}\p{Pc}\.])(bool|double|float|unichar|unichar2|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|string16|string32|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64|va_list|time_t)\b/dgv,name:"keyword.vala"},{match:/(#if|#elif|#else|#endif)/dgv,name:"keyword.vala"}]},strings:{patterns:[{begin:/"""/dgv,end:/"""/dgv,name:"string.quoted.triple.vala"},{begin:/@"/dgv,end:/"/dgv,name:"string.quoted.interpolated.vala",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.vala"},{match:/\$[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"constant.character.escape.vala"},{match:/\$\(([^\)\(]|\(([^\)\(]|\([^\)]*\))*\))*\)/dgv,name:"constant.character.escape.vala"}]},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.vala",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.vala"}]},{begin:/'/dgv,end:/'/dgv,name:"string.quoted.single.vala",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.vala"}]},{match:/\/((\\\/)|([^\/]))*\/(?=\p{space}*[\,\;\)\.\n])/dgv,name:"string.regexp.vala"}]},types:{patterns:[{match:/(?<=(?<=^|\n(?!$))|[^\@\p{L}\p{M}\p{N}\p{Pc}\.])(bool|double|float|unichar|unichar2|char|uchar|int|uint|long|ulong|short|ushort|size_t|ssize_t|string|string16|string32|void|signal|int8|int16|int32|int64|uint8|uint16|uint32|uint64|va_list|time_t)\b/dgv,name:"storage.type.primitive.vala"},{match:/\b([A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"entity.name.type.vala"}]},variables:{patterns:[{match:/\b([_a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*)\b/dgv,name:"variable.other.vala"}]}},scopeName:"source.vala",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/vb.d.mts
ADDED
package/dist/vb.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Visual Basic",name:"vb",patterns:[{match:/\n/dgv,name:"meta.ending-space"},{include:"#round-brackets"},{begin:/(?<=^|\n(?!$))(?=\t)/dgv,end:/(?=[^\t])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.tabs"},"2":{name:"meta.even-tab.tabs"}},match:/(\t)(\t)?/dgv}]},{begin:/(?<=^|\n(?!$))(?= )/dgv,end:/(?=[^ ])/dgv,name:"meta.leading-space",patterns:[{captures:{"1":{name:"meta.odd-tab.spaces"},"2":{name:"meta.even-tab.spaces"}},match:/( )( )?/dgv}]},{captures:{"1":{name:"storage.type.function.asp"},"2":{name:"entity.name.function.asp"},"3":{name:"punctuation.definition.parameters.asp"},"4":{name:"variable.parameter.function.asp"},"5":{name:"punctuation.definition.parameters.asp"}},match:/(?<=^|\n(?!$))\p{space}*((?:[Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn]|[Ssſ][Uu][Bb]))\p{space}*([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(\()([^\)]*)(\))[^\n]*\n?/dgv,name:"meta.function.asp"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=')/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.asp"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.asp"}},end:/\n/dgv,name:"comment.line.apostrophe.asp"}]},{match:/\b(If|Then|Else|ElseIf|Else If|End If|While|Wend|For|To|Each|Case|Select|End Select|Return|Continue|Do|Until|Loop|Next|With|Exit Do|Exit For|Exit Function|Exit Property|Exit Sub|IIf)\b/dgiv,name:"keyword.control.asp"},{match:/\b(Mod|And|Not|Or|Xor|as)\b/dgiv,name:"keyword.operator.asp"},{captures:{"1":{name:"storage.type.asp"},"2":{name:"variable.other.bfeac.asp"},"3":{name:"meta.separator.comma.asp"}},match:/(dim)\p{space}*(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)\p{space}*(,?)/dgiv,name:"variable.other.dim.asp"},{match:/\p{space}*\b(Call|Class|Const|Dim|Redim|Function|Sub|Private Sub|Public Sub|End Sub|End Function|End Class|End Property|Public Property|Private Property|Set|Let|Get|New|Randomize|Option Explicit|On Error Resume Next|On Error GoTo)\b\p{space}*/dgiv,name:"storage.type.asp"},{match:/\b(Private|Public|Default)\b/dgiv,name:"storage.modifier.asp"},{match:/\p{space}*\b(Empty|False|Nothing|Null|True)\b/dgiv,name:"constant.language.asp"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.asp"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.asp"}},name:"string.quoted.double.asp",patterns:[{match:/""/dgv,name:"constant.character.escape.apostrophe.asp"}]},{captures:{"1":{name:"punctuation.definition.variable.asp"}},match:/(\$)[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b\p{space}*/dgv,name:"variable.other.asp"},{match:/\b(Application|ObjectContext|Request|Response|Server|Session)\b/dgiv,name:"support.class.asp"},{match:/\b(Contents|StaticObjects|ClientCertificate|Cookies|Form|QueryString|ServerVariables)\b/dgiv,name:"support.class.collection.asp"},{match:/\b(TotalBytes|Buffer|CacheControl|Charset|ContentType|Expires|ExpiresAbsolute|IsClientConnected|PICS|Status|ScriptTimeout|CodePage|LCID|SessionID|Timeout)\b/dgiv,name:"support.constant.asp"},{match:/\b(Lock|Unlock|SetAbort|SetComplete|BinaryRead|AddHeader|AppendToLog|BinaryWrite|Clear|End|Flush|Redirect|Write|CreateObject|HTMLEncode|MapPath|URLEncode|Abandon|Convert|Regex)\b/dgiv,name:"support.function.asp"},{match:/\b(Application_OnEnd|Application_OnStart|OnTransactionAbort|OnTransactionCommit|Session_OnEnd|Session_OnStart)\b/dgiv,name:"support.function.event.asp"},{match:/(?<=as )(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)/dgiv,name:"support.type.vb.asp"},{match:/\b(Array|Add|Asc|Atn|CBool|CByte|CCur|CDate|CDbl|Chr|CInt|CLng|Conversions|Cos|CreateObject|CSng|CStr|Date|DateAdd|DateDiff|DatePart|DateSerial|DateValue|Day|Derived|Math|Escape|Eval|Exists|Exp|Filter|FormatCurrency|FormatDateTime|FormatNumber|FormatPercent|GetLocale|GetObject|GetRef|Hex|Hour|InputBox|InStr|InStrRev|Int|Fix|IsArray|IsDate|IsEmpty|IsNull|IsNumeric|IsObject|Item|Items|Join|Keys|LBound|LCase|Left|Len|LoadPicture|Log|LTrim|RTrim|Trim|Maths|Mid|Minute|Month|MonthName|MsgBox|Now|Oct|Remove|RemoveAll|Replace|RGB|Right|Rnd|Round|ScriptEngine|ScriptEngineBuildVersion|ScriptEngineMajorVersion|ScriptEngineMinorVersion|Second|SetLocale|Sgn|Sin|Space|Split|Sqr|StrComp|String|StrReverse|Tan|Time|Timer|TimeSerial|TimeValue|TypeName|UBound|UCase|Unescape|VarType|Weekday|WeekdayName|Year)\b/dgiv,name:"support.function.vb.asp"},{match:/-?\b((0(x|X)[0-9a-fA-F]*)|((\p{Nd}+\.?\p{Nd}*)|(\.\p{Nd}+))((e|E)(\+|-)?\p{Nd}+)?)(L|l|UL|ul|u|U|F|f)?\b/dgv,name:"constant.numeric.asp"},{match:/\b(vbtrue|vbfalse|vbcr|vbcrlf|vbformfeed|vblf|vbnewline|vbnullchar|vbnullstring|int32|vbtab|vbverticaltab|vbbinarycompare|vbtextcomparevbsunday|vbmonday|vbtuesday|vbwednesday|vbthursday|vbfriday|vbsaturday|vbusesystemdayofweek|vbfirstjan1|vbfirstfourdays|vbfirstfullweek|vbgeneraldate|vblongdate|vbshortdate|vblongtime|vbshorttime|vbobjecterror|vbEmpty|vbNull|vbInteger|vbLong|vbSingle|vbDouble|vbCurrency|vbDate|vbString|vbObject|vbError|vbBoolean|vbVariant|vbDataObject|vbDecimal|vbByte|vbArray)\b/dgiv,name:"support.type.vb.asp"},{captures:{"1":{name:"entity.name.function.asp"}},match:/(\b[a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?\b)(?=\(\)?)/dgiv,name:"support.function.asp"},{match:/((?<=(\+|=|-|&|\\|\/|<|>|\(|,))\p{space}*\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?!(\(|\.))|\b([a-zA-Z_x7f-xff][a-zA-Z0-9_x7f-xff]*?)\b(?=\p{space}*(\+|=|-|&|\\|\/|<|>|\(|\))))/dgiv,name:"variable.other.asp"},{match:/!|\$|%|&|\*|--|-|\+\+|\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?:|\*=|\/=|%=|\+=|-=|&=|\^=|\b(in|instanceof|new|delete|typeof|void)\b/dgv,name:"keyword.operator.js"}],repository:{"round-brackets":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.round-brackets.begin.asp"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.round-brackets.end.asp"}},name:"meta.round-brackets",patterns:[{include:"source.asp.vb.net"}]}},scopeName:"source.asp.vb.net",embeddedLangs:undefined,aliases:["cmd"]})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/verilog.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Verilog",fileTypes:["v","vh"],name:"verilog",patterns:[{include:"#comments"},{include:"#module_pattern"},{include:"#keywords"},{include:"#constants"},{include:"#strings"},{include:"#operators"}],repository:{comments:{patterns:[{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.verilog"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.verilog"}},end:/\n/dgv,name:"comment.line.double-slash.verilog"}]},{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.c-style.verilog"}]},constants:{patterns:[{match:/`(?!(celldefine|endcelldefine|default_nettype|define|undef|ifdef|ifndef|else|endif|include|resetall|timescale|unconnected_drive|nounconnected_drive))[a-z_A-Z][a-zA-Z0-9_\$]*/dgv,name:"variable.other.constant.verilog"},{match:/\p{Nd}*'[bBoOdDhH][a-fA-F0-9_xXzZ]+\b/dgv,name:"constant.numeric.sized_integer.verilog"},{captures:{"1":{name:"constant.numeric.integer.verilog"},"2":{name:"punctuation.separator.range.verilog"},"3":{name:"constant.numeric.integer.verilog"}},match:/\b(\p{Nd}+)(:)(\p{Nd}+)\b/dgv,name:"meta.block.numeric.range.verilog"},{match:/\b\p{Nd}[\p{Nd}_]*(?:e\p{Nd}+)?\b/dgiv,name:"constant.numeric.integer.verilog"},{match:/\b\p{Nd}+\.\p{Nd}+(?:e\p{Nd}+)?\b/dgiv,name:"constant.numeric.real.verilog"},{match:/#\p{Nd}+/dgv,name:"constant.numeric.delay.verilog"},{match:/\b[01xXzZ]+\b/dgv,name:"constant.numeric.logic.verilog"}]},instantiation_patterns:{patterns:[{include:"#keywords"},{begin:/(?<=^|\n(?!$))\p{space}*(?!always|and|assign|output|input|inout|wire|module)([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)(?<!begin|if)\p{space}*(?=\(|(?=$|\n))/dgv,beginCaptures:{"1":{name:"entity.name.tag.module.reference.verilog"},"2":{name:"entity.name.tag.module.identifier.verilog"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.expression.verilog"}},name:"meta.block.instantiation.parameterless.verilog",patterns:[{include:"#comments"},{include:"#constants"},{include:"#strings"}]},{begin:/(?<=^|\n(?!$))\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(#)(?=\p{space}*\()/dgv,beginCaptures:{"1":{name:"entity.name.tag.module.reference.verilog"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.expression.verilog"}},name:"meta.block.instantiation.with.parameters.verilog",patterns:[{include:"#parenthetical_list"},{match:/[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"entity.name.tag.module.identifier.verilog"}]}]},keywords:{patterns:[{match:/\b(always|and|assign|attribute|begin|buf|bufif0|bufif1|case[xz]?|cmos|deassign|default|defparam|disable|edge|else|end(attribute|case|function|generate|module|primitive|specify|table|task)?|event|for|force|forever|fork|function|generate|genvar|highz(01)|if(none)?|initial|inout|input|integer|join|localparam|medium|module|large|macromodule|nand|negedge|nmos|nor|not|notif(01)|or|output|parameter|pmos|posedge|primitive|pull0|pull1|pulldown|pullup|rcmos|real|realtime|reg|release|repeat|rnmos|rpmos|rtran|rtranif(01)|scalared|signed|small|specify|specparam|strength|strong0|strong1|supply0|supply1|table|task|time|tran|tranif(01)|tri(01)?|tri(and|or|reg)|unsigned|vectored|wait|wand|weak(01)|while|wire|wor|xnor|xor)\b/dgv,name:"keyword.other.verilog"},{match:/(?<=^|\n(?!$))\p{space}*`((cell)?define|default_(decay_time|nettype|trireg_strength)|delay_mode_(path|unit|zero)|ifdef|ifndef|include|end(if|celldefine)|else|(no)?unconnected_drive|resetall|timescale|undef)\b/dgv,name:"keyword.other.compiler.directive.verilog"},{match:/\$(f(open|close)|readmem(b|h)|timeformat|printtimescale|stop|finish|(s|real)?time|realtobits|bitstoreal|rtoi|itor|(f)?(display|write(h|b)))\b/dgv,name:"support.function.system.console.tasks.verilog"},{match:/\$(random|dist_(chi_square|erlang|exponential|normal|poisson|t|uniform))\b/dgv,name:"support.function.system.random_number.tasks.verilog"},{match:/\$((a)?sync\$((n)?and|(n)or)\$(array|plane))\b/dgv,name:"support.function.system.pld_modeling.tasks.verilog"},{match:/\$(q_(initialize|add|remove|full|exam))\b/dgv,name:"support.function.system.stochastic.tasks.verilog"},{match:/\$(hold|nochange|period|recovery|setup(hold)?|skew|width)\b/dgv,name:"support.function.system.timing.tasks.verilog"},{match:/\$(dump(file|vars|off|on|all|limit|flush))\b/dgv,name:"support.function.system.vcd.tasks.verilog"},{match:/\$(countdrivers|list|input|scope|showscopes|(no)?(key|log)|reset(_count|_value)?|(inc)?save|restart|showvars|getpattern|sreadmem(b|h)|scale)/dgv,name:"support.function.non-standard.tasks.verilog"}]},module_pattern:{patterns:[{begin:/\b(module)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)/dgv,beginCaptures:{"1":{name:"storage.type.module.verilog"},"2":{name:"entity.name.type.module.verilog"}},end:/\bendmodule\b/dgv,endCaptures:{"0":{name:"storage.type.module.verilog"}},name:"meta.block.module.verilog",patterns:[{include:"#comments"},{include:"#keywords"},{include:"#constants"},{include:"#strings"},{include:"#instantiation_patterns"},{include:"#operators"}]}]},operators:{patterns:[{match:/\+|-|\*|\/|%|(<|>)=?|(!|=)?==?|!|&&?|\|\|?|\^?~|~\^?/dgv,name:"keyword.operator.verilog"}]},parenthetical_list:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.list.verilog"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.list.verilog"}},name:"meta.block.parenthetical_list.verilog",patterns:[{include:"#parenthetical_list"},{include:"#comments"},{include:"#keywords"},{include:"#constants"},{include:"#strings"}]}]},strings:{patterns:[{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.verilog",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.verilog"}]}]}},scopeName:"source.verilog",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/vhdl.d.mts
ADDED
package/dist/vhdl.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"VHDL",fileTypes:["vhd","vhdl","vho","vht"],name:"vhdl",patterns:[{include:"#block_processing"},{include:"#cleanup"}],repository:{architecture_pattern:{patterns:[{begin:/\b([Aa][Rr][Cc][Hh][Ii][Tt][Ee][Cc][Tt][Uu][Rr][Ee])\p{space}+(([a-zA-z][a-zA-z0-9_]*)|([^\n]+))(?=\p{space})\p{space}+([Oo][Ff])\p{space}+(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))(?=\p{space}*[Ii][Ssſ])\b/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.type.architecture.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"},"7":{name:"entity.name.type.entity.reference.vhdl"},"8":{name:"invalid.illegal.invalid.identifier.vhdl"}},end:/\b([Ee][Nn][Dd])(\p{space}+([Aa][Rr][Cc][Hh][Ii][Tt][Ee][Cc][Tt][Uu][Rr][Ee]))?(\p{space}+((\3)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.type.architecture.end.vhdl"},"7":{name:"invalid.illegal.mismatched.identifier.vhdl"}},name:"support.block.architecture",patterns:[{include:"#block_pattern"},{include:"#function_definition_pattern"},{include:"#procedure_definition_pattern"},{include:"#component_pattern"},{include:"#if_pattern"},{include:"#process_pattern"},{include:"#type_pattern"},{include:"#record_pattern"},{include:"#for_pattern"},{include:"#entity_instantiation_pattern"},{include:"#component_instantiation_pattern"},{include:"#cleanup"}]}]},attribute_list:{patterns:[{begin:/'\(/dgv,beginCaptures:{"0":{name:"punctuation.vhdl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_list"},{include:"#cleanup"}]}]},block_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*)?(\p{space}*[Bb][Ll][Oo][Cc][KKk])/dgv,beginCaptures:{"2":{name:"meta.block.block.name"},"3":{name:"keyword.language.vhdl"},"4":{name:"keyword.language.vhdl"}},end:/(end\p{space}+block)(\p{space}+(((?!))|([^\n]+?)))?(?=\p{space}*;)/dgiv,endCaptures:{"1":{name:"keyword.language.vhdl"},"2":{name:"meta.block.block.end"},"5":{name:"invalid.illegal.mismatched.identifier.vhdl"}},name:"meta.block.block",patterns:[{include:"#control_patterns"},{include:"#cleanup"}]}]},block_processing:{patterns:[{include:"#package_pattern"},{include:"#package_body_pattern"},{include:"#entity_pattern"},{include:"#architecture_pattern"}]},case_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))\p{space}*:\p{space}*)?\b([Cc][Aa][Ssſ][Ee])\b/dgv,beginCaptures:{"3":{name:"entity.name.tag.case.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd])\p{space}*(\p{space}+(([Cc][Aa][Ssſ][Ee])|([^\n]*?)))(\p{space}+((\2)|([^\n]*?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"4":{name:"keyword.language.vhdl"},"5":{name:"invalid.illegal.case.required.vhdl"},"8":{name:"entity.name.tag.case.end.vhdl"},"9":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#control_patterns"},{include:"#cleanup"}]}]},cleanup:{patterns:[{include:"#comments"},{include:"#constants_numeric"},{include:"#strings"},{include:"#attribute_list"},{include:"#syntax_highlighting"}]},comments:{patterns:[{match:/--[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.double-dash.vhdl"}]},component_instantiation_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\b(?=\p{space}*((?=$|\n)|generic|port))/dgv,beginCaptures:{"1":{name:"entity.name.section.component_instantiation.vhdl"},"2":{name:"punctuation.vhdl"},"3":{name:"entity.name.tag.component.reference.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_list"},{include:"#cleanup"}]}]},component_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*\b([Cc][Oo][Mm][Pp][Oo][Nn][Ee][Nn][Tt])\p{space}+(([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*|([^\n]+?))(?=\b(?:[Ii][Ssſ]|[Pp][Oo][Rr][Tt])\b|(?=$|\n)|--)(\b([Ii][Ssſ]\b))?/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.type.component.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"6":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd])\p{space}+(([Cc][Oo][Mm][Pp][Oo][Nn][Ee][Nn][Tt]\b)|([^\n]+?))(?=\p{space}*|;)(\p{space}+((\3)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"4":{name:"invalid.illegal.component.keyword.required.vhdl"},"7":{name:"entity.name.type.component.end.vhdl"},"8":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#generic_list_pattern"},{include:"#port_list_pattern"},{include:"#comments"}]}]},constants_numeric:{patterns:[{match:/\b([\+\-]?[\p{Nd}_]+\.[\p{Nd}_]+([eE][\+\-]?[\p{Nd}_]+)?)\b/dgv,name:"constant.numeric.floating_point.vhdl"},{match:/\b\p{Nd}+#[\p{AHex}_]+#\b/dgv,name:"constant.numeric.base_pound_number_pound.vhdl"},{match:/\b[\p{Nd}_]+([eE][\p{Nd}_]+)?\b/dgv,name:"constant.numeric.integer.vhdl"},{match:/[xX]"[0-9a-fA-F_uUxXzZwWlLhH\-]+"/dgv,name:"constant.numeric.quoted.double.string.hex.vhdl"},{match:/[oO]"[0-7_uUxXzZwWlLhH\-]+"/dgv,name:"constant.numeric.quoted.double.string.octal.vhdl"},{match:/[bB]?"[01_uUxXzZwWlLhH\-]+"/dgv,name:"constant.numeric.quoted.double.string.binary.vhdl"},{captures:{"1":{name:"invalid.illegal.quoted.double.string.vhdl"}},match:/([bBoOxX]"[^\n]+?")/dgv,name:"constant.numeric.quoted.double.string.illegal.vhdl"},{match:/'[01uUxXzZwWlLhH\-]'/dgv,name:"constant.numeric.quoted.single.std_logic"}]},control_patterns:{patterns:[{include:"#case_pattern"},{include:"#if_pattern"},{include:"#for_pattern"},{include:"#while_pattern"}]},entity_instantiation_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*(([Uu][Ssſ][Ee])\p{space}+)?([Ee][Nn][Tt][Ii][Tt][Yy])\p{space}+((([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))(\.))?(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))(?=\p{space}*(\(|(?=$|\n)|(?:[Pp][Oo][Rr][Tt]|[Gg][Ee][Nn][Ee][Rr][Ii][Cc])))(\p{space}*(\()\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))(?=\p{space}*\))\p{space}*(\)))?/dgv,beginCaptures:{"1":{name:"entity.name.section.entity_instantiation.vhdl"},"2":{name:"punctuation.vhdl"},"4":{name:"keyword.language.vhdl"},"5":{name:"keyword.language.vhdl"},"8":{name:"entity.name.tag.library.reference.vhdl"},"9":{name:"invalid.illegal.invalid.identifier.vhdl"},"10":{name:"punctuation.vhdl"},"12":{name:"entity.name.tag.entity.reference.vhdl"},"13":{name:"invalid.illegal.invalid.identifier.vhdl"},"16":{name:"punctuation.vhdl"},"18":{name:"entity.name.tag.architecture.reference.vhdl"},"19":{name:"invalid.illegal.invalid.identifier.vhdl"},"21":{name:"punctuation.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_list"},{include:"#cleanup"}]}]},entity_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*([Ee][Nn][Tt][Ii][Tt][Yy]\b)\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]+?))(?=\p{space})/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.type.entity.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"}},end:/\b([Ee][Nn][Dd]\b)(\p{space}+([Ee][Nn][Tt][Ii][Tt][Yy]))?(\p{space}+((\3)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.type.entity.end.vhdl"},"7":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#comments"},{include:"#generic_list_pattern"},{include:"#port_list_pattern"},{include:"#cleanup"}]}]},for_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*)?(?![Ww][Aa][Ii][Tt]\p{space}*)\b([Ff][Oo][Rr])\b(?!\p{space}*[Aa][Ll][Ll])/dgv,beginCaptures:{"2":{name:"entity.name.tag.for.generate.begin.vhdl"},"3":{name:"punctuation.vhdl"},"4":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd])\p{space}+(((?:[Gg][Ee][Nn][Ee][Rr][Aa][Tt][Ee]|[Ll][Oo][Oo][Pp]))|(\P{space}+))\b(\p{space}+((\2)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"4":{name:"invalid.illegal.loop.or.generate.required.vhdl"},"7":{name:"entity.name.tag.for.generate.end.vhdl"},"8":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#control_patterns"},{include:"#entity_instantiation_pattern"},{include:"#component_pattern"},{include:"#component_instantiation_pattern"},{include:"#process_pattern"},{include:"#cleanup"}]}]},function_definition_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((?:[Ii][Mm][Pp][Uu][Rr][Ee])?\p{space}*[Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|("\P{space}+")|(\\[^\n]+\\)|([^\n]+?))(?=\p{space}*(\(|\b[Rr][Ee][Tt][Uu][Rr][Nn]\b))/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.function.function.begin.vhdl"},"4":{name:"entity.name.function.function.begin.vhdl"},"5":{name:"entity.name.function.function.begin.vhdl"},"6":{name:"invalid.illegal.invalid.identifier.vhdl"}},end:/(?<=^|\n(?!$))\p{space}*([Ee][Nn][Dd])(\p{space}+([Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn]))?(\p{space}+((\3|(?!)|(?!))|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.function.function.end.vhdl"},"7":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#control_patterns"},{include:"#parenthetical_list"},{include:"#type_pattern"},{include:"#record_pattern"},{include:"#cleanup"}]}]},function_prototype_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((?:[Ii][Mm][Pp][Uu][Rr][Ee])?\p{space}*[Ff][Uu][Nn][Cc][Tt][Ii][Oo][Nn])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|("\P{space}+")|(\\[^\n]+\\)|([^\n]+?))(?=\p{space}*(\(|\b[Rr][Ee][Tt][Uu][Rr][Nn]\b))/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.function.function.prototype.vhdl"},"4":{name:"entity.name.function.function.prototype.vhdl"},"5":{name:"entity.name.function.function.prototype.vhdl"},"6":{name:"invalid.illegal.function.name.vhdl"}},end:/(?<=;)/dgv,patterns:[{begin:/\breturn(?=\p{space}+[^\;]+\p{space}*;)/dgiv,beginCaptures:{"0":{name:"keyword.language.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.terminator.function_prototype.vhdl"}},patterns:[{include:"#parenthetical_list"},{include:"#cleanup"}]},{include:"#parenthetical_list"},{include:"#cleanup"}]}]},generic_list_pattern:{patterns:[{begin:/\bgeneric\b/dgiv,beginCaptures:{"0":{name:"keyword.language.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_list"}]}]},if_pattern:{patterns:[{begin:/(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*)?\b([Ii][Ff])\b/dgv,beginCaptures:{"2":{name:"entity.name.tag.if.generate.begin.vhdl"},"3":{name:"punctuation.vhdl"},"4":{name:"keyword.language.vhdl"}},end:/\b(end)\p{space}+((((?:generate|if))|(\P{space}+))\b(\p{space}+(((?!))|([^\n]+?)))?)?(?=\p{space}*;)/dgiv,endCaptures:{"1":{name:"keyword.language.vhdl"},"4":{name:"keyword.language.vhdl"},"5":{name:"invalid.illegal.if.or.generate.required.vhdl"},"8":{name:"entity.name.tag.if.generate.end.vhdl"},"9":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#control_patterns"},{include:"#process_pattern"},{include:"#entity_instantiation_pattern"},{include:"#component_pattern"},{include:"#component_instantiation_pattern"},{include:"#cleanup"}]}]},keywords:{patterns:[{match:/'(?:active|ascending|base|delayed|driving|driving_value|event|high|image|instance|instance_name|last|last_value|left|leftof|length|low|path|path_name|pos|pred|quiet|range|reverse|reverse_range|right|rightof|simple|simple_name|stable|succ|transaction|val|value)\b/dgiv,name:"keyword.attributes.vhdl"},{match:/\b(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|context|deallocate|disconnect|downto|else|elsif|end|entity|exit|file|for|force|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|protected|pure|range|record|register|reject|release|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)\b/dgiv,name:"keyword.language.vhdl"},{match:/\b(?:std|ieee|work|standard|textio|std_logic_1164|std_logic_arith|std_logic_misc|std_logic_signed|std_logic_textio|std_logic_unsigned|numeric_bit|numeric_std|math_complex|math_real|vital_primitives|vital_timing)\b/dgiv,name:"standard.library.language.vhdl"},{match:/(\+|-|<=|=|=>|:=|>=|>|<|\/|\||&|(\*{1,2}))/dgv,name:"keyword.operator.vhdl"}]},package_body_pattern:{patterns:[{begin:/\b([Pp][Aa][Cc][KKk][Aa][Gg][Ee])\p{space}+([Bb][Oo][Dd][Yy])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]+?))\p{space}+([Ii][Ssſ])\b/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"2":{name:"keyword.language.vhdl"},"4":{name:"entity.name.section.package_body.begin.vhdl"},"5":{name:"invalid.illegal.invalid.identifier.vhdl"},"6":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd]\b)(\p{space}+([Pp][Aa][Cc][KKk][Aa][Gg][Ee])\p{space}+([Bb][Oo][Dd][Yy]))?(\p{space}+((\4)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"4":{name:"keyword.language.vhdl"},"7":{name:"entity.name.section.package_body.end.vhdl"},"8":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#protected_body_pattern"},{include:"#function_definition_pattern"},{include:"#procedure_definition_pattern"},{include:"#type_pattern"},{include:"#subtype_pattern"},{include:"#record_pattern"},{include:"#cleanup"}]}]},package_pattern:{patterns:[{begin:/\b([Pp][Aa][Cc][KKk][Aa][Gg][Ee])\p{space}+(?![Bb][Oo][Dd][Yy])(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]+?))\p{space}+([Ii][Ssſ])\b/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.section.package.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd]\b)(\p{space}+([Pp][Aa][Cc][KKk][Aa][Gg][Ee]))?(\p{space}+((\2)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.section.package.end.vhdl"},"7":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#protected_pattern"},{include:"#function_prototype_pattern"},{include:"#procedure_prototype_pattern"},{include:"#type_pattern"},{include:"#subtype_pattern"},{include:"#record_pattern"},{include:"#component_pattern"},{include:"#cleanup"}]}]},parenthetical_list:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.vhdl"}},end:/(?<=\))/dgv,patterns:[{begin:/(?=['"a-zA-Z0-9])/dgv,end:/(;|\)|,)/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},name:"source.vhdl",patterns:[{include:"#comments"},{include:"#parenthetical_pair"},{include:"#cleanup"}]},{match:/\)/dgv,name:"invalid.illegal.unexpected.parenthesis.vhdl"},{include:"#cleanup"}]}]},parenthetical_pair:{patterns:[{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.vhdl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_pair"},{include:"#cleanup"}]}]},port_list_pattern:{patterns:[{begin:/\bport\b/dgiv,beginCaptures:{"0":{name:"keyword.language.vhdl"}},end:/(?<=\))\p{space}*;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#parenthetical_list"}]}]},procedure_definition_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*([Pp][Rr][Oo][Cc][Ee][Dd][Uu][Rr][Ee])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|("\P{space}+")|([^\n]+?))(?=\p{space}*(\(|[Ii][Ssſ]))/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.function.procedure.begin.vhdl"},"4":{name:"entity.name.function.procedure.begin.vhdl"},"5":{name:"invalid.illegal.invalid.identifier.vhdl"}},end:/(?<=^|\n(?!$))\p{space}*([Ee][Nn][Dd])(\p{space}+([Pp][Rr][Oo][Cc][Ee][Dd][Uu][Rr][Ee]))?(\p{space}+((\3|(?!))|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.function.procedure.end.vhdl"},"7":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#parenthetical_list"},{include:"#control_patterns"},{include:"#type_pattern"},{include:"#record_pattern"},{include:"#cleanup"}]}]},procedure_prototype_pattern:{patterns:[{begin:/\b([Pp][Rr][Oo][Cc][Ee][Dd][Uu][Rr][Ee])\p{space}+(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))(?=\p{space}*(\(|;))/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.function.procedure.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctual.vhdl"}},patterns:[{include:"#parenthetical_list"}]}]},process_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*)?((?:postponed\p{space}+)?[Pp][Rr][Oo][Cc][Ee][Ssſ][Ssſ]\b)/dgv,beginCaptures:{"2":{name:"entity.name.section.process.begin.vhdl"},"3":{name:"punctuation.vhdl"},"4":{name:"keyword.language.vhdl"}},end:/([Ee][Nn][Dd])(\p{space}+((?:postponed\p{space}+)?[Pp][Rr][Oo][Cc][Ee][Ssſ][Ssſ]))(\p{space}+((\2)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"6":{name:"entity.name.section.process.end.vhdl"},"7":{name:"invalid.illegal.invalid.identifier.vhdl"}},patterns:[{include:"#control_patterns"},{include:"#cleanup"}]}]},protected_body_pattern:{patterns:[{begin:/\b([Tt][Yy][Pp][Ee])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]+?))\p{space}+\b([Ii][Ssſ]\p{space}+[Pp][Rr][Oo][Tt][Ee][Cc][Tt][Ee][Dd]\p{space}+[Bb][Oo][Dd][Yy])\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.section.protected_body.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"}},end:/\b(end\p{space}+protected\p{space}+body)(\p{space}+(((?!))|([^\n]+?)))?(?=\p{space}*;)/dgiv,endCaptures:{"1":{name:"keyword.language.vhdl"},"4":{name:"entity.name.section.protected_body.end.vhdl"},"5":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#function_definition_pattern"},{include:"#procedure_definition_pattern"},{include:"#type_pattern"},{include:"#subtype_pattern"},{include:"#record_pattern"},{include:"#cleanup"}]}]},protected_pattern:{patterns:[{begin:/\b([Tt][Yy][Pp][Ee])\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]+?))\p{space}+\b([Ii][Ssſ]\p{space}+[Pp][Rr][Oo][Tt][Ee][Cc][Tt][Ee][Dd])\p{space}+(?![Bb][Oo][Dd][Yy])/dgv,beginCaptures:{"1":{name:"keyword.language.vhdls"},"3":{name:"entity.name.section.protected.begin.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"}},end:/\b(end\p{space}+protected)(\p{space}+(((?!))|([^\n]+?)))?(?!body)(?=\p{space}*;)/dgiv,endCaptures:{"1":{name:"keyword.language.vhdl"},"4":{name:"entity.name.section.protected.end.vhdl"},"5":{name:"invalid.illegal.mismatched.identifier.vhdl"}},patterns:[{include:"#function_prototype_pattern"},{include:"#procedure_prototype_pattern"},{include:"#type_pattern"},{include:"#subtype_pattern"},{include:"#record_pattern"},{include:"#component_pattern"},{include:"#cleanup"}]}]},punctuation:{patterns:[{match:/(\.|,|:|;|\(|\))/dgv,name:"punctuation.vhdl"}]},record_pattern:{patterns:[{begin:/\brecord\b/dgiv,beginCaptures:{"0":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd])\p{space}+([Rr][Ee][Cc][Oo][Rr][Dd])(\p{space}+(([a-zA-Z][a-zA-Z\p{Nd}_]*)|([^\n]*?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"2":{name:"keyword.language.vhdl"},"5":{name:"entity.name.type.record.vhdl"},"6":{name:"invalid.illegal.invalid.identifier.vhdl"}},patterns:[{include:"#cleanup"}]},{include:"#cleanup"}]},strings:{patterns:[{match:/'[^\n]'/dgv,name:"string.quoted.single.vhdl"},{begin:/"/dgv,end:/"/dgv,name:"string.quoted.double.vhdl",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.vhdl"}]},{begin:/\\/dgv,end:/\\/dgv,name:"string.other.backslash.vhdl"}]},subtype_pattern:{patterns:[{begin:/\b([Ssſ][Uu][Bb][Tt][Yy][Pp][Ee])\p{space}+(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))\p{space}+([Ii][Ssſ])\b/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.type.subtype.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"5":{name:"keyword.language.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#cleanup"}]}]},support_constants:{patterns:[{match:/\b(?:math_1_over_e|math_1_over_pi|math_1_over_sqrt_2|math_2_pi|math_3_pi_over_2|math_deg_to_rad|math_e|math_log10_of_e|math_log2_of_e|math_log_of_10|math_log_of_2|math_pi|math_pi_over_2|math_pi_over_3|math_pi_over_4|math_rad_to_deg|math_sqrt_2|math_sqrt_pi)\b/dgiv,name:"support.constant.ieee.math_real.vhdl"},{match:/\b(?:math_cbase_1|math_cbase_j|math_czero|positive_real|principal_value)\b/dgiv,name:"support.constant.ieee.math_complex.vhdl"},{match:/\b(?:true|false)\b/dgiv,name:"support.constant.std.standard.vhdl"}]},support_functions:{patterns:[{match:/\b(?:finish|stop|resolution_limit)\b/dgiv,name:"support.function.std.env.vhdl"},{match:/\b(?:readline|read|writeline|write|endfile|endline)\b/dgiv,name:"support.function.std.textio.vhdl"},{match:/\b(?:rising_edge|falling_edge|to_bit|to_bitvector|to_stdulogic|to_stdlogicvector|to_stdulogicvector|is_x)\b/dgiv,name:"support.function.ieee.std_logic_1164.vhdl"},{match:/\b(?:shift_left|shift_right|rotate_left|rotate_right|resize|to_integer|to_unsigned|to_signed)\b/dgiv,name:"support.function.ieee.numeric_std.vhdl"},{match:/\b(?:arccos(h?)|arcsin(h?)|arctan|arctanh|cbrt|ceil|cos|cosh|exp|floor|log10|log2|log|realmax|realmin|round|sign|sin|sinh|sqrt|tan|tanh|trunc)\b/dgiv,name:"support.function.ieee.math_real.vhdl"},{match:/\b(?:arg|cmplx|complex_to_polar|conj|get_principal_value|polar_to_complex)\b/dgiv,name:"support.function.ieee.math_complex.vhdl"}]},support_types:{patterns:[{match:/\b(?:boolean|bit|character|severity_level|integer|real|time|delay_length|now|natural|positive|string|bit_vector|file_open_kind|file_open_status|fs|ps|ns|us|ms|sec|min|hr|severity_level|note|warning|error|failure)\b/dgiv,name:"support.type.std.standard.vhdl"},{match:/\b(?:line|text|side|width|input|output)\b/dgiv,name:"support.type.std.textio.vhdl"},{match:/\b(?:std_logic|std_ulogic|std_logic_vector|std_ulogic_vector)\b/dgiv,name:"support.type.ieee.std_logic_1164.vhdl"},{match:/\b(?:signed|unsigned)\b/dgiv,name:"support.type.ieee.numeric_std.vhdl"},{match:/\b(?:complex|complex_polar)\b/dgiv,name:"support.type.ieee.math_complex.vhdl"}]},syntax_highlighting:{patterns:[{include:"#keywords"},{include:"#punctuation"},{include:"#support_constants"},{include:"#support_types"},{include:"#support_functions"}]},type_pattern:{patterns:[{begin:/\b([Tt][Yy][Pp][Ee])\p{space}+(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)|([^\n]+?))((?=\p{space}*;)|(\p{space}+([Ii][Ssſ])))\b/dgv,beginCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"entity.name.type.type.vhdl"},"4":{name:"invalid.illegal.invalid.identifier.vhdl"},"7":{name:"keyword.language.vhdl"}},end:/;/dgv,endCaptures:{"0":{name:"punctuation.vhdl"}},patterns:[{include:"#record_pattern"},{include:"#cleanup"}]}]},while_pattern:{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(:)\p{space}*)?\b([Ww][Hh][Ii][Ll][Ee])\b/dgv,beginCaptures:{"2":{name:""},"3":{name:"punctuation.vhdl"},"4":{name:"keyword.language.vhdl"}},end:/\b([Ee][Nn][Dd])\p{space}+(([Ll][Oo][Oo][Pp])|(\P{space}+))\b(\p{space}+((\2)|([^\n]+?)))?(?=\p{space}*;)/dgv,endCaptures:{"1":{name:"keyword.language.vhdl"},"3":{name:"keyword.language.vhdl"},"4":{name:"invalid.illegal.loop.keyword.required.vhdl"},"7":{name:"entity.name.tag.while.loop.vhdl"},"8":{name:"invalid.illegal.mismatched.identifier"}},patterns:[{include:"#control_patterns"},{include:"#cleanup"}]}]}},scopeName:"source.vhdl",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/vim.d.mts
ADDED
package/dist/vim.mjs
ADDED
package/dist/viml.d.mts
ADDED
package/dist/viml.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Vim Script",name:"viml",patterns:[{include:"#comment"},{include:"#constant"},{include:"#entity"},{include:"#keyword"},{include:"#punctuation"},{include:"#storage"},{include:"#strings"},{include:"#support"},{include:"#variable"},{include:"#syntax"},{include:"#commands"},{include:"#option"},{include:"#map"}],repository:{commands:{patterns:[{match:/\bcom(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/\bau(\p{space}|!)/dgv,name:"storage.other.command.viml"},{match:/-bang/dgv,name:"storage.other.command.bang.viml"},{match:/-nargs=[\*\+0-9]+/dgv,name:"storage.other.command.args.viml"},{match:/-complete=\P{space}+/dgv,name:"storage.other.command.completion.viml"},{begin:/(aug(roup)?)/dgv,end:/(augroup\p{space}END|(?=$|\n))/dgv,name:"support.function.augroup.viml"}]},comment:{patterns:[{begin:/((\p{space}+)?""")/dgv,end:/(?<=^|\n(?!$))(?!")/dgv,name:"comment.block.documentation.viml"},{match:/(?<=^|\n(?!$))"\p{space}vim:[^\n]*/dgv,name:"comment.block.modeline.viml"},{begin:/(\p{space}+"\p{space}+)(?!")/dgv,end:/(?=$|\n)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=$|\n)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]},{begin:/(?<=^|\n(?!$))(\p{space}+)?"/dgv,end:/(?=$|\n)/dgv,name:"comment.line.viml",patterns:[{match:/\{\{\{\p{Nd}?(?=$|\n)/dgv,name:"comment.line.foldmarker.viml"},{match:/\}\}\}\p{Nd}?/dgv,name:"comment.line.foldmarker.viml"}]}]},constant:{patterns:[{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.viml"},{match:/\b(\p{Nd}+)\b/dgv,name:"constant.numeric.viml"}]},entity:{patterns:[{match:/(([absg]:)?[a-zA-Z0-9_\#\.]{2,})\b(?=\()/dgv,name:"entity.name.function.viml"}]},keyword:{patterns:[{match:/\b(if|while|for|return|au(g|group)|else(if|)?|do|in)\b/dgv,name:"keyword.control.viml"},{match:/\b(end|endif|endfor|endwhile)\p{space}|(?=$|\n)/dgv,name:"keyword.control.viml"},{match:/\b(break|continue|try|catch|endtry|finally|finish|throw|range)\b/dgv,name:"keyword.control.viml"},{match:/\b(fun|func|function|endfunction|endfunc)\b/dgv,name:"keyword.function.viml"},{match:/\b(normal|silent)\b/dgv,name:"keyword.other.viml"},{include:"#operators"}]},map:{patterns:[{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.map.viml"}},end:/(>|\p{space})/dgv,endCaptures:{"1":{name:"punctuation.definition.map.viml"}},patterns:[{match:/(?<=:\p{space})([^\n]+)/dgv,name:"constant.character.map.rhs.viml"},{match:/(bang|buffer|expr|nop|plug|sid|silent)/dgiv,name:"constant.character.map.special.viml"},{match:/([adcms]-[\p{L}\p{M}\p{N}\p{Pc}])/dgiv,name:"constant.character.map.key.viml"},{match:/(F\p{Nd}+)/dgiv,name:"constant.character.map.key.fn.viml"},{match:/(bs|bar|cr|del|down|esc|left|right|space|tab|up|leader)/dgiv,name:"constant.character.map.viml"}]},{match:/(\b([cinostvx]?(nore)?map)\b)/dgv,name:"storage.type.map.viml"}]},operators:{patterns:[{match:/([\#\+\?\!\=\~\\])/dgv,name:"keyword.operator.viml"},{match:/ ([\:\-\.]|[\&\|]{2})( |(?=$|\n))/dgv,name:"keyword.operator.viml"},{match:/([\.]{3})/dgv,name:"keyword.operator.viml"},{match:/( [\<\>] )/dgv,name:"keyword.operator.viml"},{match:/(>=)/dgv,name:"keyword.operator.viml"}]},option:{patterns:[{match:/&?\b(al|aleph|anti|antialias|arab|arabic|arshape|arabicshape|ari|allowrevins|akm|altkeymap|ambw|ambiwidth|acd|autochdir|ai|autoindent|ar|autoread|aw|autowrite|awa|autowriteall|bg|background|bs|backspace|bk|backup|bkc|backupcopy|bdir|backupdir|bex|backupext|bsk|backupskip|bdlay|balloondelay|beval|ballooneval|bevalterm|balloonevalterm|bexpr|balloonexpr|bo|belloff|bin|binary|bomb|brk|breakat|bri|breakindent|briopt|breakindentopt|bsdir|browsedir|bh|bufhidden|bl|buflisted|bt|buftype|cmp|casemap|cd|cdpath|cedit|ccv|charconvert|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|cb|clipboard|ch|cmdheight|cwh|cmdwinheight|cc|colorcolumn|co|columns|com|comments|cms|commentstring|cp|compatible|cpt|complete|cocu|concealcursor|cole|conceallevel|cfu|completefunc|cot|completeopt|cf|confirm|ci|copyindent|cpo|cpoptions|cm|cryptmethod|cspc|cscopepathcomp|csprg|cscopeprg|csqf|cscopequickfix|csre|cscoperelative|cst|cscopetag|csto|cscopetagorder|csverb|cscopeverbose|crb|cursorbind|cuc|cursorcolumn|cul|cursorline|debug|def|define|deco|delcombine|dict|dictionary|diff|dex|diffexpr|dip|diffopt|dg|digraph|dir|directory|dy|display|ead|eadirection|ed|edcompatible|emo|emoji|enc|encoding|eol|endofline|ea|equalalways|ep|equalprg|eb|errorbells|ef|errorfile|efm|errorformat|ek|esckeys|ei|eventignore|et|expandtab|ex|exrc|fenc|fileencoding|fencs|fileencodings|ff|fileformat|ffs|fileformats|fic|fileignorecase|ft|filetype|fcs|fillchars|fixeol|fixendofline|fk|fkmap|fcl|foldclose|fdc|foldcolumn|fen|foldenable|fde|foldexpr|fdi|foldignore|fdl|foldlevel|fdls|foldlevelstart|fmr|foldmarker|fdm|foldmethod|fml|foldminlines|fdn|foldnestmax|fdo|foldopen|fdt|foldtext|fex|formatexpr|fo|formatoptions|flp|formatlistpat|fp|formatprg|fs|fsync|gd|gdefault|gfm|grepformat|gp|grepprg|gcr|guicursor|gfn|guifont|gfs|guifontset|gfw|guifontwide|ghr|guiheadroom|go|guioptions|guipty|gtl|guitablabel|gtt|guitabtooltip|hf|helpfile|hh|helpheight|hlg|helplang|hid|hidden|hl|highlight|hi|history|hk|hkmap|hkp|hkmapp|hls|hlsearch|icon|iconstring|ic|ignorecase|imaf|imactivatefunc|imak|imactivatekey|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|imsf|imstatusfunc|imst|imstyle|inc|include|inex|includeexpr|is|incsearch|inde|indentexpr|indk|indentkeys|inf|infercase|im|insertmode|isf|isfname|isi|isident|isk|iskeyword|isp|isprint|js|joinspaces|key|kmp|keymap|km|keymodel|kp|keywordprg|lmap|langmap|lm|langmenu|lnr|langnoremap|lrm|langremap|ls|laststatus|lz|lazyredraw|lbr|linebreak|lines|lsp|linespace|lisp|lw|lispwords|list|lcs|listchars|lpl|loadplugins|luadll|macatsui|magic|mef|makeef|menc|makeencoding|mp|makeprg|mps|matchpairs|mat|matchtime|mco|maxcombine|mfd|maxfuncdepth|mmd|maxmapdepth|mm|maxmem|mmp|maxmempattern|mmt|maxmemtot|mis|menuitems|msm|mkspellmem|ml|modeline|mls|modelines|ma|modifiable|mod|modified|more|mouse|mousef|mousefocus|mh|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mzschemedll|mzschemegcdll|mzq|mzquantum|nf|nrformats|nu|number|nuw|numberwidth|ofu|omnifunc|odev|opendevice|opfunc|operatorfunc|pp|packpath|para|paragraphs|paste|pt|pastetoggle|pex|patchexpr|pm|patchmode|pa|path|perldll|pi|preserveindent|pvh|previewheight|pvw|previewwindow|pdev|printdevice|penc|printencoding|pexpr|printexpr|pfn|printfont|pheader|printheader|pmbcs|printmbcharset|pmbfn|printmbfont|popt|printoptions|prompt|ph|pumheight|pythonthreedll|pythondll|pyx|pyxversion|qe|quoteescape|ro|readonly|rdt|redrawtime|re|regexpengine|rnu|relativenumber|remap|rop|renderoptions|report|rs|restorescreen|ri|revins|rl|rightleft|rlc|rightleftcmd|rubydll|ru|ruler|ruf|rulerformat|rtp|runtimepath|scr|scroll|scb|scrollbind|sj|scrolljump|so|scrolloff|sbo|scrollopt|sect|sections|secure|sel|selection|slm|selectmode|ssop|sessionoptions|sh|shell|shcf|shellcmdflag|sp|shellpipe|shq|shellquote|srr|shellredir|ssl|shellslash|stmp|shelltemp|st|shelltype|sxq|shellxquote|sxe|shellxescape|sr|shiftround|sw|shiftwidth|shm|shortmess|sn|shortname|sbr|showbreak|sc|showcmd|sft|showfulltag|sm|showmatch|smd|showmode|stal|showtabline|ss|sidescroll|siso|sidescrolloff|scl|signcolumn|scs|smartcase|si|smartindent|sta|smarttab|sts|softtabstop|spell|spc|spellcapcheck|spf|spellfile|spl|spelllang|sps|spellsuggest|sb|splitbelow|spr|splitright|sol|startofline|stl|statusline|su|suffixes|sua|suffixesadd|swf|swapfile|sws|swapsync|swb|switchbuf|smc|synmaxcol|syn|syntax|tal|tabline|tpm|tabpagemax|ts|tabstop|tbs|tagbsearch|tc|tagcase|tl|taglength|tr|tagrelative|tag|tags|tgst|tagstack|tcldll|term|tbidi|termbidi|tenc|termencoding|tgc|termguicolors|tk|termkey|tms|termsize|terse|ta|textauto|tx|textmode|tw|textwidth|tsr|thesaurus|top|tildeop|to|timeout|tm|timeoutlen|title|titlelen|titleold|titlestring|tb|toolbar|tbis|toolbariconsize|ttimeout|ttm|ttimeoutlen|tbi|ttybuiltin|tf|ttyfast|ttym|ttymouse|tsl|ttyscroll|tty|ttytype|udir|undodir|udf|undofile|ul|undolevels|ur|undoreload|uc|updatecount|ut|updatetime|vbs|verbose|vfile|verbosefile|vdir|viewdir|vop|viewoptions|vi|viminfo|vif|viminfofile|ve|virtualedit|vb|visualbell|warn|wiv|weirdinvert|ww|whichwrap|wc|wildchar|wcm|wildcharm|wig|wildignore|wic|wildignorecase|wmnu|wildmenu|wim|wildmode|wop|wildoptions|wak|winaltkeys|wi|window|wh|winheight|wfh|winfixheight|wfw|winfixwidth|wmh|winminheight|wmw|winminwidth|winptydll|wiw|winwidth|wrap|wm|wrapmargin|ws|wrapscan|write|wa|writeany|wb|writebackup|wd|writedelay)\b/dgv,name:"support.type.option.viml"},{match:/&?\b(aleph|allowrevins|altkeymap|ambiwidth|autochdir|arabic|arabicshape|autoindent|autoread|autowrite|autowriteall|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|belloff|binary|bomb|breakat|breakindent|breakindentopt|browsedir|bufhidden|buflisted|buftype|casemap|cdpath|cedit|charconvert|cindent|cinkeys|cinoptions|cinwords|clipboard|cmdheight|cmdwinheight|colorcolumn|columns|comments|commentstring|complete|completefunc|completeopt|concealcursor|conceallevel|confirm|copyindent|cpoptions|cscopepathcomp|cscopeprg|cscopequickfix|cscoperelative|cscopetag|cscopetagorder|cscopeverbose|cursorbind|cursorcolumn|cursorline|debug|define|delcombine|dictionary|diff|diffexpr|diffopt|digraph|directory|display|eadirection|encoding|endofline|equalalways|equalprg|errorbells|errorfile|errorformat|eventignore|expandtab|exrc|fileencoding|fileencodings|fileformat|fileformats|fileignorecase|filetype|fillchars|fixendofline|fkmap|foldclose|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldopen|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fsync|gdefault|grepformat|grepprg|guicursor|guifont|guifontset|guifontwide|guioptions|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hidden|hlsearch|history|hkmap|hkmapp|icon|iconstring|ignorecase|imcmdline|imdisable|iminsert|imsearch|include|includeexpr|incsearch|indentexpr|indentkeys|infercase|insertmode|isfname|isident|iskeyword|isprint|joinspaces|keymap|keymodel|keywordprg|langmap|langmenu|langremap|laststatus|lazyredraw|linebreak|lines|linespace|lisp|lispwords|list|listchars|loadplugins|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|menuitems|mkspellmem|modeline|modelines|modifiable|modified|more|mouse|mousefocus|mousehide|mousemodel|mouseshape|mousetime|nrformats|number|numberwidth|omnifunc|opendevice|operatorfunc|packpath|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|perldll|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pumheight|pythondll|pythonthreedll|quoteescape|readonly|redrawtime|regexpengine|relativenumber|remap|report|revins|rightleft|rightleftcmd|rubydll|ruler|rulerformat|runtimepath|scroll|scrollbind|scrolljump|scrolloff|scrollopt|sections|secure|selection|selectmode|sessionoptions|shada|shell|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shellxescape|shellxquote|shiftround|shiftwidth|shortmess|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|sidescroll|sidescrolloff|signcolumn|smartcase|smartindent|smarttab|softtabstop|spell|spellcapcheck|spellfile|spelllang|spellsuggest|splitbelow|splitright|startofline|statusline|suffixes|suffixesadd|swapfile|switchbuf|synmaxcol|syntax|tabline|tabpagemax|tabstop|tagbsearch|tagcase|taglength|tagrelative|tags|tagstack|term|termbidi|terse|textwidth|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|ttimeout|ttimeoutlen|ttytype|undodir|undofile|undolevels|undoreload|updatecount|updatetime|verbose|verbosefile|viewdir|viewoptions|virtualedit|visualbell|warn|whichwrap|wildchar|wildcharm|wildignore|wildignorecase|wildmenu|wildmode|wildoptions|winaltkeys|window|winheight|winfixheight|winfixwidth|winminheight|winminwidth|winwidth|wrap|wrapmargin|wrapscan|write|writeany|writebackup|writedelay)\b/dgv,name:"support.type.option.viml"},{match:/&?\b(al|ari|akm|ambw|acd|arab|arshape|ai|ar|aw|awa|bg|bs|bk|bkc|bdir|bex|bsk|bdlay|beval|bexpr|bo|bin|bomb|brk|bri|briopt|bsdir|bh|bl|bt|cmp|cd|cedit|ccv|cin|cink|cino|cinw|cb|ch|cwh|cc|co|com|cms|cpt|cfu|cot|cocu|cole|cf|ci|cpo|cspc|csprg|csqf|csre|cst|csto|cpo|crb|cuc|cul|debug|def|deco|dict|diff|dex|dip|dg|dir|dy|ead|enc|eol|ea|ep|eb|ef|efm|ei|et|ex|fenc|fencs|ff|ffs|fic|ft|fcs|fixeol|fk|fcl|fdc|fen|fde|fdi|fdl|fdls|fmr|fdm|fml|fdn|fdo|fdt|fex|flp|fo|fp|fs|gd|gfm|gp|gcr|gfn|gfs|gfw|go|gtl|gtt|hf|hh|hlg|hid|hls|hi|hk|hkp|icon|iconstring|ic|imc|imd|imi|ims|inc|inex|is|inde|indk|inf|im|isf|isi|isk|isp|js|kmp|km|kp|lmap|lm|lrm|ls|lz|lbr|lines|lsp|lisp|lw|list|lcs|lpl|magic|mef|mp|mps|mat|mco|mfd|mmd|mm|mmp|mmt|mis|msm|ml|mls|ma|mod|more|mouse|mousef|mh|mousem|mouses|mouset|nf|nu|nuw|ofu|odev|opfunc|pp|para|paste|pt|pex|pm|pa|perldll|pi|pvh|pvw|pdev|penc|pexpr|pfn|pheader|pmbcs|pmbfn|popt|prompt|ph|pythondll|pythonthreedlll|qe|ro|rdt|re|rnu|remap|report|ri|rl|rlc|rubydll|ru|ruf|rtp|scr|scb|sj|so|sbo|sect|secure|sel|slm|ssop|sd|sh|shcf|sp|shq|srr|ssl|stmp|sxe|sxq|sr|sw|shm|sbr|sc|sft|sm|smd|stal|ss|siso|scl|scs|si|sta|sts|spell|spc|spf|spl|sps|sb|spr|sol|stl|su|sua|swf|swb|smc|syn|tal|tpm|ts|tbs|tc|tl|tr|tag|tgst|term|tbidi|terse|tw|tsr|top|to|tm|title|titlelen|titleold|titlestring|ttimeout|ttm|tty|udir|udf|ul|ur|uc|ut|vbs|vfile|vdir|vop|ve|vb|warn|ww|wc|wcm|wig|wic|wmnu|wim|wop|wak|wi|wh|wfh|wfw|wmh|wmw|wiw|wrap|wm|ws|write|wa|wb|wd)\b/dgv,name:"support.type.option.shortname.viml"},{match:/\b(noanti|noantialias|noarab|noarabic|noarshape|noarabicshape|noari|noallowrevins|noakm|noaltkeymap|noacd|noautochdir|noai|noautoindent|noar|noautoread|noaw|noautowrite|noawa|noautowriteall|nobk|nobackup|nobeval|noballooneval|nobevalterm|noballoonevalterm|nobin|nobinary|nobomb|nobri|nobreakindent|nobl|nobuflisted|nocin|nocindent|nocp|nocompatible|nocf|noconfirm|noci|nocopyindent|nocsre|nocscoperelative|nocst|nocscopetag|nocsverb|nocscopeverbose|nocrb|nocursorbind|nocuc|nocursorcolumn|nocul|nocursorline|nodeco|nodelcombine|nodiff|nodg|nodigraph|noed|noedcompatible|noemo|noemoji|noeol|noendofline|noea|noequalalways|noeb|noerrorbells|noek|noesckeys|noet|noexpandtab|noex|noexrc|nofic|nofileignorecase|nofixeol|nofixendofline|nofk|nofkmap|nofen|nofoldenable|nofs|nofsync|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkp|nohkmapp|nohls|nohlsearch|noicon|noic|noignorecase|noimc|noimcmdline|noimd|noimdisable|nois|noincsearch|noinf|noinfercase|noim|noinsertmode|nojs|nojoinspaces|nolnr|nolangnoremap|nolrm|nolangremap|nolz|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|nolpl|noloadplugins|nomacatsui|nomagic|noml|nomodeline|noma|nomodifiable|nomod|nomodified|nomore|nomousef|nomousefocus|nomh|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopvw|nopreviewwindow|noprompt|noro|noreadonly|nornu|norelativenumber|nors|norestorescreen|nori|norevins|norl|norightleft|noru|noruler|noscb|noscrollbind|nosecure|nossl|noshellslash|nostmp|noshelltemp|nosr|noshiftround|nosn|noshortname|nosc|noshowcmd|nosft|noshowfulltag|nosm|noshowmatch|nosmd|noshowmode|noscs|nosmartcase|nosi|nosmartindent|nosta|nosmarttab|nospell|nosb|nosplitbelow|nospr|nosplitright|nosol|nostartofline|noswf|noswapfile|notbs|notagbsearch|notr|notagrelative|notgst|notagstack|notbidi|notermbidi|notgc|notermguicolors|noterse|nota|notextauto|notx|notextmode|notop|notildeop|noto|notimeout|notitle|nottimeout|notbi|nottybuiltin|notf|nottyfast|noudf|noundofile|novb|novisualbell|nowarn|nowiv|noweirdinvert|nowic|nowildignorecase|nowmnu|nowildmenu|nowfh|nowinfixheight|nowfw|nowinfixwidth|nowrapscan|nowrap|nows|nowrite|nowa|nowriteany|nowb|nowritebackup)\b/dgv,name:"support.type.option.off.viml"}]},punctuation:{patterns:[{match:/([\(\)])/dgv,name:"punctuation.parens.viml"},{match:/([\,])/dgv,name:"punctuation.comma.viml"}]},storage:{patterns:[{match:/\b(call|let|unlet)\b/dgv,name:"storage.viml"},{match:/\b(abort|autocmd)\b/dgv,name:"storage.viml"},{match:/\b(set(l|local)?)\b/dgv,name:"storage.viml"},{match:/\b(com(mand)?)\b/dgv,name:"storage.viml"},{match:/\b(color(scheme)?)\b/dgv,name:"storage.viml"},{match:/\b(Plug|Plugin)\b/dgv,name:"storage.plugin.viml"}]},strings:{patterns:[{begin:/"/dgv,end:/("|(?=$|\n))/dgv,name:"string.quoted.double.viml",patterns:[]},{begin:/'/dgv,end:/('|(?=$|\n))/dgv,name:"string.quoted.single.viml",patterns:[]},{match:/\/(\\\\|\\\/|[^\n\/])*\//dgv,name:"string.regexp.viml"}]},support:{patterns:[{match:/(add|call|delete|empty|extend|get|has|isdirectory|join|printf)(?=\()/dgv,name:"support.function.viml"},{match:/\b(echo(m|hl)?|exe(cute)?|redir|redraw|sleep|so(urce)?|wincmd|setf)\b/dgv,name:"support.function.viml"},{match:/(v:(beval_col|beval_bufnr|beval_lnum|beval_text|beval_winnr|char|charconvert_from|charconvert_to|cmdarg|cmdbang|count|count1|ctype|dying|errmsg|exception|fcs_reason|fcs_choice|fname_in|fname_out|fname_new|fname_diff|folddashes|foldlevel|foldend|foldstart|insertmode|key|lang|lc_time|lnum|mouse_win|mouse_lnum|mouse_col|oldfiles|operator|prevcount|profiling|progname|register|scrollstart|servername|searchforward|shell_error|statusmsg|swapname|swapchoice|swapcommand|termresponse|this_session|throwpoint|val|version|warningmsg|windowid))/dgv,name:"support.type.builtin.vim-variable.viml"},{match:/(&(cpo|isk|omnifunc|paste|previewwindow|rtp|tags|term|wrap))/dgv,name:"support.type.builtin.viml"},{match:/(&(shell(cmdflag|redir)?))/dgv,name:"support.type.builtin.viml"},{match:/<args>/dgv,name:"support.variable.args.viml"},{match:/\b(None|ErrorMsg|WarningMsg)\b/dgv,name:"support.type.syntax.viml"},{match:/\b(BufNewFile|BufReadPre|BufRead|BufReadPost|BufReadCmd|FileReadPre|FileReadPost|FileReadCmd|FilterReadPre|FilterReadPost|StdinReadPre|StdinReadPost|BufWrite|BufWritePre|BufWritePost|BufWriteCmd|FileWritePre|FileWritePost|FileWriteCmd|FileAppendPre|FileAppendPost|FileAppendCmd|FilterWritePre|FilterWritePost|BufAdd|BufCreate|BufDelete|BufWipeout|BufFilePre|BufFilePost|BufEnter|BufLeave|BufWinEnter|BufWinLeave|BufUnload|BufHidden|BufNew|SwapExists|TermOpen|TermClose|FileType|Syntax|OptionSet|VimEnter|GUIEnter|GUIFailed|TermResponse|QuitPre|VimLeavePre|VimLeave|DirChanged|FileChangedShell|FileChangedShellPost|FileChangedRO|ShellCmdPost|ShellFilterPost|CmdUndefined|FuncUndefined|SpellFileMissing|SourcePre|SourceCmd|VimResized|FocusGained|FocusLost|CursorHold|CursorHoldI|CursorMoved|CursorMovedI|WinNew|WinEnter|WinLeave|TabEnter|TabLeave|TabNew|TabNewEntered|TabClosed|CmdlineEnter|CmdlineLeave|CmdwinEnter|CmdwinLeave|InsertEnter|InsertChange|InsertLeave|InsertCharPre|TextYankPost|TextChanged|TextChangedI|ColorScheme|RemoteReply|QuickFixCmdPre|QuickFixCmdPost|SessionLoadPost|MenuPopup|CompleteDone|User)\b/dgv,name:"support.type.event.viml"},{match:/\b(Comment|Constant|String|Character|Number|Boolean|Float|Identifier|Function|Statement|Conditional|Repeat|Label|Operator|Keyword|Exception|PreProc|Include|Define|Macro|PreCondit|Type|StorageClass|Structure|Typedef|Special|SpecialChar|Tag|Delimiter|SpecialComment|Debug|Underlined|Ignore|Error|Todo)\b/dgv,name:"support.type.syntax-group.viml"}]},syntax:{patterns:[{match:/syn(tax)? case (ignore|match)/dgv,name:"keyword.control.syntax.viml"},{match:/syn(tax)? (clear|enable|include|off|on|manual|sync)/dgv,name:"keyword.control.syntax.viml"},{match:/\b(contained|display|excludenl|fold|keepend|oneline|skipnl|skipwhite|transparent)\b/dgv,name:"keyword.other.syntax.viml"},{match:/\b(add|containedin|contains|matchgroup|nextgroup)=/dgv,name:"keyword.other.syntax.viml"},{captures:{"1":{name:"keyword.other.syntax-range.viml"},"3":{name:"string.regexp.viml"}},match:/((start|skip|end)=)(\+\P{space}+\+\p{space})?/dgv},{captures:{"0":{name:"support.type.syntax.viml"},"1":{name:"storage.syntax.viml"},"3":{name:"variable.other.syntax-scope.viml"},"4":{name:"storage.modifier.syntax.viml"}},match:/(syn|syntax)\p{space}+(cluster|keyword|match|region)(\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}+)(contained)?/dgv,patterns:[]},{captures:{"1":{name:"storage.highlight.viml"},"2":{name:"storage.modifier.syntax.viml"},"3":{name:"support.function.highlight.viml"},"4":{name:"variable.other.viml"},"5":{name:"variable.other.viml"}},match:/(hi|highlight)\p{space}+(def|default)\p{space}+(link)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,patterns:[]}]},variable:{patterns:[{match:/https?:\/\/\P{space}+/dgv,name:"variable.other.link.viml"},{match:/(?<=\()([a-zA-Z]+)(?=\))/dgv,name:"variable.parameter.viml"},{match:/\b([absgl]:[a-zA-Z0-9_\.\#]+)\b(?!\()/dgv,name:"variable.other.viml"}]}},scopeName:"source.viml",embeddedLangs:undefined,aliases:["vim","vimscript"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({fileTypes:[],injectTo:["source.vue","text.html.markdown","text.html.derivative","text.pug"],injectionSelector:"L:meta.tag -meta.attribute -meta.ng-binding -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute",name:"vue-directives",patterns:[{include:"source.vue#vue-directives"}],scopeName:"vue.directives",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import vue from './vue.mjs'
|
|
3
|
+
import javascript from './javascript.mjs'
|
|
4
|
+
|
|
5
|
+
const lang = Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:/(<)([A-Z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"support.class.component.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<)([a-z][a-zA-Z0-9\:\-]*)(?=[^\>]*><\/\2>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.html"}},end:/(>)(<)(\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"},"2":{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},"3":{name:"punctuation.definition.tag.begin.html"},"4":{name:"entity.name.tag.html"},"5":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,name:"comment.block.html"},{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:/(<\/?)([A-Z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"support.class.component.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-z][a-zA-Z0-9\:\-]*\b)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:body|head|html)\b)/dgiv,captures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#\p{Nd}+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-_]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:new EmulatedRegExp("(?<='|\"|[^\\p{space}\\<\\>\\/])","dgv",{"strategy":"not_search_start"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^\p{space}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:/(?<==)(?:[^\p{space}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"},"vue-directives":{begin:/(?:\b(v-)|(:|@|#))([a-zA-Z0-9\-_]+)(?::([a-zA-Z\-_]+))?(?:\.([a-zA-Z\-_]+))*\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html"},"2":{name:"punctuation.separator.key-value.html"},"3":{name:"entity.other.attribute-name.html"},"4":{name:"entity.other.attribute-name.html"},"5":{name:"entity.other.attribute-name.html"},"6":{name:"punctuation.separator.key-value.html"}},end:/(?<='|")|(?=[\p{space}\<\>\`])/dgv,name:"meta.directive.vue",patterns:[{begin:/`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"],aliases:undefined,embeddedLangsLazy:[]})
|
|
6
|
+
|
|
7
|
+
export default [
|
|
8
|
+
...vue,
|
|
9
|
+
...javascript,
|
|
10
|
+
lang
|
|
11
|
+
]
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({fileTypes:[],injectTo:["source.vue","text.html.markdown","text.html.derivative","text.pug"],injectionSelector:"L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block",name:"vue-interpolations",patterns:[{include:"source.vue#vue-interpolations"}],scopeName:"vue.interpolations",displayName:undefined,embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import javascript from './javascript.mjs'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({fileTypes:[],injectTo:["source.vue"],injectionSelector:"L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment",name:"vue-sfc-style-variable-injection",patterns:[{include:"#vue-sfc-style-variable-injection"}],repository:{"vue-sfc-style-variable-injection":{begin:/\b(v-bind)\p{space}*\(/dgv,beginCaptures:{"1":{name:"entity.name.function"}},end:/\)/dgv,name:"vue.sfc.style.variable.injection.v-bind",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"}},end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"source.ts.embedded.html.vue",patterns:[{include:"source.js"}]},{include:"source.js"}]}},scopeName:"vue.sfc.style.variable.injection",displayName:undefined,embeddedLangs:["javascript"],aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
...javascript,
|
|
7
|
+
lang
|
|
8
|
+
]
|
package/dist/vue.d.mts
ADDED
package/dist/vue.mjs
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
import html from './html.mjs'
|
|
3
|
+
import css from './css.mjs'
|
|
4
|
+
import javascript from './javascript.mjs'
|
|
5
|
+
import typescript from './typescript.mjs'
|
|
6
|
+
import json from './json.mjs'
|
|
7
|
+
import html_derivative from './html-derivative.mjs'
|
|
8
|
+
import markdown_vue from './markdown-vue.mjs'
|
|
9
|
+
import vue_directives from './vue-directives.mjs'
|
|
10
|
+
import vue_interpolations from './vue-interpolations.mjs'
|
|
11
|
+
import vue_sfc_style_variable_injection from './vue-sfc-style-variable-injection.mjs'
|
|
12
|
+
|
|
13
|
+
const lang = Object.freeze({displayName:"Vue",name:"vue",patterns:[{include:"#vue-comments"},{include:"text.html.basic#comment"},{include:"#self-closing-tag"},{begin:/(<)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},patterns:[{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)md\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.markdown",patterns:[{include:"text.html.markdown"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)html\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)pug\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text.pug",patterns:[{include:"text.pug"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)stylus\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.stylus",patterns:[{include:"source.stylus"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)postcss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.postcss",patterns:[{include:"source.postcss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)sass\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.sass",patterns:[{include:"source.sass"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)css\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)scss\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.scss",patterns:[{include:"source.css.scss"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)less\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.css.less",patterns:[{include:"source.css.less"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)js\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)ts\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.ts",patterns:[{include:"source.ts"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.js.jsx",patterns:[{include:"source.js.jsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)tsx\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.tsx",patterns:[{include:"source.tsx"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)coffee\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.coffee",patterns:[{include:"source.coffee"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json",patterns:[{include:"source.json"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)jsonc\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json.comments",patterns:[{include:"source.json.comments"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)json5\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.json5",patterns:[{include:"source.json5"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)yaml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.yaml",patterns:[{include:"source.yaml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)toml\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.toml",patterns:[{include:"source.toml"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)(gql|graphql)\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.graphql",patterns:[{include:"source.graphql"}]}]},{begin:/([a-zA-Z0-9\:\-]+)\b(?=[^\>]*\blang\p{space}*=\p{space}*(['"]?)vue\b\2)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"source.vue",patterns:[{include:"source.vue"}]}]},{begin:/(template)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/template\b)/dgv,name:"text.html.derivative",patterns:[{include:"#html-stuff"}]}]},{begin:/(script)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/script\b)/dgv,name:"source.js",patterns:[{include:"source.js"}]}]},{begin:/(style)\b/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/style\b)/dgv,name:"source.css",patterns:[{include:"source.css"}]}]},{begin:/([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"entity.name.tag.$1.html.vue"}},end:/(<\/)(\1)\p{space}*(?=>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},patterns:[{include:"#tag-stuff"},{begin:/(?<=>)/dgv,end:/(?=<\/)/dgv,name:"text"}]}]}],repository:{"html-stuff":{patterns:[{include:"#template-tag"},{include:"text.html.derivative"},{include:"text.html.basic"}]},"self-closing-tag":{begin:/(<)([a-zA-Z0-9\:\-]+)(?=([^\>]+\/>))/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"self-closing-tag",patterns:[{include:"#tag-stuff"}]},"tag-stuff":{begin:/(?:)/dgv,end:/(?=\/>)|(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.tag-stuff",patterns:[{include:"#vue-directives"},{include:"text.html.basic#attribute"}]},"template-tag":{patterns:[{include:"#template-tag-1"},{include:"#template-tag-2"}]},"template-tag-1":{begin:/(<)(template)\b(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"},"3":{name:"punctuation.definition.tag.end.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#html-stuff"}]}]},"template-tag-2":{begin:/(<)(template)\b/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html.vue"},"2":{name:"entity.name.tag.$2.html.vue"}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html.vue"}},name:"meta.template-tag.start",patterns:[{begin:/(?:)/dgv,end:/(?=\/>)|((<\/)(template)\b)/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.begin.html.vue"},"3":{name:"entity.name.tag.$3.html.vue"}},name:"meta.template-tag.end",patterns:[{include:"#tag-stuff"},{include:"#html-stuff"}]}]},"vue-comments":{patterns:[{include:"#vue-comments-key-value"}]},"vue-comments-key-value":{begin:/(<!--)\p{space}*(@)([\p{L}\p{M}\p{N}\p{Pc}\$]+)(?=\p{space})/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.vue"},"2":{name:"punctuation.definition.block.tag.comment.vue"},"3":{name:"storage.type.class.comment.vue"}},end:/(-->)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.vue"}},name:"comment.block.vue",patterns:[{include:"source.json#value"}]},"vue-directives":{patterns:[{include:"#vue-directives-control"},{include:"#vue-directives-style-attr"},{include:"#vue-directives-original"},{include:"#vue-directives-generic-attr"}]},"vue-directives-control":{begin:/(v-for)|(v-if|v-else-if|v-else)/dgv,captures:{"1":{name:"keyword.control.loop.vue"},"2":{name:"keyword.control.conditional.vue"}},end:new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.attribute.directive.control.vue",patterns:[{include:"#vue-directives-expression"}]},"vue-directives-expression":{patterns:[{begin:/(=)\p{space}*('|"|`)/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"punctuation.definition.string.begin.html.vue"}},end:/(\2)()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},patterns:[{begin:/(?<=('|"|`))/dgv,end:/(?=\1)()/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]},{begin:/(=)\p{space}*(?=[^'"\`])/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.html.vue"}},end:/(?=(\p{space}|>|\/>))/dgv,patterns:[{begin:/(?=[^'"\`])/dgv,end:/(?=(\p{space}|>|\/>))/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]},"vue-directives-generic-attr":{begin:/\b(generic)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.generic.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.type.parameters.vue",patterns:[{include:"source.ts#comment"},{match:/(?<![_\$0-9A-Za-z])(?:(?<=\.\.\.)|(?<!\.))(extends|in|out)(?![_\$0-9A-Za-z])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:/(=)(?!>)/dgv,name:"keyword.operator.assignment.ts"}]}]},"vue-directives-original":{begin:/(?:(v-[\p{L}\p{M}\p{N}\p{Pc}\-]+)(:)?|([\:\.])|(@)|(#))(?:(\[)([^\]]*)(\])|([\p{L}\p{M}\p{N}\p{Pc}\-]+))?/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"},"3":{name:"punctuation.attribute-shorthand.bind.html.vue"},"4":{name:"punctuation.attribute-shorthand.event.html.vue"},"5":{name:"punctuation.attribute-shorthand.slot.html.vue"},"6":{name:"punctuation.separator.key-value.html.vue"},"7":{name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]},"8":{name:"punctuation.separator.key-value.html.vue"},"9":{name:"entity.other.attribute-name.html.vue"}},end:/(?=\p{space}*[^\=\p{space}])/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"meta.attribute.directive.vue",patterns:[{"1":{name:"punctuation.separator.key-value.html.vue"},"2":{name:"entity.other.attribute-name.html.vue"},match:/(\.)([\p{L}\p{M}\p{N}\p{Pc}\-]*)/dgv},{include:"#vue-directives-expression"}]},"vue-directives-style-attr":{begin:/\b(style)\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.html.vue"},"2":{name:"punctuation.separator.key-value.html.vue"}},end:/(?<='|")/dgv,name:"meta.attribute.style.vue",patterns:[{begin:/('|")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.html.vue"}},comment:"Copy from source.css#rule-list-innards",end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.html.vue"}},name:"source.css.embedded.html.vue",patterns:[{include:"source.css#comment-block"},{include:"source.css#escapes"},{include:"source.css#font-features"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{begin:/(?<![\-a-zA-Z])(?=[\-a-zA-Z])/dgv,end:/(?=$|\n)|(?![\-a-zA-Z])/dgv,name:"meta.property-name.css",patterns:[{include:"source.css#property-names"}]},{begin:/(:)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"}},comment:"Modify end to fix #199. TODO: handle ' character.",contentName:"meta.property-value.css",end:/\p{space}*(;)|\p{space}*(?='|")/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"source.css#comment-block"},{include:"source.css#property-values"}]},{match:/;/dgv,name:"punctuation.terminator.rule.css"}]}]},"vue-interpolations":{patterns:[{begin:/(\{\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.interpolation.begin.html.vue"}},end:/(\}\})/dgv,endCaptures:{"1":{name:"punctuation.definition.interpolation.end.html.vue"}},name:"expression.embedded.vue",patterns:[{begin:/(?:)/dgv,end:/(?=\}\})/dgv,name:"source.ts.embedded.html.vue",patterns:[{include:"source.ts#expression"}]}]}]}},scopeName:"source.vue",embeddedLangs:["html","css","javascript","typescript","json","html-derivative","markdown-vue","vue-directives","vue-interpolations","vue-sfc-style-variable-injection"],aliases:undefined,embeddedLangsLazy:["markdown","pug","stylus","sass","scss","less","jsx","tsx","coffee","jsonc","json5","yaml","toml","graphql"]})
|
|
14
|
+
|
|
15
|
+
export default [
|
|
16
|
+
...html,
|
|
17
|
+
...css,
|
|
18
|
+
...javascript,
|
|
19
|
+
...typescript,
|
|
20
|
+
...json,
|
|
21
|
+
...html_derivative,
|
|
22
|
+
...markdown_vue,
|
|
23
|
+
...vue_directives,
|
|
24
|
+
...vue_interpolations,
|
|
25
|
+
...vue_sfc_style_variable_injection,
|
|
26
|
+
lang
|
|
27
|
+
]
|
package/dist/vy.d.mts
ADDED
package/dist/vy.mjs
ADDED
package/dist/vyper.d.mts
ADDED