@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/c.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"C",name:"c",patterns:[{include:"#preprocessor-rule-enabled"},{include:"#preprocessor-rule-disabled"},{include:"#preprocessor-rule-conditional"},{include:"#predefined_macros"},{include:"#comments"},{include:"#switch_statement"},{include:"#anon_pattern_1"},{include:"#storage_types"},{include:"#anon_pattern_2"},{include:"#anon_pattern_3"},{include:"#anon_pattern_4"},{include:"#anon_pattern_5"},{include:"#anon_pattern_6"},{include:"#anon_pattern_7"},{include:"#operators"},{include:"#numbers"},{include:"#strings"},{include:"#anon_pattern_range_1"},{include:"#anon_pattern_range_2"},{include:"#anon_pattern_range_3"},{include:"#pragma-mark"},{include:"#anon_pattern_range_4"},{include:"#anon_pattern_range_5"},{include:"#anon_pattern_range_6"},{include:"#anon_pattern_8"},{include:"#anon_pattern_9"},{include:"#anon_pattern_10"},{include:"#anon_pattern_11"},{include:"#anon_pattern_12"},{include:"#anon_pattern_13"},{include:"#block"},{include:"#parens"},{include:"#anon_pattern_range_7"},{include:"#line_continuation_character"},{include:"#anon_pattern_range_8"},{include:"#anon_pattern_range_9"},{include:"#anon_pattern_14"},{include:"#anon_pattern_15"}],repository:{"access-method":{begin:/([a-zA-Z_][a-zA-Z_0-9]*|(?<=[\]\)]))\p{space}*(?:(\.)|(->))((?:[a-zA-Z_][a-zA-Z_0-9]*\p{space}*(?:\.|->))*)\p{space}*([a-zA-Z_][a-zA-Z_0-9]*)(\()/dgv,beginCaptures:{"1":{name:"variable.object.c"},"2":{name:"punctuation.separator.dot-access.c"},"3":{name:"punctuation.separator.pointer-access.c"},"4":{patterns:[{match:/\./dgv,name:"punctuation.separator.dot-access.c"},{match:/->/dgv,name:"punctuation.separator.pointer-access.c"},{match:/[a-zA-Z_][a-zA-Z_0-9]*/dgv,name:"variable.object.c"},{match:/[^\n]+/dgv,name:"everything.else.c"}]},"5":{name:"entity.name.function.member.c"},"6":{name:"punctuation.section.arguments.begin.bracket.round.function.member.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.arguments.end.bracket.round.function.member.c"}},name:"meta.function-call.member.c",patterns:[{include:"#function-call-innards"}]},anon_pattern_1:{match:/\b(break|continue|do|else|for|goto|if|_Pragma|return|while)\b/dgv,name:"keyword.control.c"},anon_pattern_10:{match:/\b(int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|intmax_t|uintmax_t|uintmax_t)\b/dgv,name:"support.type.stdint.c"},anon_pattern_11:{match:/\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\b/dgv,name:"support.constant.mac-classic.c"},anon_pattern_12:{match:/\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\b/dgv,name:"support.type.mac-classic.c"},anon_pattern_13:{match:/\b([A-Za-z0-9_]+_t)\b/dgv,name:"support.type.posix-reserved.c"},anon_pattern_14:{match:/;/dgv,name:"punctuation.terminator.statement.c"},anon_pattern_15:{match:/,/dgv,name:"punctuation.separator.delimiter.c"},anon_pattern_2:{match:/typedef/dgv,name:"keyword.other.typedef.c"},anon_pattern_3:{match:/\b(const|extern|register|restrict|static|volatile|inline)\b/dgv,name:"storage.modifier.c"},anon_pattern_4:{match:/\bk[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"constant.other.variable.mac-classic.c"},anon_pattern_5:{match:/\bg[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.readwrite.global.mac-classic.c"},anon_pattern_6:{match:/\bs[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.readwrite.static.mac-classic.c"},anon_pattern_7:{match:/\b(NULL|true|false|TRUE|FALSE)\b/dgv,name:"constant.language.c"},anon_pattern_8:{match:/\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|div_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\b/dgv,name:"support.type.sys-types.c"},anon_pattern_9:{match:/\b(pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t)\b/dgv,name:"support.type.pthread.c"},anon_pattern_range_1:{begin:new EmulatedRegExp("((?:(?:(?:(?=($E$\\p{space}+))\\2)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\6)[^\\/])*))\\5)((?:(?=($E$\\*+))\\8)/)))+?|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))((#)\\p{space}*define\\b)\\p{space}+((?<![\\p{L}\\p{M}\\p{N}\\p{Pc}])[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?![\\p{L}\\p{M}\\p{N}\\p{Pc}]))(?:(\\()([^\\(\\)\\\\]+)(\\)))?","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"keyword.control.directive.define.c"},"6":{name:"punctuation.definition.directive.c"},"7":{name:"entity.name.function.preprocessor.c"},"8":{name:"punctuation.definition.parameters.begin.c"},"9":{patterns:[{captures:{"1":{name:"variable.parameter.preprocessor.c"}},match:/(?<=[\(\,])\p{space}*((?<![\p{L}\p{M}\p{N}\p{Pc}])[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*(?![\p{L}\p{M}\p{N}\p{Pc}]))\p{space}*/dgv},{match:/,/dgv,name:"punctuation.separator.parameters.c"},{match:/\.\.\./dgv,name:"ellipses.c punctuation.vararg-ellipses.variable.parameter.preprocessor.c"}]},"10":{name:"punctuation.definition.parameters.end.c"}},end:/(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.macro.c",patterns:[{include:"#preprocessor-rule-define-line-contents"}]},anon_pattern_range_2:{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(error|warning))\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.directive.diagnostic.$3.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.diagnostic.c",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.c",patterns:[{include:"#line_continuation_character"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/'|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.single.c",patterns:[{include:"#line_continuation_character"}]},{begin:/[^'"]/dgv,end:/(?<!\\)(?=\p{space}*\n)/dgv,name:"string.unquoted.single.c",patterns:[{include:"#line_continuation_character"},{include:"#comments"}]}]},anon_pattern_range_3:{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(include(?:_next)?|import))\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.directive.$3.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.include.c",patterns:[{include:"#line_continuation_character"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.include.c"},{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.other.lt-gt.include.c"}]},anon_pattern_range_4:{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*line)\b/dgv,beginCaptures:{"1":{name:"keyword.control.directive.line.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#strings"},{include:"#numbers"},{include:"#line_continuation_character"}]},anon_pattern_range_5:{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*undef)\b/dgv,beginCaptures:{"1":{name:"keyword.control.directive.undef.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{match:/[a-zA-Z_\$][\p{L}\p{M}\p{N}\p{Pc}\$]*/dgv,name:"entity.name.function.preprocessor.c"},{include:"#line_continuation_character"}]},anon_pattern_range_6:{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*pragma)\b/dgv,beginCaptures:{"1":{name:"keyword.control.directive.pragma.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?:\/\/|\/\*))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.pragma.c",patterns:[{include:"#strings"},{match:/[a-zA-Z_\$][\p{L}\p{M}\p{N}\p{Pc}\-\$]*/dgv,name:"entity.other.attribute-name.pragma.preprocessor.c"},{include:"#numbers"},{include:"#line_continuation_character"}]},anon_pattern_range_7:{begin:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(?!\p{space}*(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|pthread_rwlock_t|atomic_uintptr_t|atomic_ptrdiff_t|atomic_uintmax_t|atomic_intmax_t|atomic_char32_t|atomic_intptr_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|uint_least8_t|int_least32_t|int_least16_t|pthread_key_t|uint_fast32_t|uint_fast64_t|uint_fast16_t|atomic_size_t|atomic_ushort|atomic_ullong|int_least64_t|atomic_ulong|int_least8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|memory_order|atomic_schar|atomic_uchar|atomic_short|atomic_llong|thread_local|atomic_bool|atomic_uint|atomic_long|int_fast8_t|suseconds_t|atomic_char|atomic_int|useconds_t|_Imaginary|uintmax_t|uintmax_t|in_addr_t|in_port_t|_Noreturn|blksize_t|pthread_t|uintptr_t|volatile|u_quad_t|blkcnt_t|intmax_t|intptr_t|_Complex|uint16_t|uint32_t|uint64_t|_Alignof|_Alignas|continue|unsigned|restrict|intmax_t|register|int64_t|qaddr_t|segsz_t|_Atomic|alignas|default|caddr_t|nlink_t|typedef|u_short|fixpt_t|clock_t|swblk_t|ssize_t|alignof|daddr_t|int16_t|int32_t|uint8_t|struct|mode_t|size_t|time_t|ushort|u_long|u_char|int8_t|double|signed|static|extern|inline|return|switch|xor_eq|and_eq|bitand|not_eq|sizeof|quad_t|uid_t|bitor|union|off_t|key_t|ino_t|compl|u_int|short|const|false|while|float|pid_t|break|_Bool|or_eq|div_t|dev_t|gid_t|id_t|long|case|goto|else|bool|auto|id_t|enum|uint|true|NULL|void|char|for|not|int|and|xor|do|or|if)\p{space}*\()(?=[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\p{space}*\()/dgv,end:new EmulatedRegExp("(?<=\\))","dgv",{"strategy":"not_search_start"}),name:"meta.function.c",patterns:[{include:"#function-innards"}]},anon_pattern_range_8:{begin:/([a-zA-Z_][a-zA-Z_0-9]*|(?<=[\]\)]))?(\[)(?!\])/dgv,beginCaptures:{"1":{name:"variable.object.c"},"2":{name:"punctuation.definition.begin.bracket.square.c"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.end.bracket.square.c"}},name:"meta.bracket.square.access.c",patterns:[{include:"#function-call-innards"}]},anon_pattern_range_9:{match:/\[\p{space}*\]/dgv,name:"storage.modifier.array.bracket.square.c"},backslash_escapes:{match:/\\(\\|[abefnprtv'"\?]|[0-3][0-7]{0,2}|[4-7]\p{Nd}?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})/dgv,name:"constant.character.escape.c"},block:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.c"}},end:/\}|(?=\p{space}*#\p{space}*(?:elif|else|endif)\b)/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.c"}},name:"meta.block.c",patterns:[{include:"#block_innards"}]}]},block_comment:{patterns:[{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(/\\*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.begin.c"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.c"}},name:"comment.block.c"},{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(/\\*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.begin.c"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.c"}},name:"comment.block.c"}]},block_innards:{patterns:[{include:"#preprocessor-rule-enabled-block"},{include:"#preprocessor-rule-disabled-block"},{include:"#preprocessor-rule-conditional-block"},{include:"#method_access"},{include:"#member_access"},{include:"#c_function_call"},{begin:new EmulatedRegExp("(?=\\p{space})(?<!else|new|return)(?<=[\\p{L}\\p{M}\\p{N}\\p{Pc}])\\p{space}+(and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)((?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\4)|::)+))\\3)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"variable.other.c"},"2":{name:"punctuation.section.parens.begin.bracket.round.initialization.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.initialization.c"}},name:"meta.initialization.c",patterns:[{include:"#function-call-innards"}]},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.c"}},end:/\}|(?=\p{space}*#\p{space}*(?:elif|else|endif)\b)/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.c"}},patterns:[{include:"#block_innards"}]},{include:"#parens-block"},{include:"$self"}]},c_conditional_context:{patterns:[{include:"$self"},{include:"#block_innards"}]},c_function_call:{begin:new EmulatedRegExp("(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\p{space}*\\()(?=(?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\2)|::)+))\\1)\\p{space}*\\(|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\])\\p{space}*\\()","dgv",{"useEmulationGroups":true}),end:/(?<=\))(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"meta.function-call.c",patterns:[{include:"#function-call-innards"}]},case_statement:{begin:new EmulatedRegExp("((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\3)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\7)[^\\/])*))\\6)((?:(?=($E$\\*+))\\9)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\2))((?<![\\p{L}\\p{M}\\p{N}\\p{Pc}])case(?![\\p{L}\\p{M}\\p{N}\\p{Pc}]))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"keyword.control.case.c"}},end:/(:)/dgv,endCaptures:{"1":{name:"punctuation.separator.colon.case.c"}},name:"meta.conditional.case.c",patterns:[{include:"#evaluation_context"},{include:"#c_conditional_context"}]},comments:{patterns:[{patterns:[{patterns:[{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(?:(?=($E$\\p{space}*))\\1)(//[\\!\\/]+)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.documentation.c"}},end:/(?<=\n)(?<!\\\n)/dgv,name:"comment.line.double-slash.documentation.c",patterns:[{include:"#line_continuation_character"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:callergraph|callgraph|else|endif|f\$|f\[|f\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\$|#|<|>|%|"|\.|=|::|\||--|---)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.italic.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:a|em|e))\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.bold.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]b)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.inline.raw.string.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:c|p))\p{space}+(\P{space}+)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{patterns:[{match:/in|out/dgv,name:"keyword.other.parameter.direction.$0.c"}]},"3":{name:"variable.parameter.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]param)(?:\p{space}*\[((?:,?\p{space}*(?:in|out)\p{space}*)+)\])?\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?:\b[A-Z]+:|@[a-z_]+:)/dgv,name:"storage.type.class.gtkdoc"}]},{captures:{"1":{name:"punctuation.definition.comment.begin.documentation.c"},"2":{patterns:[{match:/(?<=[\p{space}\*\!\/])[\\\@](?:callergraph|callgraph|else|endif|f\$|f\[|f\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\$|#|<|>|%|"|\.|=|::|\||--|---)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.italic.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:a|em|e))\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.bold.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]b)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.inline.raw.string.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:c|p))\p{space}+(\P{space}+)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{patterns:[{match:/in|out/dgv,name:"keyword.other.parameter.direction.$0.c"}]},"3":{name:"variable.parameter.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]param)(?:\p{space}*\[((?:,?\p{space}*(?:in|out)\p{space}*)+)\])?\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?:\b[A-Z]+:|@[a-z_]+:)/dgv,name:"storage.type.class.gtkdoc"}]},"3":{name:"punctuation.definition.comment.end.documentation.c"}},match:/(\/\*[\!\*]+(?=\p{space}))([^\n]+)([\!\*]*\*\/)/dgv,name:"comment.block.documentation.c"},{begin:new EmulatedRegExp("((?:(?=($E$\\p{space}*))\\2)/\\*[\\!\\*]+(?:(?:\\n|(?=$|\\n))|(?=\\p{space})))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.begin.documentation.c"}},end:/([\!\*]*\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.end.documentation.c"}},name:"comment.block.documentation.c",patterns:[{match:/(?<=[\p{space}\*\!\/])[\\\@](?:callergraph|callgraph|else|endif|f\$|f\[|f\]|hidecallergraph|hidecallgraph|hiderefby|hiderefs|hideinitializer|htmlinclude|n|nosubgrouping|private|privatesection|protected|protectedsection|public|publicsection|pure|showinitializer|showrefby|showrefs|tableofcontents|\$|#|<|>|%|"|\.|=|::|\||--|---)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.italic.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:a|em|e))\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.bold.doxygen.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]b)\p{space}+(\P{space}+)/dgv},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{name:"markup.inline.raw.string.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@](?:c|p))\p{space}+(\P{space}+)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:a|anchor|b|c|cite|copybrief|copydetail|copydoc|def|dir|dontinclude|e|em|emoji|enum|example|extends|file|idlexcept|implements|include|includedoc|includelineno|latexinclude|link|memberof|namespace|p|package|ref|refitem|related|relates|relatedalso|relatesalso|verbinclude)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:addindex|addtogroup|category|class|defgroup|diafile|dotfile|elseif|fn|headerfile|if|ifnot|image|ingroup|interface|line|mainpage|mscfile|name|overload|page|property|protocol|section|skip|skipline|snippet|snippetdoc|snippetlineno|struct|subpage|subsection|subsubsection|typedef|union|until|vhdlflow|weakgroup)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{captures:{"1":{name:"storage.type.class.doxygen.c"},"2":{patterns:[{match:/in|out/dgv,name:"keyword.other.parameter.direction.$0.c"}]},"3":{name:"variable.parameter.c"}},match:/((?<=[\p{space}\*\!\/])[\\\@]param)(?:\p{space}*\[((?:,?\p{space}*(?:in|out)\p{space}*)+)\])?\p{space}+(\b[\p{L}\p{M}\p{N}\p{Pc}]+\b)/dgv},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:arg|attention|author|authors|brief|bug|copyright|date|deprecated|details|exception|invariant|li|note|par|paragraph|param|post|pre|remark|remarks|result|return|returns|retval|sa|see|short|since|test|throw|todo|tparam|version|warning|xrefitem)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?<=[\p{space}\*\!\/])[\\\@](?:code|cond|docbookonly|dot|htmlonly|internal|latexonly|link|manonly|msc|parblock|rtfonly|secreflist|uml|verbatim|xmlonly|endcode|endcond|enddocbookonly|enddot|endhtmlonly|endinternal|endlatexonly|endlink|endmanonly|endmsc|endparblock|endrtfonly|endsecreflist|enduml|endverbatim|endxmlonly)\b(?:\{[^\}]*\})?/dgv,name:"storage.type.class.doxygen.c"},{match:/(?:\b[A-Z]+:|@[a-z_]+:)/dgv,name:"storage.type.class.gtkdoc"}]},{captures:{"1":{name:"meta.toc-list.banner.block.c"}},match:/(?<=^|\n(?!$))\/\* =(\p{space}*[^\n]*?)\p{space}*= \*\/(?=$|\n)\n?/dgv,name:"comment.block.banner.c"},{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.begin.c"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.end.c"}},name:"comment.block.c"},{captures:{"1":{name:"meta.toc-list.banner.line.c"}},match:/(?<=^|\n(?!$))\/\/ =(\p{space}*[^\n]*?)\p{space}*=(?=$|\n)\n?/dgv,name:"comment.line.banner.c"},{begin:/((?:(?<=^|\n(?!$))[ \t]+)?)(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.c"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.c"}},end:/(?=\n)/dgv,name:"comment.line.double-slash.c",patterns:[{include:"#line_continuation_character"}]}]}]},{include:"#block_comment"},{include:"#line_comment"}]},{include:"#block_comment"},{include:"#line_comment"}]},default_statement:{begin:new EmulatedRegExp("((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\3)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\7)[^\\/])*))\\6)((?:(?=($E$\\*+))\\9)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\2))((?<![\\p{L}\\p{M}\\p{N}\\p{Pc}])default(?![\\p{L}\\p{M}\\p{N}\\p{Pc}]))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"keyword.control.default.c"}},end:/(:)/dgv,endCaptures:{"1":{name:"punctuation.separator.colon.case.default.c"}},name:"meta.conditional.case.c",patterns:[{include:"#evaluation_context"},{include:"#c_conditional_context"}]},disabled:{begin:/(?<=^|\n(?!$))\p{space}*#\p{space}*if(n?def)?\b[^\n]*(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*#\p{space}*endif\b/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},evaluation_context:{patterns:[{include:"#function-call-innards"},{include:"$self"}]},"function-call-innards":{patterns:[{include:"#comments"},{include:"#storage_types"},{include:"#method_access"},{include:"#member_access"},{include:"#operators"},{begin:new EmulatedRegExp("(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\p{space}*\\()((?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\3)|::)+))\\2)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.c"},"2":{name:"punctuation.section.arguments.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.arguments.end.bracket.round.c"}},patterns:[{include:"#function-call-innards"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.c"}},patterns:[{include:"#function-call-innards"}]},{include:"#block_innards"}]},"function-innards":{patterns:[{include:"#comments"},{include:"#storage_types"},{include:"#operators"},{include:"#vararg_ellipses"},{begin:new EmulatedRegExp("(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\p{space}*\\()((?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\3)|::)+))\\2)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.c"},"2":{name:"punctuation.section.parameters.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parameters.end.bracket.round.c"}},name:"meta.function.definition.parameters.c",patterns:[{include:"#probably_a_parameter"},{include:"#function-innards"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.c"}},patterns:[{include:"#function-innards"}]},{include:"$self"}]},inline_comment:{patterns:[{patterns:[{captures:{"1":{name:"comment.block.c punctuation.definition.comment.begin.c"},"2":{name:"comment.block.c"},"3":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},match:new EmulatedRegExp("(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\4)[^\\/])*))\\3)((?:(?=($E$\\*+))\\6)/))","dgv",{"useEmulationGroups":true})},{captures:{"1":{name:"comment.block.c punctuation.definition.comment.begin.c"},"2":{name:"comment.block.c"},"3":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},match:new EmulatedRegExp("(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$(?:\\*)+))\\4)[^\\/])*))\\3)((?:(?=($E$(?:\\*)+))\\6)/))","dgv",{"useEmulationGroups":true})}]},{captures:{"1":{name:"comment.block.c punctuation.definition.comment.begin.c"},"2":{name:"comment.block.c"},"3":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},match:new EmulatedRegExp("(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$(?:\\*)+))\\4)[^\\/])*))\\3)((?:(?=($E$(?:\\*)+))\\6)/))","dgv",{"useEmulationGroups":true})}]},line_comment:{patterns:[{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(//)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.c"}},end:/(?<=\n)(?<!\\\n)/dgv,endCaptures:{},name:"comment.line.double-slash.c",patterns:[{include:"#line_continuation_character"}]},{begin:new EmulatedRegExp("(?:(?=($E$\\p{space}*))\\1)(//)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.comment.c"}},end:/(?<=\n)(?<!\\\n)/dgv,endCaptures:{},name:"comment.line.double-slash.c",patterns:[{include:"#line_continuation_character"}]}]},line_continuation_character:{patterns:[{captures:{"1":{name:"constant.character.escape.line-continuation.c"}},match:/(\\)\n/dgv}]},member_access:{captures:{"1":{name:"variable.other.object.access.c"},"2":{name:"punctuation.separator.dot-access.c"},"3":{name:"punctuation.separator.pointer-access.c"},"4":{patterns:[{include:"#member_access"},{include:"#method_access"},{captures:{"1":{name:"variable.other.object.access.c"},"2":{name:"punctuation.separator.dot-access.c"},"3":{name:"punctuation.separator.pointer-access.c"}},match:/((?:[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*|(?<=\]|\)))\p{space}*)(?:((?:\.\*|\.))|((?:->\*|->)))/dgv}]},"5":{name:"variable.other.member.c"}},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}*(?:(?:\.\*|\.)|(?:->\*|->))\p{space}*)*)\p{space}*(\b(?!(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|atomic_uint_least8_t|atomic_int_least16_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_int_least64_t|atomic_int_least32_t|pthread_rwlockattr_t|atomic_uint_fast16_t|pthread_mutexattr_t|atomic_int_fast16_t|atomic_uint_fast8_t|atomic_int_fast64_t|atomic_int_least8_t|atomic_int_fast32_t|atomic_int_fast8_t|pthread_condattr_t|atomic_uintptr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintmax_t|pthread_mutex_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_attr_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_cond_t|pthread_once_t|uint_fast64_t|uint_fast16_t|atomic_size_t|uint_least8_t|int_least64_t|int_least32_t|int_least16_t|pthread_key_t|atomic_ullong|atomic_ushort|uint_fast32_t|atomic_schar|atomic_short|uint_fast8_t|int_fast64_t|int_fast32_t|int_fast16_t|atomic_ulong|atomic_llong|int_least8_t|atomic_uchar|memory_order|suseconds_t|int_fast8_t|atomic_bool|atomic_char|atomic_uint|atomic_long|atomic_int|useconds_t|_Imaginary|blksize_t|pthread_t|in_addr_t|uintptr_t|in_port_t|uintmax_t|uintmax_t|blkcnt_t|uint16_t|unsigned|_Complex|uint32_t|intptr_t|intmax_t|intmax_t|uint64_t|u_quad_t|int64_t|int32_t|ssize_t|caddr_t|clock_t|uint8_t|u_short|swblk_t|segsz_t|int16_t|fixpt_t|daddr_t|nlink_t|qaddr_t|size_t|time_t|mode_t|signed|quad_t|ushort|u_long|u_char|double|int8_t|ino_t|uid_t|pid_t|_Bool|float|dev_t|div_t|short|gid_t|off_t|u_int|key_t|id_t|uint|long|void|char|bool|id_t|int)\b)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*\b(?!\())/dgv},method_access:{begin:/((?:[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}*(?:(?:\.\*|\.)|(?:->\*|->))\p{space}*)*)\p{space}*([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)(\()/dgv,beginCaptures:{"1":{name:"variable.other.object.access.c"},"2":{name:"punctuation.separator.dot-access.c"},"3":{name:"punctuation.separator.pointer-access.c"},"4":{patterns:[{include:"#member_access"},{include:"#method_access"},{captures:{"1":{name:"variable.other.object.access.c"},"2":{name:"punctuation.separator.dot-access.c"},"3":{name:"punctuation.separator.pointer-access.c"}},match:/((?:[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*|(?<=\]|\)))\p{space}*)(?:((?:\.\*|\.))|((?:->\*|->)))/dgv}]},"5":{name:"entity.name.function.member.c"},"6":{name:"punctuation.section.arguments.begin.bracket.round.function.member.c"}},contentName:"meta.function-call.member.c",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.arguments.end.bracket.round.function.member.c"}},patterns:[{include:"#function-call-innards"}]},numbers:{captures:{"0":{patterns:[{begin:/(?=[^\n])/dgv,end:/(?=$|\n)/dgv,patterns:[{captures:{"1":{name:"keyword.other.unit.hexadecimal.c"},"2":{name:"constant.numeric.hexadecimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"4":{name:"constant.numeric.hexadecimal.c"},"5":{name:"constant.numeric.hexadecimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"6":{name:"punctuation.separator.constant.numeric"},"8":{name:"keyword.other.unit.exponent.hexadecimal.c"},"9":{name:"keyword.operator.plus.exponent.hexadecimal.c"},"10":{name:"keyword.operator.minus.exponent.hexadecimal.c"},"11":{name:"constant.numeric.exponent.hexadecimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"12":{name:"keyword.other.unit.suffix.floating-point.c"}},match:/(0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=[0-9a-fA-F])\.|\.(?=[0-9a-fA-F])))([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?<!')([pP])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?([lLfF](?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{captures:{"2":{name:"constant.numeric.decimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"4":{name:"constant.numeric.decimal.point.c"},"5":{name:"constant.numeric.decimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"6":{name:"punctuation.separator.constant.numeric"},"8":{name:"keyword.other.unit.exponent.decimal.c"},"9":{name:"keyword.operator.plus.exponent.decimal.c"},"10":{name:"keyword.operator.minus.exponent.decimal.c"},"11":{name:"constant.numeric.exponent.decimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"12":{name:"keyword.other.unit.suffix.floating-point.c"}},match:/((?=[0-9\.])(?!0[xXbB]))(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?:(?<=\p{Nd})\.|\.(?=\p{Nd})))(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)?((?<!')([eE])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?([lLfF](?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{captures:{"1":{name:"keyword.other.unit.binary.c"},"2":{name:"constant.numeric.binary.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"4":{name:"keyword.other.unit.suffix.integer.c"}},match:/(0[bB])([01](?:[01]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{captures:{"1":{name:"keyword.other.unit.octal.c"},"2":{name:"constant.numeric.octal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"4":{name:"keyword.other.unit.suffix.integer.c"}},match:/(0)((?:[0-7]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))+)((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{captures:{"1":{name:"keyword.other.unit.hexadecimal.c"},"2":{name:"constant.numeric.hexadecimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"5":{name:"keyword.other.unit.exponent.hexadecimal.c"},"6":{name:"keyword.operator.plus.exponent.hexadecimal.c"},"7":{name:"keyword.operator.minus.exponent.hexadecimal.c"},"8":{name:"constant.numeric.exponent.hexadecimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"9":{name:"keyword.other.unit.suffix.integer.c"}},match:/(0[xX])([0-9a-fA-F](?:[0-9a-fA-F]|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?<!')([pP])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{captures:{"2":{name:"constant.numeric.decimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"3":{name:"punctuation.separator.constant.numeric"},"5":{name:"keyword.other.unit.exponent.decimal.c"},"6":{name:"keyword.operator.plus.exponent.decimal.c"},"7":{name:"keyword.operator.minus.exponent.decimal.c"},"8":{name:"constant.numeric.exponent.decimal.c",patterns:[{match:/(?<=[0-9a-fA-F])'(?=[0-9a-fA-F])/dgv,name:"punctuation.separator.constant.numeric"}]},"9":{name:"keyword.other.unit.suffix.integer.c"}},match:/((?=[0-9\.])(?!0[xXbB]))(\p{Nd}(?:\p{Nd}|((?<=[0-9a-fA-F])'(?=[0-9a-fA-F])))*)((?<!')([eE])(\+?)(-?)(\p{Nd}(?:\p{Nd}|(?<=[0-9a-fA-F])'(?=[0-9a-fA-F]))*))?((?:(?:(?:(?:(?:[uU]|[uU]ll?)|[uU]LL?)|ll?[uU]?)|LL?[uU]?)|[fF])(?![\p{L}\p{M}\p{N}\p{Pc}]))?(?=$|\n)/dgvy},{match:/(?:(?:[0-9a-zA-Z_\.]|')|(?<=[eEpP])[\+\-])+/dgv,name:"invalid.illegal.constant.numeric"}]}]}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\.?\p{Nd}(?:(?:[0-9a-zA-Z_\.]|')|(?<=[eEpP])[\+\-])*/dgv},operators:{patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\$])(sizeof)(?![\p{L}\p{M}\p{N}\p{Pc}\$])/dgv,name:"keyword.operator.sizeof.c"},{match:/--/dgv,name:"keyword.operator.decrement.c"},{match:/\+\+/dgv,name:"keyword.operator.increment.c"},{match:/%=|\+=|-=|\*=|(?<!\()\/=/dgv,name:"keyword.operator.assignment.compound.c"},{match:/&=|\^=|<<=|>>=|\|=/dgv,name:"keyword.operator.assignment.compound.bitwise.c"},{match:/<<|>>/dgv,name:"keyword.operator.bitwise.shift.c"},{match:/!=|<=|>=|==|<|>/dgv,name:"keyword.operator.comparison.c"},{match:/&&|!|\|\|/dgv,name:"keyword.operator.logical.c"},{match:/&|\||\^|~/dgv,name:"keyword.operator.c"},{match:/=/dgv,name:"keyword.operator.assignment.c"},{match:/%|\*|\/|-|\+/dgv,name:"keyword.operator.c"},{begin:/(\?)/dgv,beginCaptures:{"1":{name:"keyword.operator.ternary.c"}},end:/(:)/dgv,endCaptures:{"1":{name:"keyword.operator.ternary.c"}},patterns:[{include:"#function-call-innards"},{include:"$self"}]}]},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.c"}},name:"meta.parens.c",patterns:[{include:"$self"}]},"parens-block":{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.c"}},name:"meta.parens.block.c",patterns:[{include:"#block_innards"},{match:/(?<!:):(?!:)/dgv,name:"punctuation.range-based.c"}]},"pragma-mark":{captures:{"1":{name:"meta.preprocessor.pragma.c"},"2":{name:"keyword.control.directive.pragma.pragma-mark.c"},"3":{name:"punctuation.definition.directive.c"},"4":{name:"entity.name.tag.pragma-mark.c"}},match:/(?<=^|\n(?!$))\p{space}*(((#)\p{space}*pragma\p{space}+mark)\p{space}+([^\n]*))/dgv,name:"meta.section.c"},predefined_macros:{patterns:[{captures:{"1":{name:"entity.name.other.preprocessor.macro.predefined.$1.c"}},match:/\b(__cplusplus|__DATE__|__FILE__|__LINE__|__STDC__|__STDC_HOSTED__|__STDC_NO_COMPLEX__|__STDC_VERSION__|__STDCPP_THREADS__|__TIME__|NDEBUG|__OBJC__|__ASSEMBLER__|__ATOM__|__AVX__|__AVX2__|_CHAR_UNSIGNED|__CLR_VER|_CONTROL_FLOW_GUARD|__COUNTER__|__cplusplus_cli|__cplusplus_winrt|_CPPRTTI|_CPPUNWIND|_DEBUG|_DLL|__FUNCDNAME__|__FUNCSIG__|__FUNCTION__|_INTEGRAL_MAX_BITS|__INTELLISENSE__|_ISO_VOLATILE|_KERNEL_MODE|_M_AMD64|_M_ARM|_M_ARM_ARMV7VE|_M_ARM_FP|_M_ARM64|_M_CEE|_M_CEE_PURE|_M_CEE_SAFE|_M_FP_EXCEPT|_M_FP_FAST|_M_FP_PRECISE|_M_FP_STRICT|_M_IX86|_M_IX86_FP|_M_X64|_MANAGED|_MSC_BUILD|_MSC_EXTENSIONS|_MSC_FULL_VER|_MSC_VER|_MSVC_LANG|__MSVC_RUNTIME_CHECKS|_MT|_NATIVE_WCHAR_T_DEFINED|_OPENMP|_PREFAST|__TIMESTAMP__|_VC_NO_DEFAULTLIB|_WCHAR_T_DEFINED|_WIN32|_WIN64|_WINRT_DLL|_ATL_VER|_MFC_VER|__GFORTRAN__|__GNUC__|__GNUC_MINOR__|__GNUC_PATCHLEVEL__|__GNUG__|__STRICT_ANSI__|__BASE_FILE__|__INCLUDE_LEVEL__|__ELF__|__VERSION__|__OPTIMIZE__|__OPTIMIZE_SIZE__|__NO_INLINE__|__GNUC_STDC_INLINE__|__CHAR_UNSIGNED__|__WCHAR_UNSIGNED__|__REGISTER_PREFIX__|__REGISTER_PREFIX__|__SIZE_TYPE__|__PTRDIFF_TYPE__|__WCHAR_TYPE__|__WINT_TYPE__|__INTMAX_TYPE__|__UINTMAX_TYPE__|__SIG_ATOMIC_TYPE__|__INT8_TYPE__|__INT16_TYPE__|__INT32_TYPE__|__INT64_TYPE__|__UINT8_TYPE__|__UINT16_TYPE__|__UINT32_TYPE__|__UINT64_TYPE__|__INT_LEAST8_TYPE__|__INT_LEAST16_TYPE__|__INT_LEAST32_TYPE__|__INT_LEAST64_TYPE__|__UINT_LEAST8_TYPE__|__UINT_LEAST16_TYPE__|__UINT_LEAST32_TYPE__|__UINT_LEAST64_TYPE__|__INT_FAST8_TYPE__|__INT_FAST16_TYPE__|__INT_FAST32_TYPE__|__INT_FAST64_TYPE__|__UINT_FAST8_TYPE__|__UINT_FAST16_TYPE__|__UINT_FAST32_TYPE__|__UINT_FAST64_TYPE__|__INTPTR_TYPE__|__UINTPTR_TYPE__|__CHAR_BIT__|__SCHAR_MAX__|__WCHAR_MAX__|__SHRT_MAX__|__INT_MAX__|__LONG_MAX__|__LONG_LONG_MAX__|__WINT_MAX__|__SIZE_MAX__|__PTRDIFF_MAX__|__INTMAX_MAX__|__UINTMAX_MAX__|__SIG_ATOMIC_MAX__|__INT8_MAX__|__INT16_MAX__|__INT32_MAX__|__INT64_MAX__|__UINT8_MAX__|__UINT16_MAX__|__UINT32_MAX__|__UINT64_MAX__|__INT_LEAST8_MAX__|__INT_LEAST16_MAX__|__INT_LEAST32_MAX__|__INT_LEAST64_MAX__|__UINT_LEAST8_MAX__|__UINT_LEAST16_MAX__|__UINT_LEAST32_MAX__|__UINT_LEAST64_MAX__|__INT_FAST8_MAX__|__INT_FAST16_MAX__|__INT_FAST32_MAX__|__INT_FAST64_MAX__|__UINT_FAST8_MAX__|__UINT_FAST16_MAX__|__UINT_FAST32_MAX__|__UINT_FAST64_MAX__|__INTPTR_MAX__|__UINTPTR_MAX__|__WCHAR_MIN__|__WINT_MIN__|__SIG_ATOMIC_MIN__|__SCHAR_WIDTH__|__SHRT_WIDTH__|__INT_WIDTH__|__LONG_WIDTH__|__LONG_LONG_WIDTH__|__PTRDIFF_WIDTH__|__SIG_ATOMIC_WIDTH__|__SIZE_WIDTH__|__WCHAR_WIDTH__|__WINT_WIDTH__|__INT_LEAST8_WIDTH__|__INT_LEAST16_WIDTH__|__INT_LEAST32_WIDTH__|__INT_LEAST64_WIDTH__|__INT_FAST8_WIDTH__|__INT_FAST16_WIDTH__|__INT_FAST32_WIDTH__|__INT_FAST64_WIDTH__|__INTPTR_WIDTH__|__INTMAX_WIDTH__|__SIZEOF_INT__|__SIZEOF_LONG__|__SIZEOF_LONG_LONG__|__SIZEOF_SHORT__|__SIZEOF_POINTER__|__SIZEOF_FLOAT__|__SIZEOF_DOUBLE__|__SIZEOF_LONG_DOUBLE__|__SIZEOF_SIZE_T__|__SIZEOF_WCHAR_T__|__SIZEOF_WINT_T__|__SIZEOF_PTRDIFF_T__|__BYTE_ORDER__|__ORDER_LITTLE_ENDIAN__|__ORDER_BIG_ENDIAN__|__ORDER_PDP_ENDIAN__|__FLOAT_WORD_ORDER__|__DEPRECATED|__EXCEPTIONS|__GXX_RTTI|__USING_SJLJ_EXCEPTIONS__|__GXX_EXPERIMENTAL_CXX0X__|__GXX_WEAK__|__NEXT_RUNTIME__|__LP64__|_LP64|__SSP__|__SSP_ALL__|__SSP_STRONG__|__SSP_EXPLICIT__|__SANITIZE_ADDRESS__|__SANITIZE_THREAD__|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8|__GCC_HAVE_SYNC_COMPARE_AND_SWAP_16|__HAVE_SPECULATION_SAFE_VALUE|__GCC_HAVE_DWARF2_CFI_ASM|__FP_FAST_FMA|__FP_FAST_FMAF|__FP_FAST_FMAL|__FP_FAST_FMAF16|__FP_FAST_FMAF32|__FP_FAST_FMAF64|__FP_FAST_FMAF128|__FP_FAST_FMAF32X|__FP_FAST_FMAF64X|__FP_FAST_FMAF128X|__GCC_IEC_559|__GCC_IEC_559_COMPLEX|__NO_MATH_ERRNO__|__has_builtin|__has_feature|__has_extension|__has_cpp_attribute|__has_c_attribute|__has_attribute|__has_declspec_attribute|__is_identifier|__has_include|__has_include_next|__has_warning|__BASE_FILE__|__FILE_NAME__|__clang__|__clang_major__|__clang_minor__|__clang_patchlevel__|__clang_version__|__fp16|_Float16)\b/dgv},{match:/\b__([A-Z_]+)__\b/dgv,name:"entity.name.other.preprocessor.macro.predefined.probably.$1.c"}]},"preprocessor-rule-conditional":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if(?:n?def)?\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#preprocessor-rule-enabled-elif"},{include:"#preprocessor-rule-enabled-else"},{include:"#preprocessor-rule-disabled-elif"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"$self"}]},{captures:{"0":{name:"invalid.illegal.stray-$1.c"}},match:/(?<=^|\n(?!$))\p{space}*#\p{space}*(else|elif|endif)\b/dgv}]},"preprocessor-rule-conditional-block":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if(?:n?def)?\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#preprocessor-rule-enabled-elif-block"},{include:"#preprocessor-rule-enabled-else-block"},{include:"#preprocessor-rule-disabled-elif"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#block_innards"}]},{captures:{"0":{name:"invalid.illegal.stray-$1.c"}},match:/(?<=^|\n(?!$))\p{space}*#\p{space}*(else|elif|endif)\b/dgv}]},"preprocessor-rule-conditional-line":{patterns:[{match:/\bdefined\b\p{space}*(?=$|\n)|\bdefined\b(?=\p{space}*\(*\p{space}*(?!defined\b)[a-zA-Z_\$][\p{L}\p{M}\p{N}\p{Pc}\$]*\b\p{space}*\)*\p{space}*(?:\n|\/\/|\/\*|\?|:|&&|\|\||\\\p{space}*\n))/dgv,name:"keyword.control.directive.conditional.c"},{match:/\bdefined\b/dgv,name:"invalid.illegal.macro-name.c"},{include:"#comments"},{include:"#strings"},{include:"#numbers"},{begin:/\?/dgv,beginCaptures:{"0":{name:"keyword.operator.ternary.c"}},end:/:/dgv,endCaptures:{"0":{name:"keyword.operator.ternary.c"}},patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#operators"},{match:/\b(NULL|true|false|TRUE|FALSE)\b/dgv,name:"constant.language.c"},{match:/[a-zA-Z_\$][\p{L}\p{M}\p{N}\p{Pc}\$]*/dgv,name:"entity.name.function.preprocessor.c"},{include:"#line_continuation_character"},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/\)|(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.bracket.round.c"}},patterns:[{include:"#preprocessor-rule-conditional-line"}]}]},"preprocessor-rule-define-line-blocks":{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.c"}},end:/\}|(?=\p{space}*#\p{space}*(?:elif|else|endif)\b)|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.c"}},patterns:[{include:"#preprocessor-rule-define-line-blocks"},{include:"#preprocessor-rule-define-line-contents"}]},{include:"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-define-line-contents":{patterns:[{include:"#vararg_ellipses"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.block.begin.bracket.curly.c"}},end:/\}|(?=\p{space}*#\p{space}*(?:elif|else|endif)\b)|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.bracket.curly.c"}},name:"meta.block.c",patterns:[{include:"#preprocessor-rule-define-line-blocks"}]},{match:/\(/dgv,name:"punctuation.section.parens.begin.bracket.round.c"},{match:/\)/dgv,name:"punctuation.section.parens.end.bracket.round.c"},{begin:new EmulatedRegExp("(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas|asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\p{space}*\\()(?=(?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\2)|::)+))\\1)\\p{space}*\\(|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\])\\p{space}*\\()","dgv",{"useEmulationGroups":true}),end:/(?<=\))(?![\p{L}\p{M}\p{N}\p{Pc}])|(?<!\\)(?=\p{space}*\n)/dgv,name:"meta.function.c",patterns:[{include:"#preprocessor-rule-define-line-functions"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.c",patterns:[{include:"#string_escaped_char"},{include:"#string_placeholder"},{include:"#line_continuation_character"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/'|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.single.c",patterns:[{include:"#string_escaped_char"},{include:"#line_continuation_character"}]},{include:"#method_access"},{include:"#member_access"},{include:"$self"}]},"preprocessor-rule-define-line-functions":{patterns:[{include:"#comments"},{include:"#storage_types"},{include:"#vararg_ellipses"},{include:"#method_access"},{include:"#member_access"},{include:"#operators"},{begin:new EmulatedRegExp("(?!(?:while|for|do|if|else|switch|catch|enumerate|return|typeid|alignof|alignas|sizeof|[cr]?iterate|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq|alignof|alignas)\\p{space}*\\()((?:(?=($E$(?:[A-Za-z_](?:(?=($E$[A-Za-z0-9_]*))\\3)|::)+))\\2)|(?<=operator)(?:[\\-\\*\\&\\<\\>\\=\\+\\!]+|\\(\\)|\\[\\]))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"entity.name.function.c"},"2":{name:"punctuation.section.arguments.begin.bracket.round.c"}},end:/(\))|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"1":{name:"punctuation.section.arguments.end.bracket.round.c"}},patterns:[{include:"#preprocessor-rule-define-line-functions"}]},{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.bracket.round.c"}},end:/(\))|(?<!\\)(?=\p{space}*\n)/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.bracket.round.c"}},patterns:[{include:"#preprocessor-rule-define-line-functions"}]},{include:"#preprocessor-rule-define-line-contents"}]},"preprocessor-rule-disabled":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if\b)(?=\p{space}*\(*\b0+\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{include:"#preprocessor-rule-enabled-elif"},{include:"#preprocessor-rule-enabled-else"},{include:"#preprocessor-rule-disabled-elif"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:elif|else|endif)\b))/dgv,patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"$self"}]},{begin:/\n/dgv,contentName:"comment.block.preprocessor.if-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-block":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if\b)(?=\p{space}*\(*\b0+\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{include:"#preprocessor-rule-enabled-elif-block"},{include:"#preprocessor-rule-enabled-else-block"},{include:"#preprocessor-rule-disabled-elif"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:elif|else|endif)\b))/dgv,patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#block_innards"}]},{begin:/\n/dgv,contentName:"comment.block.preprocessor.if-branch.in-block.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]}]}]},"preprocessor-rule-disabled-elif":{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)(?=\p{space}*\(*\b0+\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:elif|else|endif)\b))/dgv,patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{begin:/\n/dgv,contentName:"comment.block.preprocessor.elif-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]}]},"preprocessor-rule-enabled":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if\b)(?=\p{space}*\(*\b0*1\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"},"3":{name:"constant.numeric.preprocessor.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*else\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.else-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.if-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/\n/dgv,end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"$self"}]}]}]},"preprocessor-rule-enabled-block":{patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*if\b)(?=\p{space}*\(*\b0*1\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b)/dgv,endCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*else\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.else-branch.in-block.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.if-branch.in-block.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/\n/dgv,end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#block_innards"}]}]}]},"preprocessor-rule-enabled-elif":{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)(?=\p{space}*\(*\b0*1\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{begin:/\n/dgv,end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(else)\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.elif-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(elif)\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.elif-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{include:"$self"}]}]},"preprocessor-rule-enabled-elif-block":{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*elif\b)(?=\p{space}*\(*\b0*1\b\)*\p{space}*(?:(?=$|\n)|\/\/|\/\*))/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{begin:/(?=[^\n])(?!\/\/|\/\*(?![^\n]*\\\p{space}*\n))/dgvy,end:/(?=\/\/)|(?=\/\*(?![^\n]*\\\p{space}*\n))|(?<!\\)(?=\n)/dgv,name:"meta.preprocessor.c",patterns:[{include:"#preprocessor-rule-conditional-line"}]},{include:"#comments"},{begin:/\n/dgv,end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(else)\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.elif-branch.in-block.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*(elif)\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},contentName:"comment.block.preprocessor.elif-branch.c",end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*(?:else|elif|endif)\b))/dgv,patterns:[{include:"#disabled"},{include:"#pragma-mark"}]},{include:"#block_innards"}]}]},"preprocessor-rule-enabled-else":{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*else\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"$self"}]},"preprocessor-rule-enabled-else-block":{begin:/(?<=^|\n(?!$))\p{space}*((#)\p{space}*else\b)/dgv,beginCaptures:{"0":{name:"meta.preprocessor.c"},"1":{name:"keyword.control.directive.conditional.c"},"2":{name:"punctuation.definition.directive.c"}},end:/(?=(?<=^|\n(?!$))\p{space}*((#)\p{space}*endif\b))/dgv,patterns:[{include:"#block_innards"}]},probably_a_parameter:{captures:{"1":{name:"variable.parameter.probably.c"}},match:/(?<=(?:[a-zA-Z_0-9] |[\&\*\>\]\)]))\p{space}*([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(?=(?:\[\]\p{space}*)?(?:,|\)))/dgv},static_assert:{begin:new EmulatedRegExp("((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\3)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\7)[^\\/])*))\\6)((?:(?=($E$\\*+))\\9)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\2))((?<![\\p{L}\\p{M}\\p{N}\\p{Pc}])static_assert|_Static_assert(?![\\p{L}\\p{M}\\p{N}\\p{Pc}]))((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\13)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\17)[^\\/])*))\\16)((?:(?=($E$\\*+))\\19)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\12))(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"keyword.other.static_assert.c"},"6":{patterns:[{include:"#inline_comment"}]},"7":{name:"comment.block.c punctuation.definition.comment.begin.c"},"8":{name:"comment.block.c"},"9":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"10":{name:"punctuation.section.arguments.begin.bracket.round.static_assert.c"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.arguments.end.bracket.round.static_assert.c"}},patterns:[{begin:/(,)\p{space}*(?=(?:L|u8|u|U\p{space}*")?)/dgv,beginCaptures:{"1":{name:"punctuation.separator.delimiter.comma.c"}},end:/(?=\))/dgv,name:"meta.static_assert.message.c",patterns:[{include:"#string_context"}]},{include:"#evaluation_context"}]},storage_types:{patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(?:unsigned|signed|double|_Bool|short|float|long|void|char|bool|int)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"storage.type.built-in.primitive.c"},{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])(?:atomic_uint_least64_t|atomic_uint_least16_t|atomic_uint_least32_t|pthread_rwlockattr_t|atomic_uint_fast64_t|atomic_uint_fast32_t|atomic_uint_fast16_t|atomic_int_least64_t|atomic_int_least32_t|atomic_int_least16_t|atomic_uint_least8_t|atomic_uint_fast8_t|atomic_int_least8_t|atomic_int_fast16_t|pthread_mutexattr_t|atomic_int_fast32_t|atomic_int_fast64_t|atomic_int_fast8_t|pthread_condattr_t|atomic_ptrdiff_t|pthread_rwlock_t|atomic_uintptr_t|atomic_uintmax_t|atomic_intmax_t|atomic_intptr_t|atomic_char32_t|atomic_char16_t|pthread_mutex_t|pthread_cond_t|atomic_wchar_t|uint_least64_t|uint_least32_t|uint_least16_t|pthread_once_t|pthread_attr_t|int_least32_t|pthread_key_t|int_least16_t|int_least64_t|uint_least8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|atomic_ushort|atomic_ullong|atomic_size_t|int_fast16_t|int_fast64_t|uint_fast8_t|atomic_short|atomic_uchar|atomic_schar|int_least8_t|memory_order|atomic_llong|atomic_ulong|int_fast32_t|atomic_long|atomic_uint|atomic_char|int_fast8_t|suseconds_t|atomic_bool|atomic_int|_Imaginary|useconds_t|in_port_t|uintmax_t|uintmax_t|pthread_t|blksize_t|in_addr_t|uintptr_t|blkcnt_t|uint16_t|uint32_t|uint64_t|u_quad_t|_Complex|intptr_t|intmax_t|intmax_t|segsz_t|u_short|nlink_t|uint8_t|int64_t|int32_t|int16_t|fixpt_t|daddr_t|caddr_t|qaddr_t|ssize_t|clock_t|swblk_t|u_long|mode_t|int8_t|time_t|ushort|u_char|quad_t|size_t|pid_t|gid_t|uid_t|dev_t|div_t|off_t|u_int|key_t|ino_t|uint|id_t|id_t)(?![\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"storage.type.built-in.c"},{match:/\b(enum|struct|union)\b/dgv,name:"storage.type.$1.c"},{begin:/(\b(?:__asm__|asm)\b)\p{space}*((?:volatile)?)/dgv,beginCaptures:{"1":{name:"storage.type.asm.c"},"2":{name:"storage.modifier.c"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.asm.c",patterns:[{captures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},match:new EmulatedRegExp("(?<=^|\\n(?!$))((?:(?:(?:(?=($E$\\p{space}+))\\2)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\6)[^\\/])*))\\5)((?:(?=($E$\\*+))\\8)/)))+?|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))(?:\\n|(?=$|\\n))","dgv",{"useEmulationGroups":true})},{include:"#comments"},{begin:new EmulatedRegExp("(((?:(?:(?:(?=($E$\\p{space}+))\\3)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\7)[^\\/])*))\\6)((?:(?=($E$\\*+))\\9)/)))+?|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.section.parens.begin.bracket.round.assembly.c"},"2":{patterns:[{include:"#inline_comment"}]},"3":{name:"comment.block.c punctuation.definition.comment.begin.c"},"4":{name:"comment.block.c"},"5":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.bracket.round.assembly.c"}},patterns:[{begin:/(R?)(")/dgv,beginCaptures:{"1":{name:"meta.encoding.c"},"2":{name:"punctuation.definition.string.begin.assembly.c"}},contentName:"meta.embedded.assembly.c",end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.assembly.c"}},name:"string.quoted.double.c",patterns:[{include:"source.asm"},{include:"source.x86"},{include:"source.x86_64"},{include:"source.arm"},{include:"#backslash_escapes"},{include:"#string_escaped_char"}]},{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.parens.begin.bracket.round.assembly.inner.c"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.bracket.round.assembly.inner.c"}},patterns:[{include:"#evaluation_context"}]},{captures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"variable.other.asm.label.c"},"6":{patterns:[{include:"#inline_comment"}]},"7":{name:"comment.block.c punctuation.definition.comment.begin.c"},"8":{name:"comment.block.c"},"9":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]}},match:new EmulatedRegExp("\\[((?:(?:(?:(?=($E$\\p{space}+))\\2)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\6)[^\\/])*))\\5)((?:(?=($E$\\*+))\\8)/)))+?|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))([a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*)((?:(?:(?:(?=($E$\\p{space}+))\\11)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\15)[^\\/])*))\\14)((?:(?=($E$\\*+))\\17)/)))+?|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\]","dgv",{"useEmulationGroups":true})},{match:/:/dgv,name:"punctuation.separator.delimiter.colon.assembly.c"},{include:"#comments"}]}]}]},string_escaped_char:{patterns:[{match:/\\(\\|[abefnprtv'"\?]|[0-3]\p{Nd}{0,2}|[4-7]\p{Nd}?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,8})/dgv,name:"constant.character.escape.c"},{match:/\\[^\n]/dgv,name:"invalid.illegal.unknown-escape.c"}]},string_placeholder:{patterns:[{match:/%(\p{Nd}+\$)?[\#0\- \+']*[\,\;\:_]?((-?\p{Nd}+)|\*(-?\p{Nd}+\$)?)?(\.((-?\p{Nd}+)|\*(-?\p{Nd}+\$)?)?)?(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)?[diouxXDOUeEfFgGaACcSspn\%]/dgv,name:"constant.other.placeholder.c"},{captures:{"1":{name:"invalid.illegal.placeholder.c"}},match:/(%)(?!"\p{space}*(PRI|SCN))/dgv}]},strings:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.c",patterns:[{include:"#string_escaped_char"},{include:"#string_placeholder"},{include:"#line_continuation_character"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.single.c",patterns:[{include:"#string_escaped_char"},{include:"#line_continuation_character"}]}]},switch_conditional_parentheses:{begin:new EmulatedRegExp("((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\3)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\7)[^\\/])*))\\6)((?:(?=($E$\\*+))\\9)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\2))(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{patterns:[{include:"#inline_comment"}]},"2":{name:"comment.block.c punctuation.definition.comment.begin.c"},"3":{name:"comment.block.c"},"4":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"5":{name:"punctuation.section.parens.begin.bracket.round.conditional.switch.c"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.bracket.round.conditional.switch.c"}},name:"meta.conditional.switch.c",patterns:[{include:"#evaluation_context"},{include:"#c_conditional_context"}]},switch_statement:{begin:new EmulatedRegExp("(((?:(?=($E$(?:(?:(?=($E$(?<!\\p{space})\\p{space}+))\\4)|(/\\*)((?:(?=($E$(?:[^\\*]|(?:(?=($E$\\*+))\\8)[^\\/])*))\\7)((?:(?=($E$\\*+))\\10)/)))+|(?:(?:(?:(?:\\b|(?<=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|(?=[^\\p{L}\\p{M}\\p{N}\\p{Pc}]))|^)|(?=\\n?$))))\\3))((?<![\\p{L}\\p{M}\\p{N}\\p{Pc}])switch(?![\\p{L}\\p{M}\\p{N}\\p{Pc}])))","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"meta.head.switch.c"},"2":{patterns:[{include:"#inline_comment"}]},"3":{name:"comment.block.c punctuation.definition.comment.begin.c"},"4":{name:"comment.block.c"},"5":{patterns:[{match:/\*\//dgv,name:"comment.block.c punctuation.definition.comment.end.c"},{match:/\*/dgv,name:"comment.block.c"}]},"6":{name:"keyword.control.switch.c"}},end:/(?:(?<=\}|%>|\?\?>)|(?=[\;\>\[\]\=]))/dgv,name:"meta.block.switch.c",patterns:[{begin:/ ?/dgvy,end:/((?:\{|<%|\?\?<|(?=;)))/dgv,endCaptures:{"1":{name:"punctuation.section.block.begin.bracket.curly.switch.c"}},name:"meta.head.switch.c",patterns:[{include:"#switch_conditional_parentheses"},{include:"$self"}]},{begin:/(?<=\{|<%|\?\?<)/dgv,end:/(\}|%>|\?\?>)/dgv,endCaptures:{"1":{name:"punctuation.section.block.end.bracket.curly.switch.c"}},name:"meta.body.switch.c",patterns:[{include:"#default_statement"},{include:"#case_statement"},{include:"$self"},{include:"#block_innards"}]},{begin:/(?<=\}|%>|\?\?>)[\p{space}\n]*/dgv,end:/[\p{space}\n]*(?=;)/dgv,name:"meta.tail.switch.c",patterns:[{include:"$self"}]}]},vararg_ellipses:{match:/(?<!\.)\.\.\.(?!\.)/dgv,name:"punctuation.vararg-ellipses.c"}},scopeName:"source.c",embeddedLangs:undefined,aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/cadence.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Cadence",name:"cadence",patterns:[{include:"#comments"},{include:"#expressions"},{include:"#declarations"},{include:"#keywords"},{include:"#code-block"},{include:"#composite"},{include:"#event"}],repository:{"code-block":{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.cadence"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.cadence"}},patterns:[{include:"$self"}]},comments:{patterns:[{captures:{"1":{name:"punctuation.definition.comment.cadence"}},match:/^(?<=^|\n(?!$))(#!)[^\n]*(?=$|\n)\n?/dgv,name:"comment.line.number-sign.cadence"},{begin:/\/\*\*(?!\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.cadence"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.cadence"}},name:"comment.block.documentation.cadence",patterns:[{include:"#nested"}]},{begin:/\/\*:/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.cadence"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.cadence"}},name:"comment.block.documentation.playground.cadence",patterns:[{include:"#nested"}]},{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.cadence"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.cadence"}},name:"comment.block.cadence",patterns:[{include:"#nested"}]},{match:/\*\//dgv,name:"invalid.illegal.unexpected-end-of-block-comment.cadence"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.cadence"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.cadence"}},end:/(?<=^|\n(?!$))/dgv,name:"comment.line.triple-slash.documentation.cadence"},{begin:/\/\/:/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.cadence"}},end:/(?<=^|\n(?!$))/dgv,name:"comment.line.double-slash.documentation.cadence"},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.cadence"}},end:/(?<=^|\n(?!$))/dgv,name:"comment.line.double-slash.cadence"}]}],repository:{nested:{begin:/\/\*/dgv,end:/\*\//dgv,patterns:[{include:"#nested"}]}}},composite:{begin:/\b((?:struct|resource|contract)(?:\p{space}+interface)?|transaction|enum)\p{space}+([\p{L}_][\p{L}_\p{N}\p{M}]*)/dgv,beginCaptures:{"1":{name:"storage.type.$1.cadence"},"2":{name:"entity.name.type.$1.cadence"}},end:/(?<=\})/dgv,name:"meta.definition.type.composite.cadence",patterns:[{include:"#comments"},{include:"#conformance-clause"},{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.type.begin.cadence"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.type.end.cadence"}},name:"meta.definition.type.body.cadence",patterns:[{include:"$self"}]}]},"conformance-clause":{begin:/(:)(?=\p{space}*\{)|(:)\p{space}*/dgv,beginCaptures:{"1":{name:"invalid.illegal.empty-conformance-clause.cadence"},"2":{name:"punctuation.separator.conformance-clause.cadence"}},end:/(?!)(?=$|\n)|(?=[\=\{\}])/dgv,name:"meta.conformance-clause.cadence",patterns:[{begin:/(?:)/dgv,end:/(?!)(?=$|\n)|(?=[\=\{\}])/dgv,patterns:[{include:"#comments"},{include:"#type"}]}]},declarations:{patterns:[{include:"#var-let-declaration"},{include:"#function"},{include:"#initializer"}]},event:{begin:/\b(event)\b\p{space}+([\p{L}_][\p{L}_\p{N}\p{M}]*)\p{space}*/dgv,beginCaptures:{"1":{name:"storage.type.event.cadence"},"2":{name:"entity.name.type.event.cadence"}},end:/(?<=\))|(?=$|\n)/dgv,name:"meta.definition.type.event.cadence",patterns:[{include:"#comments"},{include:"#parameter-clause"}]},"expression-element-list":{patterns:[{include:"#comments"},{begin:/([\p{L}_][\p{L}_\p{N}\p{M}]*)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"support.function.any-method.cadence"},"2":{name:"punctuation.separator.argument-label.cadence"}},comment:"an element with a label",end:/(?=[\,\)\]])/dgv,patterns:[{include:"#expressions"}]},{begin:/(?![\,\)\]])(?=\P{space})/dgv,comment:"an element without a label (i.e. anything else)",end:/(?=[\,\)\]])/dgv,patterns:[{include:"#expressions"}]}]},expressions:{patterns:[{include:"#comments"},{include:"#function-call-expression"},{include:"#literals"},{include:"#operators"},{include:"#language-variables"}]},function:{begin:/\b(fun)\b\p{space}+([\p{L}_][\p{L}_\p{N}\p{M}]*)\p{space}*/dgv,beginCaptures:{"1":{name:"storage.type.function.cadence"},"2":{name:"entity.name.function.cadence"}},end:/(?<=\})|(?=$|\n)/dgv,name:"meta.definition.function.cadence",patterns:[{include:"#comments"},{include:"#parameter-clause"},{include:"#function-result"},{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.function.begin.cadence"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.section.function.end.cadence"}},name:"meta.definition.function.body.cadence",patterns:[{include:"$self"}]}]},"function-call-expression":{patterns:[{begin:/(?!(?:set|init))([\p{L}_][\p{L}_\p{N}\p{M}]*)\p{space}*(\()/dgv,beginCaptures:{"1":{name:"support.function.any-method.cadence"},"4":{name:"punctuation.definition.arguments.begin.cadence"}},comment:"foo(args) -- a call whose callee is a highlightable name",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.cadence"}},name:"meta.function-call.cadence",patterns:[{include:"#expression-element-list"}]}]},"function-result":{begin:/(?<![\/\=\-\+\!\*\%\<\>\&\|\^\~\.])(:)(?![\/\=\-\+\!\*\%\<\>\&\|\^\~\.])\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.operator.function-result.cadence"}},end:/(?!)(?=\{|;)|(?=$|\n)/dgv,name:"meta.function-result.cadence",patterns:[{include:"#type"}]},initializer:{begin:/(?<!\.)\b(init)\p{space}*(?=\(|<)/dgv,beginCaptures:{"1":{name:"storage.type.function.cadence"}},end:/(?<=\})|(?=$|\n)/dgv,name:"meta.definition.function.initializer.cadence",patterns:[{include:"#comments"},{include:"#parameter-clause"},{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.function.begin.cadence"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.section.function.end.cadence"}},name:"meta.definition.function.body.cadence",patterns:[{include:"$self"}]}]},keywords:{patterns:[{match:/(?<!\.)\b(?:if|else|switch|case|default)\b/dgv,name:"keyword.control.branch.cadence"},{match:/(?<!\.)\b(?:return|continue|break)\b/dgv,name:"keyword.control.transfer.cadence"},{match:/(?<!\.)\b(?:while|for|in)\b/dgv,name:"keyword.control.loop.cadence"},{match:/(?<!\.)\b(?:pre|post|prepare|execute|create|destroy|emit)\b/dgv,name:"keyword.other.cadence"},{match:/(?<!\.)\b(?:private|pub(?:\(set\))?|access\((?:self|contract|account|all)\))\b/dgv,name:"keyword.other.declaration-specifier.accessibility.cadence"},{match:/\b(?:init|destroy)\b/dgv,name:"storage.type.function.cadence"},{match:/(?<!\.)\b(?:import|from)\b/dgv,name:"keyword.control.import.cadence"}]},"language-variables":{patterns:[{match:/\b(self)\b/dgv,name:"variable.language.cadence"}]},literals:{patterns:[{include:"#boolean"},{include:"#numeric"},{include:"#string"},{match:/\bnil\b/dgv,name:"constant.language.nil.cadence"}],repository:{boolean:{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.cadence"},numeric:{patterns:[{include:"#binary"},{include:"#octal"},{include:"#decimal"},{include:"#hexadecimal"}],repository:{binary:{comment:"",match:/(\B-|\b)0b[01]([_01]*[01])?\b/dgv,name:"constant.numeric.integer.binary.cadence"},decimal:{comment:"",match:/(\B-|\b)\p{Nd}([_0-9]*\p{Nd})?\b/dgv,name:"constant.numeric.integer.decimal.cadence"},hexadecimal:{comment:"",match:/(\B-|\b)0x[0-9A-Fa-f]([_0-9A-Fa-f]*[0-9A-Fa-f])?\b/dgv,name:"constant.numeric.integer.hexadecimal.cadence"},octal:{comment:"",match:/(\B-|\b)0o[0-7]([_0-7]*[0-7])?\b/dgv,name:"constant.numeric.integer.octal.cadence"}}},string:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.cadence"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.cadence"}},name:"string.quoted.double.single-line.cadence",patterns:[{match:/\r|\n/dgv,name:"invalid.illegal.returns-not-allowed.cadence"},{include:"#string-guts"}]}],repository:{"string-guts":{patterns:[{match:/\\[0\\tnr"']/dgv,name:"constant.character.escape.cadence"},{match:/\\u\{[0-9a-fA-F]{1,8}\}/dgv,name:"constant.character.escape.unicode.cadence"}]}}}}},operators:{patterns:[{match:/-/dgv,name:"keyword.operator.arithmetic.unary.cadence"},{match:/!/dgv,name:"keyword.operator.logical.not.cadence"},{match:/=/dgv,name:"keyword.operator.assignment.cadence"},{match:/<-/dgv,name:"keyword.operator.move.cadence"},{match:/<-!/dgv,name:"keyword.operator.force-move.cadence"},{match:/\+|-|\*|\//dgv,name:"keyword.operator.arithmetic.cadence"},{match:/%/dgv,name:"keyword.operator.arithmetic.remainder.cadence"},{match:/==|!=|>|<|>=|<=/dgv,name:"keyword.operator.comparison.cadence"},{match:/\?\?/dgv,name:"keyword.operator.coalescing.cadence"},{match:/&&|\|\|/dgv,name:"keyword.operator.logical.cadence"},{match:/[\?\!]/dgv,name:"keyword.operator.type.optional.cadence"}]},"parameter-clause":{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.definition.parameters.begin.cadence"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.parameters.end.cadence"}},name:"meta.parameter-clause.cadence",patterns:[{include:"#parameter-list"}]},"parameter-list":{patterns:[{captures:{"1":{name:"entity.name.function.cadence"},"2":{name:"variable.parameter.function.cadence"}},comment:"External parameter labels are considered part of the function name",match:/([\p{L}_][\p{L}_\p{N}\p{M}]*)\p{space}+([\p{L}_][\p{L}_\p{N}\p{M}]*)(?=\p{space}*:)/dgv},{captures:{"1":{name:"variable.parameter.function.cadence"},"2":{name:"entity.name.function.cadence"}},comment:"If no external label is given, the name is both the external label and the internal variable name",match:/(([\p{L}_][\p{L}_\p{N}\p{M}]*))(?=\p{space}*:)/dgv},{begin:/:\p{space}*(?!\p{space})/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#type"},{match:/:/dgv,name:"invalid.illegal.extra-colon-in-parameter-list.cadence"}]}]},type:{patterns:[{include:"#comments"},{match:/([\p{L}_][\p{L}_\p{N}\p{M}]*)/dgv,name:"storage.type.cadence"}]},"var-let-declaration":{begin:/\b(var|let)\b\p{space}+([\p{L}_][\p{L}_\p{N}\p{M}]*)/dgv,beginCaptures:{"1":{name:"storage.type.$1.cadence"},"2":{name:"entity.name.type.$1.cadence"}},end:/=|<-|<-!|(?=$|\n)/dgv,patterns:[{include:"#type"}]}},scopeName:"source.cadence",embeddedLangs:undefined,aliases:["cdc"]})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
lang
|
|
7
|
+
]
|
package/dist/cairo.d.mts
ADDED
package/dist/cairo.mjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import python from './python.mjs'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Cairo",name:"cairo",patterns:[{begin:/\b(if)[^\n]*\(/dgv,beginCaptures:{"1":{name:"keyword.control.if"},"2":{name:"entity.name.condition"}},contentName:"source.cairo0",end:/\}/dgv,endCaptures:{"0":{name:"keyword.control.end"}},name:"meta.control.if",patterns:[{include:"source.cairo0"}]},{begin:/\b(with)\p{space}+([^\n]+)\p{space}*\{/dgv,beginCaptures:{"1":{name:"keyword.control.with"},"2":{name:"entity.name.identifiers"}},contentName:"source.cairo0",end:/\}/dgv,endCaptures:{"0":{name:"keyword.control.end"}},name:"meta.control.with",patterns:[{include:"source.cairo0"}]},{begin:/\b(with_attr)\p{space}+([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*[\(\{]/dgv,beginCaptures:{"1":{name:"keyword.control.with_attr"},"2":{name:"entity.name.function"}},contentName:"source.cairo0",end:/\}/dgv,endCaptures:{"0":{name:"keyword.control.end"}},name:"meta.control.with_attr",patterns:[{include:"source.cairo0"}]},{match:/\belse\b/dgv,name:"keyword.control.else"},{match:/\b(call|jmp|ret|abs|rel|if)\b/dgv,name:"keyword.other.opcode"},{match:/\b(ap|fp)\b/dgv,name:"keyword.other.register"},{match:/\b(const|let|local|tempvar|felt|as|from|import|static_assert|return|assert|cast|alloc_locals|with|with_attr|nondet|dw|codeoffset|new|using|and)\b/dgv,name:"keyword.other.meta"},{match:/\b(SIZEOF_LOCALS|SIZE)\b/dgv,name:"markup.italic"},{match:/\/\/[^\n]*\n/dgv,name:"comment.line.sharp"},{match:/\b[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*:\p{space}*(?=$|\n)/dgv,name:"entity.name.function"},{begin:/\b(func)\p{space}+([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*[\(\{]/dgv,beginCaptures:{"1":{name:"storage.type.function.cairo"},"2":{name:"entity.name.function"}},contentName:"source.cairo0",end:/\}/dgv,endCaptures:{"0":{name:"storage.type.function.cairo"}},name:"meta.function.cairo",patterns:[{include:"source.cairo0"}]},{begin:/\b(struct|namespace)\p{space}+([a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*\{/dgv,beginCaptures:{"1":{name:"storage.type.function.cairo"},"2":{name:"entity.name.function"}},contentName:"source.cairo0",end:/\}/dgv,endCaptures:{"0":{name:"storage.type.function.cairo"}},name:"meta.function.cairo",patterns:[{include:"source.cairo0"}]},{match:/\b[\+\-]?\p{Nd}+\b/dgv,name:"constant.numeric.decimal"},{match:/\b[\+\-]?0x[0-9a-fA-F]+\b/dgv,name:"constant.numeric.hexadecimal"},{match:/'[^']*'/dgv,name:"string.quoted.single"},{match:/"[^"]*"/dgv,name:"string.quoted.double"},{begin:/%\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.python"}},contentName:"source.python",end:/%\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.python"},"1":{name:"source.python"}},name:"meta.embedded.block.python",patterns:[{include:"source.python"}]}],scopeName:"source.cairo0",embeddedLangs:["python"],aliases:undefined})
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
...python,
|
|
7
|
+
lang
|
|
8
|
+
]
|
package/dist/cdc.d.mts
ADDED
package/dist/cdc.mjs
ADDED
package/dist/clarity.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Clarity",name:"clarity",patterns:[{include:"#expression"},{include:"#define-constant"},{include:"#define-data-var"},{include:"#define-map"},{include:"#define-function"},{include:"#define-fungible-token"},{include:"#define-non-fungible-token"},{include:"#define-trait"},{include:"#use-trait"}],repository:{"built-in-func":{begin:/(\()\p{space}*(-|\+|<=|>=|<|>|\*|\/|and|append|as-contract|as-max-len\?|asserts!|at-block|begin|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|buff-to-int-be|buff-to-int-le|buff-to-uint-be|buff-to-uint-le|concat|contract-call\?|contract-of|default-to|element-at|element-at\?|filter|fold|from-consensus-buff\?|ft-burn\?|ft-get-balance|ft-get-supply|ft-mint\?|ft-transfer\?|get-block-info\?|get-burn-block-info\?|get-stacks-block-info\?|get-tenure-info\?|get-burn-block-info\?|hash160|if|impl-trait|index-of|index-of\?|int-to-ascii|int-to-utf8|is-eq|is-err|is-none|is-ok|is-some|is-standard|keccak256|len|log2|map|match|merge|mod|nft-burn\?|nft-get-owner\?|nft-mint\?|nft-transfer\?|not|or|pow|principal-construct\?|principal-destruct\?|principal-of\?|print|replace-at\?|secp256k1-recover\?|secp256k1-verify|sha256|sha512|sha512\/256|slice\?|sqrti|string-to-int\?|string-to-uint\?|stx-account|stx-burn\?|stx-get-balance|stx-transfer-memo\?|stx-transfer\?|to-consensus-buff\?|to-int|to-uint|try!|unwrap!|unwrap-err!|unwrap-err-panic|unwrap-panic|xor)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.built-in-function.start.clarity"},"2":{name:"keyword.declaration.built-in-function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.built-in-function.end.clarity"}},name:"meta.built-in-function",patterns:[{include:"#expression"},{include:"#user-func"}]},comment:{match:/(?<=(?<=^|\n(?!$))|[\(\)\[\]\{\}"\,'\`\;\p{space}])(;)[^\n]*(?=$|\n)/dgv,name:"comment.line.semicolon.clarity"},"data-type":{patterns:[{include:"#comment"},{comment:"numerics",match:/\b(uint|int)\b/dgv,name:"entity.name.type.numeric.clarity"},{comment:"principal",match:/\b(principal)\b/dgv,name:"entity.name.type.principal.clarity"},{comment:"bool",match:/\b(bool)\b/dgv,name:"entity.name.type.bool.clarity"},{captures:{"1":{name:"punctuation.string_type-def.start.clarity"},"2":{name:"entity.name.type.string_type.clarity"},"3":{name:"constant.numeric.string_type-len.clarity"},"4":{name:"punctuation.string_type-def.end.clarity"}},match:/(\()\p{space}*(string-ascii|string-utf8)\p{space}+(\p{Nd}+)\p{space}*(\))/dgv},{captures:{"1":{name:"punctuation.buff-def.start.clarity"},"2":{name:"entity.name.type.buff.clarity"},"3":{name:"constant.numeric.buf-len.clarity"},"4":{name:"punctuation.buff-def.end.clarity"}},match:/(\()\p{space}*(buff)\p{space}+(\p{Nd}+)\p{space}*(\))/dgv},{begin:/(\()\p{space}*(optional)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.optional-def.start.clarity"},"2":{name:"storage.type.modifier"}},comment:"optional",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.optional-def.end.clarity"}},name:"meta.optional-def",patterns:[{include:"#data-type"}]},{begin:/(\()\p{space}*(response)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.response-def.start.clarity"},"2":{name:"storage.type.modifier"}},comment:"response",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.response-def.end.clarity"}},name:"meta.response-def",patterns:[{include:"#data-type"}]},{begin:/(\()\p{space}*(list)\p{space}+(\p{Nd}+)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.list-def.start.clarity"},"2":{name:"entity.name.type.list.clarity"},"3":{name:"constant.numeric.list-len.clarity"}},comment:"list",end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.list-def.end.clarity"}},name:"meta.list-def",patterns:[{include:"#data-type"}]},{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.tuple-def.start.clarity"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.tuple-def.end.clarity"}},name:"meta.tuple-def",patterns:[{match:/([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)(?=:)/dgv,name:"entity.name.tag.tuple-data-type-key.clarity"},{include:"#data-type"}]}]},"define-constant":{begin:/(\()\p{space}*(define-constant)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-constant.start.clarity"},"2":{name:"keyword.declaration.define-constant.clarity"},"3":{name:"entity.name.constant-name.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-constant.end.clarity"}},name:"meta.define-constant",patterns:[{include:"#expression"}]},"define-data-var":{begin:/(\()\p{space}*(define-data-var)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-data-var.start.clarity"},"2":{name:"keyword.declaration.define-data-var.clarity"},"3":{name:"entity.name.data-var-name.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-data-var.end.clarity"}},name:"meta.define-data-var",patterns:[{include:"#data-type"},{include:"#expression"}]},"define-function":{begin:/(\()\p{space}*(define-(?:public|private|read-only))\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-function.start.clarity"},"2":{name:"keyword.declaration.define-function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-function.end.clarity"}},name:"meta.define-function",patterns:[{include:"#expression"},{begin:/(\()\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.function-signature.start.clarity"},"2":{name:"entity.name.function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.function-signature.end.clarity"}},name:"meta.define-function-signature",patterns:[{begin:/(\()\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.function-argument.start.clarity"},"2":{name:"variable.parameter.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.function-argument.end.clarity"}},name:"meta.function-argument",patterns:[{include:"#data-type"}]}]},{include:"#user-func"}]},"define-fungible-token":{captures:{"1":{name:"punctuation.define-fungible-token.start.clarity"},"2":{name:"keyword.declaration.define-fungible-token.clarity"},"3":{name:"entity.name.fungible-token-name.clarity variable.other.clarity"},"4":{name:"constant.numeric.fungible-token-total-supply.clarity"},"5":{name:"punctuation.define-fungible-token.end.clarity"}},match:/(\()\p{space}*(define-fungible-token)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)(?:\p{space}+(u\p{Nd}+))?/dgv},"define-map":{begin:/(\()\p{space}*(define-map)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-map.start.clarity"},"2":{name:"keyword.declaration.define-map.clarity"},"3":{name:"entity.name.map-name.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-map.end.clarity"}},name:"meta.define-map",patterns:[{include:"#data-type"},{include:"#expression"}]},"define-non-fungible-token":{begin:/(\()\p{space}*(define-non-fungible-token)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-non-fungible-token.start.clarity"},"2":{name:"keyword.declaration.define-non-fungible-token.clarity"},"3":{name:"entity.name.non-fungible-token-name.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-non-fungible-token.end.clarity"}},name:"meta.define-non-fungible-token",patterns:[{include:"#data-type"}]},"define-trait":{begin:/(\()\p{space}*(define-trait)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.define-trait.start.clarity"},"2":{name:"keyword.declaration.define-trait.clarity"},"3":{name:"entity.name.trait-name.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-trait.end.clarity"}},name:"meta.define-trait",patterns:[{begin:/(\()\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.define-trait-body.start.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.define-trait-body.end.clarity"}},name:"meta.define-trait-body",patterns:[{include:"#expression"},{begin:/(\()\p{space}*([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\!\?\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.trait-function.start.clarity"},"2":{name:"entity.name.function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.trait-function.end.clarity"}},name:"meta.trait-function",patterns:[{include:"#data-type"},{begin:/(\()\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.trait-function-args.start.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.trait-function-args.end.clarity"}},name:"meta.trait-function-args",patterns:[{include:"#data-type"}]}]}]}]},expression:{patterns:[{include:"#comment"},{include:"#keyword"},{include:"#literal"},{include:"#let-func"},{include:"#built-in-func"},{include:"#get-set-func"}]},"get-set-func":{begin:/(\()\p{space}*(var-get|var-set|map-get\?|map-set|map-insert|map-delete|get)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.get-set-func.start.clarity"},"2":{name:"keyword.control.clarity"},"3":{name:"variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.get-set-func.end.clarity"}},name:"meta.get-set-func",patterns:[{include:"#expression"}]},keyword:{match:/(?<!\P{space})(?!-)\b(?:block-height|burn-block-height|chain-id|contract-caller|is-in-regtest|stacks-block-height|stx-liquid-supply|tenure-height|tx-sender|tx-sponsor?)\b(?!\p{space}*-)/dgv,name:"constant.language.clarity"},"let-func":{begin:/(\()\p{space}*(let)\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.let-function.start.clarity"},"2":{name:"keyword.declaration.let-function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.let-function.end.clarity"}},name:"meta.let-function",patterns:[{include:"#expression"},{include:"#user-func"},{begin:/(\()\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.let-var.start.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.let-var.end.clarity"}},name:"meta.let-var",patterns:[{begin:/(\()([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.let-local-var.start.clarity"},"2":{name:"entity.name.let-local-var-name.clarity variable.parameter.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.let-local-var.end.clarity"}},name:"meta.let-local-var",patterns:[{include:"#expression"},{include:"#user-func"}]},{include:"#expression"}]}]},literal:{patterns:[{include:"#number-literal"},{include:"#bool-literal"},{include:"#string-literal"},{include:"#tuple-literal"},{include:"#principal-literal"},{include:"#list-literal"},{include:"#optional-literal"},{include:"#response-literal"}],repository:{"bool-literal":{match:/(?<!\P{space})(?!-)\b(true|false)\b(?!\p{space}*-)/dgv,name:"constant.language.bool.clarity"},"list-literal":{begin:/(\()\p{space}*(list)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.list.start.clarity"},"2":{name:"entity.name.type.list.clarity"}},end:/(\))/dgv,endCaptures:{"1":{names:"punctuation.list.end.clarity"}},name:"meta.list",patterns:[{include:"#expression"},{include:"#user-func"}]},"number-literal":{patterns:[{comment:"unsigned integers",match:/(?<!\P{space})(?!-)\bu\p{Nd}+\b(?!\p{space}*-)/dgv,name:"constant.numeric.uint.clarity"},{comment:"signed integers",match:/(?<!\P{space})(?!-)\b\p{Nd}+\b(?!\p{space}*-)/dgv,name:"constant.numeric.int.clarity"},{comment:"hexadecimals",match:/(?<!\P{space})(?!-)\b0x[0-9a-f]*\b(?!\p{space}*-)/dgv,name:"constant.numeric.hex.clarity"}]},"optional-literal":{patterns:[{match:/(?<!\P{space})(?!-)\b(none)\b(?!\p{space}*-)/dgv,name:"constant.language.none.clarity"},{begin:/(\()\p{space}*(some)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.some.start.clarity"},"2":{name:"constant.language.some.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.some.end.clarity"}},name:"meta.some",patterns:[{include:"#expression"}]}]},"principal-literal":{match:/'[0-9A-Z]{28,41}(:?\.[a-zA-Z][a-zA-Z0-9\-]+){0,2}|(\.[a-zA-Z][a-zA-Z0-9\-]*){1,2}(?=[\p{space}\(\)\{\}\,]|(?=$|\n))/dgv,name:"constant.other.principal.clarity"},"response-literal":{begin:/(\()\p{space}*(ok|err)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.response.start.clarity"},"2":{name:"constant.language.ok-err.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.response.end.clarity"}},name:"meta.response",patterns:[{include:"#expression"},{include:"#user-func"}]},"string-literal":{patterns:[{begin:/(u?)(")/dgv,beginCaptures:{"1":{name:"string.quoted.utf8.clarity"},"2":{name:"punctuation.definition.string.begin.clarity"}},end:/"/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.clarity"}},name:"string.quoted.double.clarity",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.quote"}]}]},"tuple-literal":{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.tuple.start.clarity"}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.tuple.end.clarity"}},name:"meta.tuple",patterns:[{match:/([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)(?=:)/dgv,name:"entity.name.tag.tuple-key.clarity"},{include:"#expression"},{include:"#user-func"}]}}},"use-trait":{begin:/(\()\p{space}*(use-trait)\p{space}+([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"punctuation.use-trait.start.clarity"},"2":{name:"keyword.declaration.use-trait.clarity"},"3":{name:"entity.name.trait-alias.clarity variable.other.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.use-trait.end.clarity"}},name:"meta.use-trait",patterns:[{include:"#literal"}]},"user-func":{begin:/(\()\p{space}*(([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}\?\!\-]*))\p{space}*/dgv,beginCaptures:{"1":{name:"punctuation.user-function.start.clarity"},"2":{name:"entity.name.function.clarity"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.user-function.end.clarity"}},name:"meta.user-function",patterns:[{include:"#expression"},{include:"$self"}]}},scopeName:"source.clar",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/clj.d.mts
ADDED
package/dist/clj.mjs
ADDED
package/dist/clojure.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"Clojure",name:"clojure",patterns:[{include:"#comment"},{include:"#shebang-comment"},{include:"#quoted-sexp"},{include:"#sexp"},{include:"#keyfn"},{include:"#string"},{include:"#vector"},{include:"#set"},{include:"#map"},{include:"#regexp"},{include:"#var"},{include:"#constants"},{include:"#dynamic-variables"},{include:"#metadata"},{include:"#namespace-symbol"},{include:"#symbol"}],repository:{comment:{begin:/(?<!\\);/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.clojure"}},end:/(?=$|\n)/dgv,name:"comment.line.semicolon.clojure"},constants:{patterns:[{match:/(nil)(?=(\p{space}|\)|\]|\}))/dgv,name:"constant.language.nil.clojure"},{match:/(true|false)/dgv,name:"constant.language.boolean.clojure"},{match:/(##(?:Inf|-Inf|NaN))/dgv,name:"constant.numeric.symbol.clojure"},{match:/([\-\+]?\p{Nd}+\/\p{Nd}+)/dgv,name:"constant.numeric.ratio.clojure"},{match:/([\-\+]?(?:3[0-6]|[12]\p{Nd}|[2-9])[rR][0-9A-Za-z]+N?)/dgv,name:"constant.numeric.arbitrary-radix.clojure"},{match:/([\-\+]?0[xX][0-9a-fA-F]+N?)/dgv,name:"constant.numeric.hexadecimal.clojure"},{match:/([\-\+]?0[0-7]+N?)/dgv,name:"constant.numeric.octal.clojure"},{match:/([\-\+]?\p{Nd}+(\.|(?=[eEM]))\p{Nd}*([eE][\-\+]?\p{Nd}+)?M?)/dgv,name:"constant.numeric.double.clojure"},{match:/([\-\+]?\p{Nd}+N?)/dgv,name:"constant.numeric.long.clojure"},{include:"#keyword"}]},"dynamic-variables":{match:/\*[\p{L}\p{M}\p{N}\p{Pc}\.\-_\:\+\=\>\<\!\?\p{Nd}]+\*/dgv,name:"meta.symbol.dynamic.clojure"},keyfn:{patterns:[{match:/(?<=(\p{space}|\(|\[|\{))(if(-[\-\p{Ll}\?]*)?|when(-[\-\p{Ll}]*)?|for(-[\-\p{Ll}]*)?|cond|do|let(-[\-\p{Ll}\?]*)?|binding|loop|recur|fn|throw[\p{Ll}\-]*|try|catch|finally|([\p{Ll}]*case))(?=(\p{space}|\)|\]|\}))/dgv,name:"storage.control.clojure"},{match:/(?<=(\p{space}|\(|\[|\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[\p{Ll}\-]*))(?=(\p{space}|\)|\]|\}))/dgv,name:"keyword.control.clojure"}]},keyword:{match:/(?<=(\p{space}|\(|\[|\{)):[\p{L}\p{M}\p{N}\p{Pc}\#\.\-_\:\+\=\>\<\/\!\?\*]+(?=(\p{space}|\)|\]|\}|,))/dgv,name:"constant.keyword.clojure"},map:{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.map.begin.clojure"}},end:/(\}(?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\})/dgv,endCaptures:{"1":{name:"punctuation.section.map.end.trailing.clojure"},"2":{name:"punctuation.section.map.end.clojure"}},name:"meta.map.clojure",patterns:[{include:"$self"}]},metadata:{patterns:[{begin:/(\^\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.metadata.map.begin.clojure"}},end:/(\}(?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\})/dgv,endCaptures:{"1":{name:"punctuation.section.metadata.map.end.trailing.clojure"},"2":{name:"punctuation.section.metadata.map.end.clojure"}},name:"meta.metadata.map.clojure",patterns:[{include:"$self"}]},{begin:/(\^)/dgv,end:/(\p{space})/dgv,name:"meta.metadata.simple.clojure",patterns:[{include:"#keyword"},{include:"$self"}]}]},"namespace-symbol":{patterns:[{captures:{"1":{name:"meta.symbol.namespace.clojure"}},match:/([\p{L}\.\-_\+\=\>\<\!\?\*][\p{L}\p{M}\p{N}\p{Pc}\.\-_\:\+\=\>\<\!\?\*\p{Nd}]*)\//dgv}]},"quoted-sexp":{begin:/(['\`\`]\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.clojure"}},end:/(\))(?=$|\n)|(\)(?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.trailing.clojure"},"2":{name:"punctuation.section.expression.end.trailing.clojure"},"3":{name:"punctuation.section.expression.end.clojure"}},name:"meta.quoted-expression.clojure",patterns:[{include:"$self"}]},regexp:{begin:/#"/dgv,beginCaptures:{"0":{name:"punctuation.definition.regexp.begin.clojure"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.regexp.end.clojure"}},name:"string.regexp.clojure",patterns:[{include:"#regexp_escaped_char"}]},regexp_escaped_char:{match:/\\[^\n]/dgv,name:"constant.character.escape.clojure"},set:{begin:/(#\{)/dgv,beginCaptures:{"1":{name:"punctuation.section.set.begin.clojure"}},end:/(\}(?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\})/dgv,endCaptures:{"1":{name:"punctuation.section.set.end.trailing.clojure"},"2":{name:"punctuation.section.set.end.clojure"}},name:"meta.set.clojure",patterns:[{include:"$self"}]},sexp:{begin:/(\()/dgv,beginCaptures:{"1":{name:"punctuation.section.expression.begin.clojure"}},end:/(\))(?=$|\n)|(\)(?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\))/dgv,endCaptures:{"1":{name:"punctuation.section.expression.end.trailing.clojure"},"2":{name:"punctuation.section.expression.end.trailing.clojure"},"3":{name:"punctuation.section.expression.end.clojure"}},name:"meta.expression.clojure",patterns:[{begin:/(?<=\()(ns|declare|def[\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\._\:\+\=\>\<\!\?\*\-]*|[\p{L}\p{M}\p{N}\p{Pc}\._\:\+\=\>\<\!\?\*\-][\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\._\:\+\=\>\<\!\?\*\-]*\/def[\p{L}\p{M}\p{N}\p{Pc}\p{Nd}\._\:\+\=\>\<\!\?\*\-]*)\p{space}+/dgv,beginCaptures:{"1":{name:"keyword.control.clojure"}},end:/(?=\))/dgv,name:"meta.definition.global.clojure",patterns:[{include:"#metadata"},{include:"#dynamic-variables"},{match:/([\p{L}\.\-_\+\=\>\<\!\?\*][\p{L}\p{M}\p{N}\p{Pc}\.\-_\:\+\=\>\<\!\?\*\p{Nd}]*)/dgv,name:"entity.global.clojure"},{include:"$self"}]},{include:"#keyfn"},{include:"#constants"},{include:"#vector"},{include:"#map"},{include:"#set"},{include:"#sexp"},{captures:{"1":{name:"entity.name.function.clojure"}},match:/(?<=\()([^\n]+?)(?=\p{space}|\))/dgv,patterns:[{include:"$self"}]},{include:"$self"}]},"shebang-comment":{begin:/(?<=^|\n(?!$))(#!)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.shebang.clojure"}},end:/(?=$|\n)/dgv,name:"comment.line.shebang.clojure"},string:{begin:/(?<!\\)(")/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.clojure"}},end:/(")/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.clojure"}},name:"string.quoted.double.clojure",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.clojure"}]},symbol:{patterns:[{match:/([\p{L}\.\-_\+\=\>\<\!\?\*][\p{L}\p{M}\p{N}\p{Pc}\.\-_\:\+\=\>\<\!\?\*\p{Nd}]*)/dgv,name:"meta.symbol.clojure"}]},var:{match:/(?<=(\p{space}|\(|\[|\{)#)'[\p{L}\p{M}\p{N}\p{Pc}\.\-_\:\+\=\>\<\/\!\?\*]+(?=(\p{space}|\)|\]|\}))/dgv,name:"meta.var.clojure"},vector:{begin:/(\[)/dgv,beginCaptures:{"1":{name:"punctuation.section.vector.begin.clojure"}},end:/(\](?=[\}\]\)\p{space}]*(?:;|(?=$|\n))))|(\])/dgv,endCaptures:{"1":{name:"punctuation.section.vector.end.trailing.clojure"},"2":{name:"punctuation.section.vector.end.clojure"}},name:"meta.vector.clojure",patterns:[{include:"$self"}]}},scopeName:"source.clojure",embeddedLangs:undefined,aliases:["clj"]})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/cmake.d.mts
ADDED
package/dist/cmake.mjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const lang = Object.freeze({displayName:"CMake",fileTypes:["cmake","CMakeLists.txt"],name:"cmake",patterns:[{comment:"Variables That Describe the System",match:/\b(?:APPLE|BORLAND|(CMAKE_)?(CL_64|COMPILER_2005|HOST_APPLE|HOST_SYSTEM|HOST_SYSTEM_NAME|HOST_SYSTEM_PROCESSOR|HOST_SYSTEM_VERSION|HOST_UNIX|HOST_WIN32|LIBRARY_ARCHITECTURE|LIBRARY_ARCHITECTURE_REGEX|OBJECT_PATH_MAX|SYSTEM|SYSTEM_NAME|SYSTEM_PROCESSOR|SYSTEM_VERSION)|CYGWIN|MSVC|MSVC80|MSVC_IDE|MSVC_VERSION|UNIX|WIN32|XCODE_VERSION|MSVC60|MSVC70|MSVC90|MSVC71)\b/dgiv,name:"constant.source.cmake"},{comment:"cmakeOperators",match:/\b(?:ABSOLUTE|AND|BOOL|CACHE|COMMAND|COMMENT|DEFINED|DOC|EQUAL|EXISTS|EXT|FALSE|GREATER|GREATER_EQUAL|INTERNAL|IN_LIST|IS_ABSOLUTE|IS_DIRECTORY|IS_NEWER_THAN|IS_SYMLINK|LESS|LESS_EQUAL|MATCHES|NAME|NAMES|NAME_WE|NOT|OFF|ON|OR|PATH|PATHS|POLICY|PROGRAM|STREQUAL|STRGREATER|STRGREATER_EQUAL|STRING|STRLESS|STRLESS_EQUAL|TARGET|TEST|TRUE|VERSION_EQUAL|VERSION_GREATER|VERSION_GREATER_EQUAL|VERSION_LESS)\b/dgiv,name:"keyword.cmake"},{comment:"Commands",match:/(?<=^|\n(?!$))\p{space}*\b(?:add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_libraries|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)\b/dgiv,name:"keyword.cmake"},{comment:"Variables That Change Behavior",match:/\b(?:BUILD_SHARED_LIBS|(CMAKE_)?(ABSOLUTE_DESTINATION_FILES|AUTOMOC_RELAXED_MODE|BACKWARDS_COMPATIBILITY|BUILD_TYPE|COLOR_MAKEFILE|CONFIGURATION_TYPES|DEBUG_TARGET_PROPERTIES|DISABLE_FIND_PACKAGE_[\p{L}\p{M}\p{N}\p{Pc}]+|FIND_LIBRARY_PREFIXES|FIND_LIBRARY_SUFFIXES|IGNORE_PATH|INCLUDE_PATH|INSTALL_DEFAULT_COMPONENT_NAME|INSTALL_PREFIX|LIBRARY_PATH|MFC_FLAG|MODULE_PATH|NOT_USING_CONFIG_FLAGS|POLICY_DEFAULT_CMP[\p{L}\p{M}\p{N}\p{Pc}]+|PREFIX_PATH|PROGRAM_PATH|SKIP_INSTALL_ALL_DEPENDENCY|SYSTEM_IGNORE_PATH|SYSTEM_INCLUDE_PATH|SYSTEM_LIBRARY_PATH|SYSTEM_PREFIX_PATH|SYSTEM_PROGRAM_PATH|USER_MAKE_RULES_OVERRIDE|WARN_ON_ABSOLUTE_INSTALL_DESTINATION))\b/dgiv,name:"variable.source.cmake"},{match:/\$\{[\p{L}\p{M}\p{N}\p{Pc}]+\}/dgv,name:"storage.source.cmake"},{match:/\$ENV\{[\p{L}\p{M}\p{N}\p{Pc}]+\}/dgv,name:"storage.source.cmake"},{comment:"Variables that Control the Build",match:/\b(?:(CMAKE_)?([\p{L}\p{M}\p{N}\p{Pc}]+_POSTFIX|ARCHIVE_OUTPUT_DIRECTORY|AUTOMOC|AUTOMOC_MOC_OPTIONS|BUILD_WITH_INSTALL_RPATH|DEBUG_POSTFIX|EXE_LINKER_FLAGS|EXE_LINKER_FLAGS_[\p{L}\p{M}\p{N}\p{Pc}]+|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GNUtoMS|INCLUDE_CURRENT_DIR|INCLUDE_CURRENT_DIR_IN_INTERFACE|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_PATH_FLAG|LINK_DEF_FILE_FLAG|LINK_DEPENDS_NO_SHARED|LINK_INTERFACE_LIBRARIES|LINK_LIBRARY_FILE_FLAG|LINK_LIBRARY_FLAG|MACOSX_BUNDLE|NO_BUILTIN_CHRPATH|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|RUNTIME_OUTPUT_DIRECTORY|SKIP_BUILD_RPATH|SKIP_INSTALL_RPATH|TRY_COMPILE_CONFIGURATION|USE_RELATIVE_PATHS|WIN32_EXECUTABLE)|EXECUTABLE_OUTPUT_PATH|LIBRARY_OUTPUT_PATH)\b/dgiv,name:"variable.source.cmake"},{comment:"Variables that Provide Information",match:/\b(?:CMAKE_(AR|ARGC|ARGV0|BINARY_DIR|BUILD_TOOL|CACHEFILE_DIR|CACHE_MAJOR_VERSION|CACHE_MINOR_VERSION|CACHE_PATCH_VERSION|CFG_INTDIR|COMMAND|CROSSCOMPILING|CTEST_COMMAND|CURRENT_BINARY_DIR|CURRENT_LIST_DIR|CURRENT_LIST_FILE|CURRENT_LIST_LINE|CURRENT_SOURCE_DIR|DL_LIBS|EDIT_COMMAND|EXECUTABLE_SUFFIX|EXTRA_GENERATOR|EXTRA_SHARED_LIBRARY_SUFFIXES|GENERATOR|HOME_DIRECTORY|IMPORT_LIBRARY_PREFIX|IMPORT_LIBRARY_SUFFIX|LINK_LIBRARY_SUFFIX|MAJOR_VERSION|MAKE_PROGRAM|MINOR_VERSION|PARENT_LIST_FILE|PATCH_VERSION|PROJECT_NAME|RANLIB|ROOT|SCRIPT_MODE_FILE|SHARED_LIBRARY_PREFIX|SHARED_LIBRARY_SUFFIX|SHARED_MODULE_PREFIX|SHARED_MODULE_SUFFIX|SIZEOF_VOID_P|SKIP_RPATH|SOURCE_DIR|STANDARD_LIBRARIES|STATIC_LIBRARY_PREFIX|STATIC_LIBRARY_SUFFIX|TWEAK_VERSION|USING_VC_FREE_TOOLS|VERBOSE_MAKEFILE|VERSION)|PROJECT_BINARY_DIR|PROJECT_NAME|PROJECT_SOURCE_DIR|[\p{L}\p{M}\p{N}\p{Pc}]+_BINARY_DIR|[\p{L}\p{M}\p{N}\p{Pc}]+__SOURCE_DIR)\b/dgiv,name:"variable.source.cmake"},{begin:/#\[(=*)\[/dgv,comment:"BracketArgs",end:/\]\1\]()/dgv,name:"comment.source.cmake",patterns:[{match:/\\([^\n]|(?=$|\n))/dgv,name:"constant.character.escape"}]},{begin:/\[(=*)\[/dgv,comment:"BracketArgs",end:/\]\1\]()/dgv,name:"argument.source.cmake",patterns:[{match:/\\([^\n]|(?=$|\n))/dgv,name:"constant.character.escape"}]},{match:/#+[^\n]*(?=$|\n)/dgv,name:"comment.source.cmake"},{comment:"Properties on Cache Entries",match:/\b(?:ADVANCED|HELPSTRING|MODIFIED|STRINGS|TYPE|VALUE)\b/dgiv,name:"entity.source.cmake"},{comment:"Properties on Source Files",match:/\b(?:ABSTRACT|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_<CONFIG>|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\b/dgiv,name:"entity.source.cmake"},{comment:"Properties on Tests",match:/\b(?:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\b/dgiv,name:"entity.source.cmake"},{comment:"Properties on Directories",match:/\b(?:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_[\p{L}\p{M}\p{N}\p{Pc}]+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_[\p{L}\p{M}\p{N}\p{Pc}]+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_[\p{L}\p{M}\p{N}\p{Pc}]+|VS_GLOBAL_SECTION_PRE_[\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgiv,name:"entity.source.cmake"},{comment:"Properties of Global Scope",match:/\b(?:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\b/dgiv,name:"entity.source.cmake"},{comment:"Properties on Targets",match:/\b(?:[\p{L}\p{M}\p{N}\p{Pc}]+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|NAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE(_EXTENSION)?|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_DEPENDENT_LIBRARIES(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_INTERFACE_LANGUAGES(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_INTERFACE_LIBRARIES(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_INTERFACE_MULTIPLICITY(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LOCATION(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|NO_SONAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|SONAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_[\p{L}\p{M}\p{N}\p{Pc}]+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LIBRARY_OUTPUT_NAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_INTERFACE_LIBRARIES(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_INTERFACE_MULTIPLICITY(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_[\p{L}\p{M}\p{N}\p{Pc}]+|NO_SONAME|OSX_ARCHITECTURES(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|OUTPUT_NAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|PDB_NAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|NAME(_[\p{L}\p{M}\p{N}\p{Pc}]+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_[\p{L}\p{M}\p{N}\p{Pc}]+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_([\p{L}\p{M}\p{N}\p{Pc}]+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_[\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgiv,name:"entity.source.cmake"},{begin:/\\"/dgv,comment:"Escaped Strings",end:/\\"/dgv,name:"string.source.cmake",patterns:[{match:/\\([^\n]|(?=$|\n))/dgv,name:"constant.character.escape"}]},{begin:/"/dgv,comment:"Normal Strings",end:/"/dgv,name:"string.source.cmake",patterns:[{match:/\\([^\n]|(?=$|\n))/dgv,name:"constant.character.escape"}]},{comment:"Derecated keyword",match:/\bBUILD_NAME\b/dgv,name:"invalid.deprecated.source.cmake"},{comment:"Compiler Flags",match:/\b(CMAKE_)?(CXX_FLAGS|CMAKE_CXX_FLAGS_DEBUG|CMAKE_CXX_FLAGS_MINSIZEREL|CMAKE_CXX_FLAGS_RELEASE|CMAKE_CXX_FLAGS_RELWITHDEBINFO)\b/dgiv,name:"variable.source.cmake"}],repository:{},scopeName:"source.cmake",embeddedLangs:undefined,aliases:undefined})
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
lang
|
|
5
|
+
]
|
package/dist/cmd.d.mts
ADDED
package/dist/cmd.mjs
ADDED
package/dist/cobol.d.mts
ADDED