@shikijs/langs 3.1.0 → 3.2.1
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/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-html.mjs +1 -1
- package/dist/angular-inline-style.mjs +1 -1
- package/dist/angular-inline-template.mjs +1 -1
- package/dist/angular-template-blocks.mjs +1 -1
- package/dist/angular-template.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apache.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bibtex.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/csv.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/edge.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erb.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-fixed-form.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/gherkin.mjs +1 -1
- package/dist/git-commit.mjs +1 -1
- package/dist/git-rebase.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/glsl.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hxml.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -4
- package/dist/index.mjs +2 -0
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja-html.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/llvm.d.mts +3 -0
- package/dist/llvm.mjs +5 -0
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/qss.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/shellsession.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/swift.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tasl.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue-sfc-style-variable-injection.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wit.d.mts +3 -0
- package/dist/wit.mjs +5 -0
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/xsl.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +5 -3
package/dist/haxe.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Haxe\",\"fileTypes\":[\"hx\",\"dump\"],\"name\":\"haxe\",\"patterns\":[{\"include\":\"#all\"}],\"repository\":{\"abstract\":{\"begin\":\"(?=abstract\\\\s+[A-Z])\",\"end\":\"(?<=\\\\})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.abstract.hx\",\"patterns\":[{\"include\":\"#abstract-name\"},{\"include\":\"#abstract-name-post\"},{\"include\":\"#abstract-block\"}]},\"abstract-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#modifiers\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"abstract-name\":{\"begin\":\"\\\\b(abstract)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"abstract-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([\\\\{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"match\":\"\\\\b(from|to)\\\\b\",\"name\":\"keyword.other.hx\"},{\"include\":\"#type\"},{\"match\":\"[\\\\(\\\\)]\",\"name\":\"punctuation.definition.other.hx\"}]},\"accessor-method\":{\"patterns\":[{\"match\":\"\\\\b(get|set)_[_A-Za-z]\\\\w*\\\\b\",\"name\":\"entity.name.function.hx\"}]},\"all\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#package\"},{\"include\":\"#import\"},{\"include\":\"#using\"},{\"match\":\"\\\\b(final)\\\\b(?=\\\\s+(class|interface|extern|private)\\\\b)\",\"name\":\"storage.modifier.hx\"},{\"include\":\"#abstract\"},{\"include\":\"#class\"},{\"include\":\"#enum\"},{\"include\":\"#interface\"},{\"include\":\"#typedef\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"array\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hx\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.end.hx\"}},\"name\":\"meta.array.literal.hx\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"arrow-function\":{\"begin\":\"(\\\\()(?=[^(]*?\\\\)\\\\s*->)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"(\\\\))\\\\s*(->)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.hx\"},\"2\":{\"name\":\"storage.type.function.arrow.hx\"}},\"name\":\"meta.method.arrow.hx\",\"patterns\":[{\"include\":\"#arrow-function-parameter\"}]},\"arrow-function-parameter\":{\"begin\":\"(?<=\\\\(|,)\",\"end\":\"(?=\\\\)|,)\",\"patterns\":[{\"include\":\"#parameter-name\"},{\"include\":\"#arrow-function-parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#global\"}]},\"arrow-function-parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\)|,|=)\",\"patterns\":[{\"include\":\"#type\"}]},\"block\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"block-contents\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#regex\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"include\":\"#metadata\"},{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#modifiers\"},{\"include\":\"#new-expr\"},{\"include\":\"#for-loop\"},{\"include\":\"#keywords\"},{\"include\":\"#arrow-function\"},{\"include\":\"#method-call\"},{\"include\":\"#enum-constructor-call\"},{\"include\":\"#punctuation-braces\"},{\"include\":\"#macro-reification\"},{\"include\":\"#operators\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#punctuation-terminator\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#punctuation-accessor\"},{\"include\":\"#identifiers\"}]},\"class\":{\"begin\":\"(?=class)\",\"end\":\"(?<=\\\\})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.class.hx\",\"patterns\":[{\"include\":\"#class-name\"},{\"include\":\"#class-name-post\"},{\"include\":\"#class-block\"}]},\"class-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#modifiers\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"class-name\":{\"begin\":\"\\\\b(class)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"name\":\"meta.class.identifier.hx\",\"patterns\":[{\"include\":\"#global\"}]},\"class-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([\\\\{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#modifiers-inheritance\"},{\"include\":\"#type\"}]},\"comments\":{\"patterns\":[{\"begin\":\"/\\\\*\\\\*(?!/)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"name\":\"comment.block.documentation.hx\",\"patterns\":[{\"include\":\"#javadoc-tags\"}]},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"name\":\"comment.block.hx\",\"patterns\":[{\"include\":\"#javadoc-tags\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hx\"}},\"match\":\"(//).*$\\\\n?\",\"name\":\"comment.line.double-slash.hx\"}]},\"conditional-compilation\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"((#(if|elseif))[\\\\s!]+([a-zA-Z_][a-zA-Z0-9_]*(\\\\.[a-zA-Z_][a-zA-Z0-9_]*)*)(?=\\\\s|/\\\\*|//))\"},{\"begin\":\"((#(if|elseif))[\\\\s!]*)(?=\\\\()\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"end\":\"(?<=\\\\)|\\\\n)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"punctuation.definition.tag\",\"patterns\":[{\"include\":\"#conditional-compilation-parens\"}]},{\"match\":\"(#(end|else|error|line))\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(#([a-zA-Z0-9_]*))\\\\s\",\"name\":\"punctuation.definition.tag\"}]},\"conditional-compilation-parens\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"#conditional-compilation-parens\"}]},\"constant-name\":{\"match\":\"\\\\b([_A-Z][_A-Z0-9]*)\\\\b\",\"name\":\"variable.other.hx\"},\"constants\":{\"patterns\":[{\"match\":\"\\\\b(true|false|null)\\\\b\",\"name\":\"constant.language.hx\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.hex.hx\"},\"1\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"\\\\b(?:0[xX][0-9a-fA-F][_0-9a-fA-F]*([iu][0-9][0-9_]*)?)\\\\b\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.bin.hx\"},\"1\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"\\\\b(?:0[bB][01][_01]*([iu][0-9][0-9_]*)?)\\\\b\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.decimal.hx\"},\"1\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"2\":{\"name\":\"constant.numeric.suffix.hx\"},\"3\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"4\":{\"name\":\"constant.numeric.suffix.hx\"},\"5\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"6\":{\"name\":\"constant.numeric.suffix.hx\"},\"7\":{\"name\":\"constant.numeric.suffix.hx\"},\"8\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"9\":{\"name\":\"constant.numeric.suffix.hx\"},\"10\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"11\":{\"name\":\"constant.numeric.suffix.hx\"},\"12\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"13\":{\"name\":\"constant.numeric.suffix.hx\"},\"14\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"(?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9_]+[eE][+-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9_]+([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(?!\\\\.)(?:\\\\B|([fiu][0-9][0-9_]*)\\\\b))|(?:\\\\B(\\\\.)[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b)|(?:\\\\b[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b))(?!\\\\$)\"}]},\"enum\":{\"begin\":\"(?=enum\\\\s+[A-Z])\",\"end\":\"(?<=\\\\})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.enum.hx\",\"patterns\":[{\"include\":\"#enum-name\"},{\"include\":\"#enum-name-post\"},{\"include\":\"#enum-block\"}]},\"enum-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#parameters\"},{\"include\":\"#identifiers\"}]},\"enum-constructor-call\":{\"begin\":\"\\\\b(?<!\\\\.)((_*[a-z]\\\\w*\\\\.)*)(_*[A-Z]\\\\w*)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"},\"4\":{\"name\":\"support.package.hx\"},\"5\":{\"name\":\"entity.name.type.hx\"},\"6\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"enum-name\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"enum-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([\\\\{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#type\"}]},\"for-loop\":{\"begin\":\"\\\\b(for)\\\\b\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow-control.hx\"},\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.other.in.hx\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"function-type\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"patterns\":[{\"include\":\"#function-type-parameter\"}]},\"function-type-parameter\":{\"begin\":\"(?<=\\\\(|,)\",\"end\":\"(?=\\\\)|,)\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#operator-optional\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#function-type-parameter-name\"},{\"include\":\"#function-type-parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#type\"},{\"include\":\"#global\"}]},\"function-type-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.hx\"}},\"match\":\"([_a-zA-Z]\\\\w*)(?=\\\\s*:)\"},\"function-type-parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\)|,|=)\",\"patterns\":[{\"include\":\"#type\"}]},\"global\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#conditional-compilation\"}]},\"identifier-name\":{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b\",\"name\":\"variable.other.hx\"},\"identifiers\":{\"patterns\":[{\"include\":\"#constant-name\"},{\"include\":\"#type-name\"},{\"include\":\"#identifier-name\"}]},\"import\":{\"begin\":\"import\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.import.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.hx\"},{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.control.in.hx\"},{\"match\":\"\\\\*\",\"name\":\"constant.language.import-all.hx\"},{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b(?=\\\\s*(as|in|$|(;)))\",\"name\":\"variable.other.hxt\"},{\"include\":\"#type-path-package-name\"}]},\"interface\":{\"begin\":\"(?=interface)\",\"end\":\"(?<=\\\\})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.interface.hx\",\"patterns\":[{\"include\":\"#interface-name\"},{\"include\":\"#interface-name-post\"},{\"include\":\"#interface-block\"}]},\"interface-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"interface-name\":{\"begin\":\"\\\\b(interface)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"interface-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([\\\\{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#modifiers-inheritance\"},{\"include\":\"#type\"}]},\"javadoc-tags\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.type.class.javadoc\"},\"2\":{\"name\":\"variable.other.javadoc\"}},\"match\":\"(@(?:param|exception|throws|event))\\\\s+([_A-Za-z]\\\\w*)\\\\s+\"},{\"captures\":{\"1\":{\"name\":\"storage.type.class.javadoc\"},\"2\":{\"name\":\"constant.numeric.javadoc\"}},\"match\":\"(@since)\\\\s+([\\\\w\\\\.-]+)\\\\s+\"},{\"captures\":{\"0\":{\"name\":\"storage.type.class.javadoc\"}},\"match\":\"@(param|exception|throws|deprecated|returns?|since|default|see|event)\"}]},\"keywords\":{\"patterns\":[{\"begin\":\"(?<=trace|$type|if|while|for|super)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"begin\":\"(?<=catch)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"},{\"include\":\"#type-check\"}]},{\"begin\":\"(?<=cast)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"begin\":\"(?=,)\",\"end\":\"(?=\\\\))\",\"patterns\":[{\"include\":\"#type\"}]},{\"include\":\"#block-contents\"}]},{\"match\":\"\\\\b(try|catch|throw)\\\\b\",\"name\":\"keyword.control.catch-exception.hx\"},{\"begin\":\"\\\\b(case|default)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow-control.hx\"}},\"end\":\":|(?=if)|$\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"captures\":{\"1\":{\"name\":\"storage.type.variable.hx\"},\"2\":{\"name\":\"variable.other.hx\"}},\"match\":\"\\\\b(var|final)\\\\b\\\\s*([_a-zA-Z]\\\\w*)\\\\b\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"match\":\"\\\\(\",\"name\":\"meta.brace.round.hx\"},{\"match\":\"\\\\)\",\"name\":\"meta.brace.round.hx\"},{\"include\":\"#macro-reification\"},{\"match\":\"=>\",\"name\":\"keyword.operator.extractor.hx\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#keywords\"},{\"include\":\"#method-call\"},{\"include\":\"#identifiers\"}]},{\"match\":\"\\\\b(if|else|return|do|while|for|break|continue|switch|case|default)\\\\b\",\"name\":\"keyword.control.flow-control.hx\"},{\"match\":\"\\\\b(cast|untyped)\\\\b\",\"name\":\"keyword.other.untyped.hx\"},{\"match\":\"\\\\btrace\\\\b\",\"name\":\"keyword.other.trace.hx\"},{\"match\":\"\\\\$type\\\\b\",\"name\":\"keyword.other.type.hx\"},{\"match\":\"\\\\__(global|this)__\\\\b\",\"name\":\"keyword.other.untyped-property.hx\"},{\"match\":\"\\\\b(this|super)\\\\b\",\"name\":\"variable.language.hx\"},{\"match\":\"\\\\bnew\\\\b\",\"name\":\"keyword.operator.new.hx\"},{\"match\":\"\\\\b(abstract|class|enum|interface|typedef)\\\\b\",\"name\":\"storage.type.hx\"},{\"match\":\"->\",\"name\":\"storage.type.function.arrow.hx\"},{\"include\":\"#modifiers\"},{\"include\":\"#modifiers-inheritance\"}]},\"keywords-accessor\":{\"match\":\"\\\\b(default|get|set|dynamic|never|null)\\\\b\",\"name\":\"storage.type.property.hx\"},\"macro-reification\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.reification.hx\"},\"2\":{\"name\":\"keyword.reification.hx\"}},\"match\":\"(\\\\$)([eabipv])\\\\{\"},{\"captures\":{\"2\":{\"name\":\"punctuation.definition.reification.hx\"},\"3\":{\"name\":\"variable.reification.hx\"}},\"match\":\"((\\\\$)([a-zA-Z]*))\"}]},\"metadata\":{\"patterns\":[{\"begin\":\"(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\\\b)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"storage.modifier.metadata.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"2\":{\"name\":\"punctuation.metadata.hx\"},\"3\":{\"name\":\"storage.modifier.metadata.hx\"}},\"match\":\"((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\\\b))\"},{\"begin\":\"(@)(:?[a-zA-Z_]*)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"variable.metadata.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"variable.metadata.hx\"},\"3\":{\"name\":\"variable.metadata.hx\"},\"4\":{\"name\":\"punctuation.accessor.hx\"},\"5\":{\"name\":\"variable.metadata.hx\"}},\"match\":\"(@)(:?)([a-zA-Z_]*(\\\\.))*([a-zA-Z_]*)?\"}]},\"method\":{\"begin\":\"(?=\\\\bfunction\\\\b)\",\"end\":\"(?<=[\\\\};])\",\"name\":\"meta.method.hx\",\"patterns\":[{\"include\":\"#macro-reification\"},{\"include\":\"#method-name\"},{\"include\":\"#method-name-post\"},{\"include\":\"#method-block\"}]},\"method-block\":{\"begin\":\"(?<=\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.method.block.hx\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-call\":{\"begin\":\"\\\\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|in|int|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z]\\\\w*))\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.untyped-function.hx\"},\"2\":{\"name\":\"entity.name.function.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-name\":{\"begin\":\"\\\\b(function)\\\\b\\\\s*\\\\b(?:(new)|([_A-Za-z]\\\\w*))?\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.hx\"},\"2\":{\"name\":\"storage.type.hx\"},\"3\":{\"name\":\"entity.name.function.hx\"}},\"end\":\"(?=$|\\\\()\",\"patterns\":[{\"include\":\"#macro-reification\"},{\"include\":\"#type-parameters\"}]},\"method-name-post\":{\"begin\":\"(?<=[\\\\w\\\\s>])\",\"end\":\"(\\\\{)|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"},\"2\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#method-return-type-hint\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-return-type-hint\":{\"begin\":\"(?<=\\\\))\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\{|;|[a-z0-9])\",\"patterns\":[{\"include\":\"#type\"}]},\"modifiers\":{\"patterns\":[{\"match\":\"\\\\b(enum)\\\\b\",\"name\":\"storage.type.class\"},{\"match\":\"\\\\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\\\\b\",\"name\":\"storage.modifier.hx\"},{\"match\":\"\\\\b(final)\\\\b(?=\\\\s+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))\",\"name\":\"storage.modifier.hx\"}]},\"modifiers-inheritance\":{\"match\":\"\\\\b(implements|extends)\\\\b\",\"name\":\"storage.modifier.hx\"},\"new-expr\":{\"begin\":\"(?<!\\\\.)\\\\b(new)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.new.hx\"}},\"end\":\"(?=$|\\\\()\",\"name\":\"new.expr.hx\",\"patterns\":[{\"include\":\"#type\"}]},\"operator-assignment\":{\"match\":\"(=)\",\"name\":\"keyword.operator.assignment.hx\"},\"operator-optional\":{\"match\":\"(\\\\?)(?!\\\\s)\",\"name\":\"keyword.operator.optional.hx\"},\"operator-type-hint\":{\"match\":\"(:)\",\"name\":\"keyword.operator.type.annotation.hx\"},\"operators\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.hx\"},{\"match\":\"(~|&|\\\\||\\\\^|>>>|<<|>>)\",\"name\":\"keyword.operator.bitwise.hx\"},{\"match\":\"(==|!=|<=|>=|<|>)\",\"name\":\"keyword.operator.comparison.hx\"},{\"match\":\"(!)\",\"name\":\"keyword.operator.logical.hx\"},{\"match\":\"(\\\\-\\\\-|\\\\+\\\\+)\",\"name\":\"keyword.operator.increment-decrement.hx\"},{\"match\":\"(\\\\-|\\\\+|\\\\*|\\\\/|%)\",\"name\":\"keyword.operator.arithmetic.hx\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"keyword.operator.intiterator.hx\"},{\"match\":\"=>\",\"name\":\"keyword.operator.arrow.hx\"},{\"match\":\"\\\\?\\\\?\",\"name\":\"keyword.operator.nullcoalescing.hx\"},{\"match\":\"\\\\?\\\\.\",\"name\":\"keyword.operator.safenavigation.hx\"},{\"match\":\"\\\\bis\\\\b(?!\\\\()\",\"name\":\"keyword.other.hx\"},{\"begin\":\"\\\\?\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.ternary.hx\"}},\"end\":\":\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.ternary.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]}]},\"package\":{\"begin\":\"package\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.package.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"include\":\"#type-path-package-name\"}]},\"parameter\":{\"begin\":\"(?<=\\\\(|,)\",\"end\":\"(?=\\\\)(?!\\\\s*->)|,)\",\"patterns\":[{\"include\":\"#parameter-name\"},{\"include\":\"#parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#global\"}]},\"parameter-assign\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.hx\"}},\"end\":\"(?=\\\\)|,)\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"parameter-name\":{\"begin\":\"(?<=\\\\(|,)\",\"end\":\"([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.parameter.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#operator-optional\"}]},\"parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\)(?!\\\\s*->)|,|=)\",\"patterns\":[{\"include\":\"#type\"}]},\"parameters\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\s*(\\\\)(?!\\\\s*->))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"name\":\"meta.parameters.hx\",\"patterns\":[{\"include\":\"#parameter\"}]},\"punctuation-accessor\":{\"match\":\"\\\\.\",\"name\":\"punctuation.accessor.hx\"},\"punctuation-braces\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#keywords\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"},{\"include\":\"#type-check\"}]},\"punctuation-comma\":{\"match\":\",\",\"name\":\"punctuation.separator.comma.hx\"},\"punctuation-terminator\":{\"match\":\";\",\"name\":\"punctuation.terminator.hx\"},\"regex\":{\"begin\":\"(~/)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"(/)([gimsu]*)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hx\"},\"2\":{\"name\":\"keyword.other.hx\"}},\"name\":\"string.regexp.hx\",\"patterns\":[{\"include\":\"#regexp\"}]},\"regex-character-class\":{\"patterns\":[{\"match\":\"\\\\\\\\[wWsSdDtrnvf]|\\\\.\",\"name\":\"constant.other.character-class.regexp\"},{\"match\":\"\\\\\\\\([0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h)\",\"name\":\"constant.character.numeric.regexp\"},{\"match\":\"\\\\\\\\c[A-Z]\",\"name\":\"constant.character.control.regexp\"},{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.backslash.regexp\"}]},\"regexp\":{\"patterns\":[{\"match\":\"\\\\\\\\[bB]|\\\\^|\\\\$\",\"name\":\"keyword.control.anchor.regexp\"},{\"match\":\"\\\\\\\\[1-9]\\\\d*\",\"name\":\"keyword.other.back-reference.regexp\"},{\"match\":\"[?+*]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)\\\\}\\\\??\",\"name\":\"keyword.operator.quantifier.regexp\"},{\"match\":\"\\\\|\",\"name\":\"keyword.operator.or.regexp\"},{\"begin\":\"(\\\\()((\\\\?=)|(\\\\?!))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.group.regexp\"},\"2\":{\"name\":\"punctuation.definition.group.assertion.regexp\"},\"3\":{\"name\":\"meta.assertion.look-ahead.regexp\"},\"4\":{\"name\":\"meta.assertion.negative-look-ahead.regexp\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.group.regexp\"}},\"name\":\"meta.group.assertion.regexp\",\"patterns\":[{\"include\":\"#regexp\"}]},{\"begin\":\"\\\\((\\\\?:)?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.group.regexp\"},\"1\":{\"name\":\"punctuation.definition.group.capture.regexp\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.group.regexp\"}},\"name\":\"meta.group.regexp\",\"patterns\":[{\"include\":\"#regexp\"}]},{\"begin\":\"(\\\\[)(\\\\^)?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.character-class.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"}},\"end\":\"(\\\\])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.character-class.regexp\"}},\"name\":\"constant.other.character-class.set.regexp\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.character.numeric.regexp\"},\"2\":{\"name\":\"constant.character.control.regexp\"},\"3\":{\"name\":\"constant.character.escape.backslash.regexp\"},\"4\":{\"name\":\"constant.character.numeric.regexp\"},\"5\":{\"name\":\"constant.character.control.regexp\"},\"6\":{\"name\":\"constant.character.escape.backslash.regexp\"}},\"match\":\"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))\\\\-(?:[^\\\\]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))\",\"name\":\"constant.other.character-class.range.regexp\"},{\"include\":\"#regex-character-class\"}]},{\"include\":\"#regex-character-class\"}]},\"string-escape-sequences\":{\"patterns\":[{\"match\":\"\\\\\\\\[0-3][0-9]{2}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\x[0-9A-Fa-f]{2}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\u[0-9]{4}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\u\\\\{[0-9A-Fa-f]{1,}\\\\}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\[nrt\\\"'\\\\\\\\]\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.escape.sequence.hx\"}]},\"strings\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.hx\"}},\"name\":\"string.quoted.double.hx\",\"patterns\":[{\"include\":\"#string-escape-sequences\"}]},{\"begin\":\"(')\",\"beginCaptures\":{\"0\":{\"name\":\"string.quoted.single.hx\"},\"1\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"(')\",\"endCaptures\":{\"0\":{\"name\":\"string.quoted.single.hx\"},\"1\":{\"name\":\"punctuation.definition.string.end.hx\"}},\"patterns\":[{\"begin\":\"\\\\$(?=\\\\$)\",\"beginCaptures\":{\"0\":{\"name\":\"constant.character.escape.hx\"}},\"end\":\"\\\\$\",\"endCaptures\":{\"0\":{\"name\":\"constant.character.escape.hx\"}},\"name\":\"string.quoted.single.hx\"},{\"include\":\"#string-escape-sequences\"},{\"begin\":\"(\\\\${)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(})\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"},\"2\":{\"name\":\"variable.other.hx\"}},\"match\":\"(\\\\$)([_a-zA-Z]\\\\w*)\"},{\"match\":\"\",\"name\":\"constant.character.escape.hx\"},{\"match\":\".\",\"name\":\"string.quoted.single.hx\"}]}]},\"type\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#macro-reification\"},{\"include\":\"#type-name\"},{\"include\":\"#type-parameters\"},{\"match\":\"->\",\"name\":\"keyword.operator.type.function.hx\"},{\"match\":\"&\",\"name\":\"keyword.operator.type.intersection.hx\"},{\"match\":\"\\\\?(?=\\\\s*[_A-Z])\",\"name\":\"keyword.operator.optional\"},{\"match\":\"\\\\?(?!\\\\s*[_A-Z])\",\"name\":\"punctuation.definition.tag\"},{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(?<=\\\\})\",\"patterns\":[{\"include\":\"#typedef-block\"}]},{\"include\":\"#function-type\"}]},\"type-check\":{\"begin\":\"(?<!macro)(?=:)\",\"end\":\"(?=\\\\))\",\"patterns\":[{\"include\":\"#operator-type-hint\"},{\"include\":\"#type\"}]},\"type-name\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.class.builtin.hx\"},\"2\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"}},\"match\":\"\\\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\b\"},{\"captures\":{\"1\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"},\"4\":{\"name\":\"support.package.hx\"},\"5\":{\"name\":\"entity.name.type.hx\"}},\"match\":\"\\\\b(?<![^.]\\\\.)((_*[a-z]\\\\w*\\\\.)*)(_*[A-Z]\\\\w*)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\b\"}]},\"type-parameter-constraint-new\":{\"match\":\":\",\"name\":\"keyword.operator.type.annotation.hxt\"},\"type-parameter-constraint-old\":{\"begin\":\"(:)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.annotation.hx\"},\"2\":{\"name\":\"punctuation.definition.constraint.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.constraint.end.hx\"}},\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#punctuation-comma\"}]},\"type-parameters\":{\"begin\":\"(<)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.hx\"}},\"end\":\"(?=$)|(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.end.hx\"}},\"name\":\"meta.type-parameters.hx\",\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#type-parameter-constraint-old\"},{\"include\":\"#type-parameter-constraint-new\"},{\"include\":\"#global\"},{\"include\":\"#regex\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"include\":\"#metadata\"},{\"include\":\"#punctuation-comma\"}]},\"type-path\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#punctuation-accessor\"},{\"include\":\"#type-path-type-name\"}]},\"type-path-package-name\":{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b\",\"name\":\"support.package.hx\"},\"type-path-type-name\":{\"match\":\"\\\\b(_*[A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.hx\"},\"typedef\":{\"begin\":\"(?=typedef)\",\"end\":\"(?<=\\\\})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.typedef.hx\",\"patterns\":[{\"include\":\"#typedef-name\"},{\"include\":\"#typedef-name-post\"},{\"include\":\"#typedef-block\"}]},\"typedef-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(\\\\})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#modifiers\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#operator-optional\"},{\"include\":\"#typedef-extension\"},{\"include\":\"#typedef-simple-field-type-hint\"},{\"include\":\"#identifier-name\"},{\"include\":\"#strings\"}]},\"typedef-extension\":{\"begin\":\">\",\"end\":\",|$\",\"patterns\":[{\"include\":\"#type\"}]},\"typedef-name\":{\"begin\":\"\\\\b(typedef)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"typedef-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"(\\\\{)|(?=;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#punctuation-brackets\"},{\"include\":\"#punctuation-separator\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#type\"}]},\"typedef-simple-field-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\}|,|;)\",\"patterns\":[{\"include\":\"#type\"}]},\"using\":{\"begin\":\"using\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.using.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"include\":\"#type-path-package-name\"}]},\"variable\":{\"begin\":\"(?=\\\\b(var|final)\\\\b)\",\"end\":\"(?=$)|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#variable-name\"},{\"include\":\"#variable-name-next\"},{\"include\":\"#variable-assign\"},{\"include\":\"#variable-name-post\"}]},\"variable-accessors\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"name\":\"meta.parameters.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#keywords-accessor\"},{\"include\":\"#accessor-method\"},{\"include\":\"#punctuation-comma\"}]},\"variable-assign\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.hx\"}},\"end\":\"(?=;|,)\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"variable-name\":{\"begin\":\"\\\\b(var|final)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.variable.hx\"}},\"end\":\"(?=$)|([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.hx\"}},\"patterns\":[{\"include\":\"#operator-optional\"}]},\"variable-name-next\":{\"begin\":\",\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.comma.hx\"}},\"end\":\"([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"variable-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"(?=;)|(?==)\",\"patterns\":[{\"include\":\"#variable-accessors\"},{\"include\":\"#variable-type-hint\"},{\"include\":\"#block-contents\"}]},\"variable-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=$|;|,|=)\",\"patterns\":[{\"include\":\"#type\"}]}},\"scopeName\":\"source.hx\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Haxe\",\"fileTypes\":[\"hx\",\"dump\"],\"name\":\"haxe\",\"patterns\":[{\"include\":\"#all\"}],\"repository\":{\"abstract\":{\"begin\":\"(?=abstract\\\\s+[A-Z])\",\"end\":\"(?<=})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.abstract.hx\",\"patterns\":[{\"include\":\"#abstract-name\"},{\"include\":\"#abstract-name-post\"},{\"include\":\"#abstract-block\"}]},\"abstract-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#modifiers\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"abstract-name\":{\"begin\":\"\\\\b(abstract)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"abstract-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"match\":\"\\\\b(from|to)\\\\b\",\"name\":\"keyword.other.hx\"},{\"include\":\"#type\"},{\"match\":\"[()]\",\"name\":\"punctuation.definition.other.hx\"}]},\"accessor-method\":{\"patterns\":[{\"match\":\"\\\\b(get|set)_[_A-Za-z]\\\\w*\\\\b\",\"name\":\"entity.name.function.hx\"}]},\"all\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#package\"},{\"include\":\"#import\"},{\"include\":\"#using\"},{\"match\":\"\\\\b(final)\\\\b(?=\\\\s+(class|interface|extern|private)\\\\b)\",\"name\":\"storage.modifier.hx\"},{\"include\":\"#abstract\"},{\"include\":\"#class\"},{\"include\":\"#enum\"},{\"include\":\"#interface\"},{\"include\":\"#typedef\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"array\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hx\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.end.hx\"}},\"name\":\"meta.array.literal.hx\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"arrow-function\":{\"begin\":\"(\\\\()(?=[^(]*?\\\\)\\\\s*->)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"(\\\\))\\\\s*(->)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.hx\"},\"2\":{\"name\":\"storage.type.function.arrow.hx\"}},\"name\":\"meta.method.arrow.hx\",\"patterns\":[{\"include\":\"#arrow-function-parameter\"}]},\"arrow-function-parameter\":{\"begin\":\"(?<=[(,])\",\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#parameter-name\"},{\"include\":\"#arrow-function-parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#global\"}]},\"arrow-function-parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=[),=])\",\"patterns\":[{\"include\":\"#type\"}]},\"block\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"block-contents\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#regex\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"include\":\"#metadata\"},{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#modifiers\"},{\"include\":\"#new-expr\"},{\"include\":\"#for-loop\"},{\"include\":\"#keywords\"},{\"include\":\"#arrow-function\"},{\"include\":\"#method-call\"},{\"include\":\"#enum-constructor-call\"},{\"include\":\"#punctuation-braces\"},{\"include\":\"#macro-reification\"},{\"include\":\"#operators\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#punctuation-terminator\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#punctuation-accessor\"},{\"include\":\"#identifiers\"}]},\"class\":{\"begin\":\"(?=class)\",\"end\":\"(?<=})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.class.hx\",\"patterns\":[{\"include\":\"#class-name\"},{\"include\":\"#class-name-post\"},{\"include\":\"#class-block\"}]},\"class-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#modifiers\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"class-name\":{\"begin\":\"\\\\b(class)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"name\":\"meta.class.identifier.hx\",\"patterns\":[{\"include\":\"#global\"}]},\"class-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#modifiers-inheritance\"},{\"include\":\"#type\"}]},\"comments\":{\"patterns\":[{\"begin\":\"/\\\\*\\\\*(?!/)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"name\":\"comment.block.documentation.hx\",\"patterns\":[{\"include\":\"#javadoc-tags\"}]},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.hx\"}},\"name\":\"comment.block.hx\",\"patterns\":[{\"include\":\"#javadoc-tags\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hx\"}},\"match\":\"(//).*$\\\\n?\",\"name\":\"comment.line.double-slash.hx\"}]},\"conditional-compilation\":{\"patterns\":[{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"((#(if|elseif))[\\\\s!]+([a-zA-Z_][a-zA-Z0-9_]*(\\\\.[a-zA-Z_][a-zA-Z0-9_]*)*)(?=\\\\s|/\\\\*|//))\"},{\"begin\":\"((#(if|elseif))[\\\\s!]*)(?=\\\\()\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"end\":\"(?<=[)\\\\n])\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"punctuation.definition.tag\",\"patterns\":[{\"include\":\"#conditional-compilation-parens\"}]},{\"match\":\"(#(end|else|error|line))\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(#([a-zA-Z0-9_]*))\\\\s\",\"name\":\"punctuation.definition.tag\"}]},\"conditional-compilation-parens\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"patterns\":[{\"include\":\"#conditional-compilation-parens\"}]},\"constant-name\":{\"match\":\"\\\\b([_A-Z][_A-Z0-9]*)\\\\b\",\"name\":\"variable.other.hx\"},\"constants\":{\"patterns\":[{\"match\":\"\\\\b(true|false|null)\\\\b\",\"name\":\"constant.language.hx\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.hex.hx\"},\"1\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"\\\\b0[xX]\\\\h[_\\\\h]*([iu][0-9][0-9_]*)?\\\\b\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.bin.hx\"},\"1\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"\\\\b0[bB][01][_01]*([iu][0-9][0-9_]*)?\\\\b\"},{\"captures\":{\"0\":{\"name\":\"constant.numeric.decimal.hx\"},\"1\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"2\":{\"name\":\"constant.numeric.suffix.hx\"},\"3\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"4\":{\"name\":\"constant.numeric.suffix.hx\"},\"5\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"6\":{\"name\":\"constant.numeric.suffix.hx\"},\"7\":{\"name\":\"constant.numeric.suffix.hx\"},\"8\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"9\":{\"name\":\"constant.numeric.suffix.hx\"},\"10\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"11\":{\"name\":\"constant.numeric.suffix.hx\"},\"12\":{\"name\":\"meta.delimiter.decimal.period.hx\"},\"13\":{\"name\":\"constant.numeric.suffix.hx\"},\"14\":{\"name\":\"constant.numeric.suffix.hx\"}},\"match\":\"(?<!\\\\$)(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9_]+[eE][+\\\\-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[eE][+\\\\-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b|\\\\B(\\\\.)[0-9][0-9_]*[eE][+\\\\-]?[0-9_]+([fiu][0-9][0-9_]*)?\\\\b|\\\\b[0-9][0-9_]*[eE][+\\\\-]?[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)[0-9_]+([fiu][0-9][0-9_]*)?\\\\b|\\\\b[0-9][0-9_]*(\\\\.)(?!\\\\.)(?:\\\\B|([fiu][0-9][0-9_]*)\\\\b)|\\\\B(\\\\.)[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b|\\\\b[0-9][0-9_]*([fiu][0-9][0-9_]*)?\\\\b)(?!\\\\$)\"}]},\"enum\":{\"begin\":\"(?=enum\\\\s+[A-Z])\",\"end\":\"(?<=})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.enum.hx\",\"patterns\":[{\"include\":\"#enum-name\"},{\"include\":\"#enum-name-post\"},{\"include\":\"#enum-block\"}]},\"enum-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#parameters\"},{\"include\":\"#identifiers\"}]},\"enum-constructor-call\":{\"begin\":\"\\\\b(?<!\\\\.)((_*[a-z]\\\\w*\\\\.)*)(_*[A-Z]\\\\w*)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"},\"4\":{\"name\":\"support.package.hx\"},\"5\":{\"name\":\"entity.name.type.hx\"},\"6\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"enum-name\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"enum-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#type\"}]},\"for-loop\":{\"begin\":\"\\\\b(for)\\\\b\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow-control.hx\"},\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.other.in.hx\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"function-type\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"patterns\":[{\"include\":\"#function-type-parameter\"}]},\"function-type-parameter\":{\"begin\":\"(?<=[(,])\",\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#operator-optional\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#function-type-parameter-name\"},{\"include\":\"#function-type-parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#type\"},{\"include\":\"#global\"}]},\"function-type-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.hx\"}},\"match\":\"([_a-zA-Z]\\\\w*)(?=\\\\s*:)\"},\"function-type-parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=[),=])\",\"patterns\":[{\"include\":\"#type\"}]},\"global\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#conditional-compilation\"}]},\"identifier-name\":{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b\",\"name\":\"variable.other.hx\"},\"identifiers\":{\"patterns\":[{\"include\":\"#constant-name\"},{\"include\":\"#type-name\"},{\"include\":\"#identifier-name\"}]},\"import\":{\"begin\":\"import\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.import.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.hx\"},{\"match\":\"\\\\b(in)\\\\b\",\"name\":\"keyword.control.in.hx\"},{\"match\":\"\\\\*\",\"name\":\"constant.language.import-all.hx\"},{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b(?=\\\\s*(as|in|$|(;)))\",\"name\":\"variable.other.hxt\"},{\"include\":\"#type-path-package-name\"}]},\"interface\":{\"begin\":\"(?=interface)\",\"end\":\"(?<=})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.interface.hx\",\"patterns\":[{\"include\":\"#interface-name\"},{\"include\":\"#interface-name-post\"},{\"include\":\"#interface-block\"}]},\"interface-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"interface-name\":{\"begin\":\"\\\\b(interface)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"interface-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"([{;])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#modifiers-inheritance\"},{\"include\":\"#type\"}]},\"javadoc-tags\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"storage.type.class.javadoc\"},\"2\":{\"name\":\"variable.other.javadoc\"}},\"match\":\"(@(?:param|exception|throws|event))\\\\s+([_A-Za-z]\\\\w*)\\\\s+\"},{\"captures\":{\"1\":{\"name\":\"storage.type.class.javadoc\"},\"2\":{\"name\":\"constant.numeric.javadoc\"}},\"match\":\"(@since)\\\\s+([\\\\w.\\\\-]+)\\\\s+\"},{\"captures\":{\"0\":{\"name\":\"storage.type.class.javadoc\"}},\"match\":\"@(param|exception|throws|deprecated|returns?|since|default|see|event)\"}]},\"keywords\":{\"patterns\":[{\"begin\":\"(?<=trace|$type|if|while|for|super)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"begin\":\"(?<=catch)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"},{\"include\":\"#type-check\"}]},{\"begin\":\"(?<=cast)\\\\s*(\\\\()\",\"beginCaptures\":{\"2\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"begin\":\"(?=,)\",\"end\":\"(?=\\\\))\",\"patterns\":[{\"include\":\"#type\"}]},{\"include\":\"#block-contents\"}]},{\"match\":\"\\\\b(try|catch|throw)\\\\b\",\"name\":\"keyword.control.catch-exception.hx\"},{\"begin\":\"\\\\b(case|default)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow-control.hx\"}},\"end\":\":|(?=if)|$\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"captures\":{\"1\":{\"name\":\"storage.type.variable.hx\"},\"2\":{\"name\":\"variable.other.hx\"}},\"match\":\"\\\\b(var|final)\\\\b\\\\s*([_a-zA-Z]\\\\w*)\\\\b\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"match\":\"\\\\(\",\"name\":\"meta.brace.round.hx\"},{\"match\":\"\\\\)\",\"name\":\"meta.brace.round.hx\"},{\"include\":\"#macro-reification\"},{\"match\":\"=>\",\"name\":\"keyword.operator.extractor.hx\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#keywords\"},{\"include\":\"#method-call\"},{\"include\":\"#identifiers\"}]},{\"match\":\"\\\\b(if|else|return|do|while|for|break|continue|switch|case|default)\\\\b\",\"name\":\"keyword.control.flow-control.hx\"},{\"match\":\"\\\\b(cast|untyped)\\\\b\",\"name\":\"keyword.other.untyped.hx\"},{\"match\":\"\\\\btrace\\\\b\",\"name\":\"keyword.other.trace.hx\"},{\"match\":\"\\\\$type\\\\b\",\"name\":\"keyword.other.type.hx\"},{\"match\":\"__(global|this)__\\\\b\",\"name\":\"keyword.other.untyped-property.hx\"},{\"match\":\"\\\\b(this|super)\\\\b\",\"name\":\"variable.language.hx\"},{\"match\":\"\\\\bnew\\\\b\",\"name\":\"keyword.operator.new.hx\"},{\"match\":\"\\\\b(abstract|class|enum|interface|typedef)\\\\b\",\"name\":\"storage.type.hx\"},{\"match\":\"->\",\"name\":\"storage.type.function.arrow.hx\"},{\"include\":\"#modifiers\"},{\"include\":\"#modifiers-inheritance\"}]},\"keywords-accessor\":{\"match\":\"\\\\b(default|get|set|dynamic|never|null)\\\\b\",\"name\":\"storage.type.property.hx\"},\"macro-reification\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.reification.hx\"},\"2\":{\"name\":\"keyword.reification.hx\"}},\"match\":\"(\\\\$)([eabipv])\\\\{\"},{\"captures\":{\"2\":{\"name\":\"punctuation.definition.reification.hx\"},\"3\":{\"name\":\"variable.reification.hx\"}},\"match\":\"((\\\\$)([a-zA-Z]*))\"}]},\"metadata\":{\"patterns\":[{\"begin\":\"(@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\\\b)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"storage.modifier.metadata.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"2\":{\"name\":\"punctuation.metadata.hx\"},\"3\":{\"name\":\"storage.modifier.metadata.hx\"}},\"match\":\"((@)(:(abi|abstract|access|allow|analyzer|annotation|arrayAccess|astSource|autoBuild|bind|bitmap|bridgeProperties|build|buildXml|bypassAccessor|callable|classCode|commutative|compilerGenerated|const|coreApi|coreType|cppFileCode|cppInclude|cppNamespaceCode|cs.assemblyMeta|cs.assemblyStrict|cs.using|dce|debug|decl|delegate|depend|deprecated|eager|enum|event|expose|extern|file|fileXml|final|fixed|flash.property|font|forward.new|forward.variance|forward|forwardStatics|from|functionCode|functionTailCode|generic|genericBuild|genericClassPerMethod|getter|hack|headerClassCode|headerCode|headerInclude|headerNamespaceCode|hlNative|hxGen|ifFeature|include|inheritDoc|inline|internal|isVar|java.native|javaCanonical|jsRequire|jvm.synthetic|keep|keepInit|keepSub|luaDotMethod|luaRequire|macro|markup|mergeBlock|multiReturn|multiType|native|nativeChildren|nativeGen|nativeProperty|nativeStaticExtension|noClosure|noCompletion|noDebug|noDoc|noImportGlobal|noPrivateAccess|noStack|noUsing|nonVirtual|notNull|nullSafety|objc|objcProtocol|op|optional|overload|persistent|phpClassConst|phpGlobal|phpMagic|phpNoConstructor|pos|private|privateAccess|property|protected|publicFields|pure|pythonImport|readOnly|remove|require|resolve|rtti|runtimeValue|scalar|selfCall|semantics|setter|sound|sourceFile|stackOnly|strict|struct|structAccess|structInit|suppressWarnings|templatedCall|throws|to|transient|transitive|unifyMinDynamic|unreflective|unsafe|using|void|volatile)\\\\b))\"},{\"begin\":\"(@)(:?[a-zA-Z_]*)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"variable.metadata.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.metadata.hx\"},\"2\":{\"name\":\"variable.metadata.hx\"},\"3\":{\"name\":\"variable.metadata.hx\"},\"4\":{\"name\":\"punctuation.accessor.hx\"},\"5\":{\"name\":\"variable.metadata.hx\"}},\"match\":\"(@)(:?)([a-zA-Z_]*(\\\\.))*([a-zA-Z_]*)?\"}]},\"method\":{\"begin\":\"(?=\\\\bfunction\\\\b)\",\"end\":\"(?<=[};])\",\"name\":\"meta.method.hx\",\"patterns\":[{\"include\":\"#macro-reification\"},{\"include\":\"#method-name\"},{\"include\":\"#method-name-post\"},{\"include\":\"#method-block\"}]},\"method-block\":{\"begin\":\"(?<=\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.method.block.hx\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-call\":{\"begin\":\"\\\\b(?:(__(?:addressOf|as|call|checked|cpp|cs|define_feature|delete|feature|field|fixed|foreach|forin|has_next|hkeys|in|int|is|java|js|keys|lock|lua|lua_table|new|php|physeq|prefix|ptr|resources|rethrow|set|setfield|sizeof|type|typeof|unprotect|unsafe|valueOf|var|vector|vmem_get|vmem_set|vmem_sign|instanceof|strict_eq|strict_neq)__)|([_a-z]\\\\w*))\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.untyped-function.hx\"},\"2\":{\"name\":\"entity.name.function.hx\"},\"3\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-name\":{\"begin\":\"\\\\b(function)\\\\b\\\\s*\\\\b(?:(new)|([_A-Za-z]\\\\w*))?\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.function.hx\"},\"2\":{\"name\":\"storage.type.hx\"},\"3\":{\"name\":\"entity.name.function.hx\"}},\"end\":\"(?=$|\\\\()\",\"patterns\":[{\"include\":\"#macro-reification\"},{\"include\":\"#type-parameters\"}]},\"method-name-post\":{\"begin\":\"(?<=[\\\\w\\\\s>])\",\"end\":\"(\\\\{)|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"},\"2\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#parameters\"},{\"include\":\"#method-return-type-hint\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"method-return-type-hint\":{\"begin\":\"(?<=\\\\))\\\\s*(:)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=[{;a-z0-9])\",\"patterns\":[{\"include\":\"#type\"}]},\"modifiers\":{\"patterns\":[{\"match\":\"\\\\b(enum)\\\\b\",\"name\":\"storage.type.class\"},{\"match\":\"\\\\b(public|private|static|dynamic|inline|macro|extern|override|overload|abstract)\\\\b\",\"name\":\"storage.modifier.hx\"},{\"match\":\"\\\\b(final)\\\\b(?=\\\\s+(public|private|static|dynamic|inline|macro|extern|override|overload|abstract|function))\",\"name\":\"storage.modifier.hx\"}]},\"modifiers-inheritance\":{\"match\":\"\\\\b(implements|extends)\\\\b\",\"name\":\"storage.modifier.hx\"},\"new-expr\":{\"begin\":\"(?<!\\\\.)\\\\b(new)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.new.hx\"}},\"end\":\"(?=$|\\\\()\",\"name\":\"new.expr.hx\",\"patterns\":[{\"include\":\"#type\"}]},\"operator-assignment\":{\"match\":\"(=)\",\"name\":\"keyword.operator.assignment.hx\"},\"operator-optional\":{\"match\":\"(\\\\?)(?!\\\\s)\",\"name\":\"keyword.operator.optional.hx\"},\"operator-type-hint\":{\"match\":\"(:)\",\"name\":\"keyword.operator.type.annotation.hx\"},\"operators\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.hx\"},{\"match\":\"([~\\\\&|\\\\^]|>>>|<<|>>)\",\"name\":\"keyword.operator.bitwise.hx\"},{\"match\":\"(==|!=|<=|>=|[<>])\",\"name\":\"keyword.operator.comparison.hx\"},{\"match\":\"(!)\",\"name\":\"keyword.operator.logical.hx\"},{\"match\":\"(--|\\\\+\\\\+)\",\"name\":\"keyword.operator.increment-decrement.hx\"},{\"match\":\"([\\\\-+*/%])\",\"name\":\"keyword.operator.arithmetic.hx\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"keyword.operator.intiterator.hx\"},{\"match\":\"=>\",\"name\":\"keyword.operator.arrow.hx\"},{\"match\":\"\\\\?\\\\?\",\"name\":\"keyword.operator.nullcoalescing.hx\"},{\"match\":\"\\\\?\\\\.\",\"name\":\"keyword.operator.safenavigation.hx\"},{\"match\":\"\\\\bis\\\\b(?!\\\\()\",\"name\":\"keyword.other.hx\"},{\"begin\":\"\\\\?\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.ternary.hx\"}},\"end\":\":\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.ternary.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]}]},\"package\":{\"begin\":\"package\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.package.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"include\":\"#type-path-package-name\"}]},\"parameter\":{\"begin\":\"(?<=[(,])\",\"end\":\"(?=\\\\)(?!\\\\s*->)|,)\",\"patterns\":[{\"include\":\"#parameter-name\"},{\"include\":\"#parameter-type-hint\"},{\"include\":\"#parameter-assign\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#global\"}]},\"parameter-assign\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.hx\"}},\"end\":\"(?=[),])\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"parameter-name\":{\"begin\":\"(?<=[(,])\",\"end\":\"([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.parameter.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#operator-optional\"}]},\"parameter-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=\\\\)(?!\\\\s*->)|[,=])\",\"patterns\":[{\"include\":\"#type\"}]},\"parameters\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\s*(\\\\)(?!\\\\s*->))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"name\":\"meta.parameters.hx\",\"patterns\":[{\"include\":\"#parameter\"}]},\"punctuation-accessor\":{\"match\":\"\\\\.\",\"name\":\"punctuation.accessor.hx\"},\"punctuation-braces\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"meta.brace.round.hx\"}},\"patterns\":[{\"include\":\"#keywords\"},{\"include\":\"#block\"},{\"include\":\"#block-contents\"},{\"include\":\"#type-check\"}]},\"punctuation-comma\":{\"match\":\",\",\"name\":\"punctuation.separator.comma.hx\"},\"punctuation-terminator\":{\"match\":\";\",\"name\":\"punctuation.terminator.hx\"},\"regex\":{\"begin\":\"(~/)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"(/)([gimsu]*)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hx\"},\"2\":{\"name\":\"keyword.other.hx\"}},\"name\":\"string.regexp.hx\",\"patterns\":[{\"include\":\"#regexp\"}]},\"regex-character-class\":{\"patterns\":[{\"match\":\"\\\\\\\\[wWsSdDtrnvf]|\\\\.\",\"name\":\"constant.other.character-class.regexp\"},{\"match\":\"\\\\\\\\([0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h)\",\"name\":\"constant.character.numeric.regexp\"},{\"match\":\"\\\\\\\\c[A-Z]\",\"name\":\"constant.character.control.regexp\"},{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.backslash.regexp\"}]},\"regexp\":{\"patterns\":[{\"match\":\"\\\\\\\\[bB]|[\\\\^$]\",\"name\":\"keyword.control.anchor.regexp\"},{\"match\":\"\\\\\\\\[1-9]\\\\d*\",\"name\":\"keyword.other.back-reference.regexp\"},{\"match\":\"[?+*]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)}\\\\??\",\"name\":\"keyword.operator.quantifier.regexp\"},{\"match\":\"\\\\|\",\"name\":\"keyword.operator.or.regexp\"},{\"begin\":\"(\\\\()((\\\\?=)|(\\\\?!))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.group.regexp\"},\"2\":{\"name\":\"punctuation.definition.group.assertion.regexp\"},\"3\":{\"name\":\"meta.assertion.look-ahead.regexp\"},\"4\":{\"name\":\"meta.assertion.negative-look-ahead.regexp\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.group.regexp\"}},\"name\":\"meta.group.assertion.regexp\",\"patterns\":[{\"include\":\"#regexp\"}]},{\"begin\":\"\\\\((\\\\?:)?\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.group.regexp\"},\"1\":{\"name\":\"punctuation.definition.group.capture.regexp\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.group.regexp\"}},\"name\":\"meta.group.regexp\",\"patterns\":[{\"include\":\"#regexp\"}]},{\"begin\":\"(\\\\[)(\\\\^)?\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.character-class.regexp\"},\"2\":{\"name\":\"keyword.operator.negation.regexp\"}},\"end\":\"(])\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.character-class.regexp\"}},\"name\":\"constant.other.character-class.set.regexp\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.character.numeric.regexp\"},\"2\":{\"name\":\"constant.character.control.regexp\"},\"3\":{\"name\":\"constant.character.escape.backslash.regexp\"},\"4\":{\"name\":\"constant.character.numeric.regexp\"},\"5\":{\"name\":\"constant.character.control.regexp\"},\"6\":{\"name\":\"constant.character.escape.backslash.regexp\"}},\"match\":\"(?:.|(\\\\\\\\(?:[0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))-(?:[^\\\\]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x\\\\h\\\\h|u\\\\h\\\\h\\\\h\\\\h))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))\",\"name\":\"constant.other.character-class.range.regexp\"},{\"include\":\"#regex-character-class\"}]},{\"include\":\"#regex-character-class\"}]},\"string-escape-sequences\":{\"patterns\":[{\"match\":\"\\\\\\\\[0-3][0-9]{2}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\x\\\\h{2}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\u[0-9]{4}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\u\\\\{\\\\h+}\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\[nrt\\\"'\\\\\\\\]\",\"name\":\"constant.character.escape.hx\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.escape.sequence.hx\"}]},\"strings\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.hx\"}},\"name\":\"string.quoted.double.hx\",\"patterns\":[{\"include\":\"#string-escape-sequences\"}]},{\"begin\":\"(')\",\"beginCaptures\":{\"0\":{\"name\":\"string.quoted.single.hx\"},\"1\":{\"name\":\"punctuation.definition.string.begin.hx\"}},\"end\":\"(')\",\"endCaptures\":{\"0\":{\"name\":\"string.quoted.single.hx\"},\"1\":{\"name\":\"punctuation.definition.string.end.hx\"}},\"patterns\":[{\"begin\":\"\\\\$(?=\\\\$)\",\"beginCaptures\":{\"0\":{\"name\":\"constant.character.escape.hx\"}},\"end\":\"\\\\$\",\"endCaptures\":{\"0\":{\"name\":\"constant.character.escape.hx\"}},\"name\":\"string.quoted.single.hx\"},{\"include\":\"#string-escape-sequences\"},{\"begin\":\"(\\\\$\\\\{)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(})\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"patterns\":[{\"include\":\"#block-contents\"}]},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"},\"2\":{\"name\":\"variable.other.hx\"}},\"match\":\"(\\\\$)([_a-zA-Z]\\\\w*)\"},{\"match\":\"\",\"name\":\"constant.character.escape.hx\"},{\"match\":\".\",\"name\":\"string.quoted.single.hx\"}]}]},\"type\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#macro-reification\"},{\"include\":\"#type-name\"},{\"include\":\"#type-parameters\"},{\"match\":\"->\",\"name\":\"keyword.operator.type.function.hx\"},{\"match\":\"&\",\"name\":\"keyword.operator.type.intersection.hx\"},{\"match\":\"\\\\?(?=\\\\s*[_A-Z])\",\"name\":\"keyword.operator.optional\"},{\"match\":\"\\\\?(?!\\\\s*[_A-Z])\",\"name\":\"punctuation.definition.tag\"},{\"begin\":\"(\\\\{)\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"end\":\"(?<=})\",\"patterns\":[{\"include\":\"#typedef-block\"}]},{\"include\":\"#function-type\"}]},\"type-check\":{\"begin\":\"(?<!macro)(?=:)\",\"end\":\"(?=\\\\))\",\"patterns\":[{\"include\":\"#operator-type-hint\"},{\"include\":\"#type\"}]},\"type-name\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"support.class.builtin.hx\"},\"2\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"}},\"match\":\"\\\\b(Any|Array|ArrayAccess|Bool|Class|Date|DateTools|Dynamic|Enum|EnumValue|EReg|Float|IMap|Int|IntIterator|Iterable|Iterator|KeyValueIterator|KeyValueIterable|Lambda|List|ListIterator|ListNode|Map|Math|Null|Reflect|Single|Std|String|StringBuf|StringTools|Sys|Type|UInt|UnicodeString|ValueType|Void|Xml|XmlType)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\b\"},{\"captures\":{\"1\":{\"name\":\"support.package.hx\"},\"3\":{\"name\":\"entity.name.type.hx\"},\"4\":{\"name\":\"support.package.hx\"},\"5\":{\"name\":\"entity.name.type.hx\"}},\"match\":\"\\\\b(?<![^.]\\\\.)((_*[a-z]\\\\w*\\\\.)*)(_*[A-Z]\\\\w*)(?:(\\\\.)(_*[A-Z]\\\\w*[a-z]\\\\w*))*\\\\b\"}]},\"type-parameter-constraint-new\":{\"match\":\":\",\"name\":\"keyword.operator.type.annotation.hxt\"},\"type-parameter-constraint-old\":{\"begin\":\"(:)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.type.annotation.hx\"},\"2\":{\"name\":\"punctuation.definition.constraint.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.constraint.end.hx\"}},\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#punctuation-comma\"}]},\"type-parameters\":{\"begin\":\"(<)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.begin.hx\"}},\"end\":\"(?=$)|(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.typeparameters.end.hx\"}},\"name\":\"meta.type-parameters.hx\",\"patterns\":[{\"include\":\"#type\"},{\"include\":\"#type-parameter-constraint-old\"},{\"include\":\"#type-parameter-constraint-new\"},{\"include\":\"#global\"},{\"include\":\"#regex\"},{\"include\":\"#array\"},{\"include\":\"#constants\"},{\"include\":\"#strings\"},{\"include\":\"#metadata\"},{\"include\":\"#punctuation-comma\"}]},\"type-path\":{\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#punctuation-accessor\"},{\"include\":\"#type-path-type-name\"}]},\"type-path-package-name\":{\"match\":\"\\\\b([_A-Za-z]\\\\w*)\\\\b\",\"name\":\"support.package.hx\"},\"type-path-type-name\":{\"match\":\"\\\\b(_*[A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.hx\"},\"typedef\":{\"begin\":\"(?=typedef)\",\"end\":\"(?<=})|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"name\":\"meta.typedef.hx\",\"patterns\":[{\"include\":\"#typedef-name\"},{\"include\":\"#typedef-name-post\"},{\"include\":\"#typedef-block\"}]},\"typedef-block\":{\"begin\":\"(?<=\\\\{)\",\"end\":\"(})\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.end.hx\"}},\"name\":\"meta.block.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#metadata\"},{\"include\":\"#method\"},{\"include\":\"#variable\"},{\"include\":\"#modifiers\"},{\"include\":\"#punctuation-comma\"},{\"include\":\"#operator-optional\"},{\"include\":\"#typedef-extension\"},{\"include\":\"#typedef-simple-field-type-hint\"},{\"include\":\"#identifier-name\"},{\"include\":\"#strings\"}]},\"typedef-extension\":{\"begin\":\">\",\"end\":\",|$\",\"patterns\":[{\"include\":\"#type\"}]},\"typedef-name\":{\"begin\":\"\\\\b(typedef)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.class.hx\"}},\"end\":\"([_A-Za-z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"entity.name.type.class.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"typedef-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"(\\\\{)|(?=;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.block.begin.hx\"}},\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#punctuation-brackets\"},{\"include\":\"#punctuation-separator\"},{\"include\":\"#operator-assignment\"},{\"include\":\"#type\"}]},\"typedef-simple-field-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=[},;])\",\"patterns\":[{\"include\":\"#type\"}]},\"using\":{\"begin\":\"using\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.using.hx\"}},\"end\":\"$|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#type-path\"},{\"include\":\"#type-path-package-name\"}]},\"variable\":{\"begin\":\"(?=\\\\b(var|final)\\\\b)\",\"end\":\"(?=$)|(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.hx\"}},\"patterns\":[{\"include\":\"#variable-name\"},{\"include\":\"#variable-name-next\"},{\"include\":\"#variable-assign\"},{\"include\":\"#variable-name-post\"}]},\"variable-accessors\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.begin.hx\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.parameters.end.hx\"}},\"name\":\"meta.parameters.hx\",\"patterns\":[{\"include\":\"#global\"},{\"include\":\"#keywords-accessor\"},{\"include\":\"#accessor-method\"},{\"include\":\"#punctuation-comma\"}]},\"variable-assign\":{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.hx\"}},\"end\":\"(?=[;,])\",\"patterns\":[{\"include\":\"#block\"},{\"include\":\"#block-contents\"}]},\"variable-name\":{\"begin\":\"\\\\b(var|final)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.variable.hx\"}},\"end\":\"(?=$)|([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.hx\"}},\"patterns\":[{\"include\":\"#operator-optional\"}]},\"variable-name-next\":{\"begin\":\",\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.separator.comma.hx\"}},\"end\":\"([_a-zA-Z]\\\\w*)\",\"endCaptures\":{\"1\":{\"name\":\"variable.other.hx\"}},\"patterns\":[{\"include\":\"#global\"}]},\"variable-name-post\":{\"begin\":\"(?<=\\\\w)\",\"end\":\"(?=;)|(?==)\",\"patterns\":[{\"include\":\"#variable-accessors\"},{\"include\":\"#variable-type-hint\"},{\"include\":\"#block-contents\"}]},\"variable-type-hint\":{\"begin\":\":\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.type.annotation.hx\"}},\"end\":\"(?=$|[;,=])\",\"patterns\":[{\"include\":\"#type\"}]}},\"scopeName\":\"source.hx\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/hcl.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HashiCorp HCL\",\"fileTypes\":[\"hcl\"],\"name\":\"hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#block\"},{\"include\":\"#expressions\"}],\"repository\":{\"attribute_access\":{\"begin\":\"\\\\.(?!\\\\*)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"[[:alpha:]][\\\\w-]*|\\\\d*\",\"endCaptures\":{\"0\":{\"patterns\":[{\"match\":\"(?!null|false|true)[[:alpha:]][\\\\w-]*\",\"name\":\"variable.other.member.hcl\"},{\"match\":\"\\\\d+\",\"name\":\"constant.numeric.integer.hcl\"}]}}},\"attribute_definition\":{\"captures\":{\"1\":{\"name\":\"punctuation.section.parens.begin.hcl\"},\"2\":{\"name\":\"variable.other.readwrite.hcl\"},\"3\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"4\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"(\\\\()?(\\\\b(?!null\\\\b|false\\\\b|true\\\\b)[[:alpha:]][[:alnum:]_-]*)(\\\\))?\\\\s*(\\\\=(?!\\\\=|\\\\>))\\\\s*\",\"name\":\"variable.declaration.hcl\"},\"attribute_splat\":{\"begin\":\"\\\\.\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"\\\\*\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.splat.hcl\"}}},\"block\":{\"begin\":\"([\\\\w][\\\\-\\\\w]*)(([^\\\\S\\\\r\\\\n]+([\\\\w][\\\\-_\\\\w]*|\\\\\\\"[^\\\\\\\"\\\\r\\\\n]*\\\\\\\"))*)[^\\\\S\\\\r\\\\n]*(\\\\{)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\\\b\",\"name\":\"entity.name.type.hcl\"}]},\"2\":{\"patterns\":[{\"match\":\"\\\\\\\"[^\\\\\\\"\\\\r\\\\n]*\\\\\\\"\",\"name\":\"variable.other.enummember.hcl\"},{\"match\":\"[[:alpha:]][[:alnum:]_-]*\",\"name\":\"variable.other.enummember.hcl\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.hcl\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.hcl\"}},\"name\":\"meta.block.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#expressions\"},{\"include\":\"#block\"}]},\"block_inline_comments\":{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"\\\\*/\",\"name\":\"comment.block.hcl\"},\"brackets\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.begin.hcl\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"match\":\"\\\\*\",\"name\":\"keyword.operator.splat.hcl\"},{\"include\":\"#comma\"},{\"include\":\"#comments\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"char_escapes\":{\"match\":\"\\\\\\\\[nrt\\\"\\\\\\\\]|\\\\\\\\u(\\\\h{8}|\\\\h{4})\",\"name\":\"constant.character.escape.hcl\"},\"comma\":{\"match\":\"\\\\,\",\"name\":\"punctuation.separator.hcl\"},\"comments\":{\"patterns\":[{\"include\":\"#hash_line_comments\"},{\"include\":\"#double_slash_line_comments\"},{\"include\":\"#block_inline_comments\"}]},\"double_slash_line_comments\":{\"begin\":\"//\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.double-slash.hcl\"},\"expressions\":{\"patterns\":[{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#brackets\"},{\"include\":\"#objects\"},{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"},{\"include\":\"#functions\"},{\"include\":\"#parens\"}]},\"for_expression_body\":{\"patterns\":[{\"match\":\"\\\\bin\\\\b\",\"name\":\"keyword.operator.word.hcl\"},{\"match\":\"\\\\bif\\\\b\",\"name\":\"keyword.control.conditional.hcl\"},{\"match\":\"\\\\:\",\"name\":\"keyword.operator.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"functions\":{\"begin\":\"([:\\\\-\\\\w]+)(\\\\()\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b[[:alpha:]][\\\\w_-]*::([[:alpha:]][\\\\w_-]*::)?[[:alpha:]][\\\\w_-]*\\\\b\",\"name\":\"support.function.namespaced.hcl\"},{\"match\":\"\\\\b[[:alpha:]][\\\\w_-]*\\\\b\",\"name\":\"support.function.builtin.hcl\"}]},\"2\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"name\":\"meta.function-call.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"},{\"include\":\"#comma\"}]},\"hash_line_comments\":{\"begin\":\"#\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.number-sign.hcl\"},\"hcl_type_keywords\":{\"match\":\"\\\\b(any|string|number|bool|list|set|map|tuple|object)\\\\b\",\"name\":\"storage.type.hcl\"},\"heredoc\":{\"begin\":\"(\\\\<\\\\<\\\\-?)\\\\s*(\\\\w+)\\\\s*$\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.heredoc.hcl\"},\"2\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"end\":\"^\\\\s*\\\\2\\\\s*$\",\"endCaptures\":{\"0\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"name\":\"string.unquoted.heredoc.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"}]},\"inline_for_expression\":{\"captures\":{\"1\":{\"name\":\"keyword.control.hcl\"},\"2\":{\"patterns\":[{\"match\":\"\\\\=\\\\>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]}},\"match\":\"(for)\\\\b(.*)\\\\n\"},\"inline_if_expression\":{\"begin\":\"(if)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.hcl\"}},\"end\":\"\\\\n\",\"patterns\":[{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"language_constants\":{\"match\":\"\\\\b(true|false|null)\\\\b\",\"name\":\"constant.language.hcl\"},\"literal_values\":{\"patterns\":[{\"include\":\"#numeric_literals\"},{\"include\":\"#language_constants\"},{\"include\":\"#string_literals\"},{\"include\":\"#heredoc\"},{\"include\":\"#hcl_type_keywords\"}]},\"local_identifiers\":{\"match\":\"\\\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\\\b\",\"name\":\"variable.other.readwrite.hcl\"},\"numeric_literals\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+([Ee][+-]?)\\\\d+\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.decimal.hcl\"},\"2\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+(\\\\.)\\\\d+(?:([Ee][+-]?)\\\\d+)?\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"match\":\"\\\\b\\\\d+\\\\b\",\"name\":\"constant.numeric.integer.hcl\"}]},\"object_for_expression\":{\"begin\":\"(\\\\{)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.braces.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"patterns\":[{\"match\":\"\\\\=\\\\>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]},\"object_key_values\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#heredoc\"},{\"include\":\"#functions\"}]},\"objects\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.begin.hcl\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"name\":\"meta.braces.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#objects\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl variable.other.readwrite.hcl\"},\"2\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"\\\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\\\s*(\\\\=(?!=))\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl string.quoted.double.hcl\"},\"2\":{\"name\":\"punctuation.definition.string.begin.hcl\"},\"3\":{\"name\":\"punctuation.definition.string.end.hcl\"},\"4\":{\"name\":\"keyword.operator.hcl\"}},\"match\":\"^\\\\s*((\\\").*(\\\"))\\\\s*(\\\\=)\\\\s*\"},{\"begin\":\"^\\\\s*\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"(\\\\))\\\\s*(=|:)\\\\s*\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"2\":{\"name\":\"keyword.operator.hcl\"}},\"name\":\"meta.mapping.key.hcl\",\"patterns\":[{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"}]},{\"include\":\"#object_key_values\"}]},\"operators\":{\"patterns\":[{\"match\":\"\\\\>\\\\=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\<\\\\=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\=\\\\=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\!\\\\=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\+\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\-\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\*\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\/\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\%\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\&\\\\&\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"\\\\|\\\\|\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"\\\\!\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"\\\\>\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\<\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\?\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\:\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\=\\\\>\",\"name\":\"keyword.operator.hcl\"}]},\"parens\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"}]},\"string_interpolation\":{\"begin\":\"(?<![%$])([%$]{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.interpolation.begin.hcl\"}},\"end\":\"\\\\}\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.interpolation.end.hcl\"}},\"name\":\"meta.interpolation.hcl\",\"patterns\":[{\"match\":\"\\\\~\\\\s\",\"name\":\"keyword.operator.template.left.trim.hcl\"},{\"match\":\"\\\\s\\\\~\",\"name\":\"keyword.operator.template.right.trim.hcl\"},{\"match\":\"\\\\b(if|else|endif|for|in|endfor)\\\\b\",\"name\":\"keyword.control.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"string_literals\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hcl\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.hcl\"}},\"name\":\"string.quoted.double.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"},{\"include\":\"#char_escapes\"}]},\"tuple_for_expression\":{\"begin\":\"(\\\\[)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.brackets.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"\\\\]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"include\":\"#for_expression_body\"}]}},\"scopeName\":\"source.hcl\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HashiCorp HCL\",\"fileTypes\":[\"hcl\"],\"name\":\"hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#block\"},{\"include\":\"#expressions\"}],\"repository\":{\"attribute_access\":{\"begin\":\"\\\\.(?!\\\\*)\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"\\\\p{alpha}[\\\\w\\\\-]*|\\\\d*\",\"endCaptures\":{\"0\":{\"patterns\":[{\"match\":\"(?!null|false|true)\\\\p{alpha}[\\\\w\\\\-]*\",\"name\":\"variable.other.member.hcl\"},{\"match\":\"\\\\d+\",\"name\":\"constant.numeric.integer.hcl\"}]}}},\"attribute_definition\":{\"captures\":{\"1\":{\"name\":\"punctuation.section.parens.begin.hcl\"},\"2\":{\"name\":\"variable.other.readwrite.hcl\"},\"3\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"4\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"(\\\\()?(\\\\b(?!null\\\\b|false\\\\b|true\\\\b)\\\\p{alpha}[[:alnum:]_\\\\-]*)(\\\\))?\\\\s*(=(?![=>]))\\\\s*\",\"name\":\"variable.declaration.hcl\"},\"attribute_splat\":{\"begin\":\"\\\\.\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.accessor.hcl\"}},\"end\":\"\\\\*\",\"endCaptures\":{\"0\":{\"name\":\"keyword.operator.splat.hcl\"}}},\"block\":{\"begin\":\"(\\\\w[\\\\-\\\\w]*)(([^\\\\S\\\\r\\\\n]+(\\\\w[\\\\-_\\\\w]*|\\\"[^\\\"\\\\r\\\\n]*\\\"))*)[^\\\\S\\\\r\\\\n]*(\\\\{)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b(?!null|false|true)\\\\p{alpha}[[:alnum:]_\\\\-]*\\\\b\",\"name\":\"entity.name.type.hcl\"}]},\"2\":{\"patterns\":[{\"match\":\"\\\"[^\\\"\\\\r\\\\n]*\\\"\",\"name\":\"variable.other.enummember.hcl\"},{\"match\":\"\\\\p{alpha}[[:alnum:]_\\\\-]*\",\"name\":\"variable.other.enummember.hcl\"}]},\"5\":{\"name\":\"punctuation.section.block.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.block.end.hcl\"}},\"name\":\"meta.block.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#attribute_definition\"},{\"include\":\"#expressions\"},{\"include\":\"#block\"}]},\"block_inline_comments\":{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"\\\\*/\",\"name\":\"comment.block.hcl\"},\"brackets\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.begin.hcl\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"match\":\"\\\\*\",\"name\":\"keyword.operator.splat.hcl\"},{\"include\":\"#comma\"},{\"include\":\"#comments\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"char_escapes\":{\"match\":\"\\\\\\\\(?:[nrt\\\"\\\\\\\\]|u(\\\\h{8}|\\\\h{4}))\",\"name\":\"constant.character.escape.hcl\"},\"comma\":{\"match\":\",\",\"name\":\"punctuation.separator.hcl\"},\"comments\":{\"patterns\":[{\"include\":\"#hash_line_comments\"},{\"include\":\"#double_slash_line_comments\"},{\"include\":\"#block_inline_comments\"}]},\"double_slash_line_comments\":{\"begin\":\"//\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.double-slash.hcl\"},\"expressions\":{\"patterns\":[{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#brackets\"},{\"include\":\"#objects\"},{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"},{\"include\":\"#functions\"},{\"include\":\"#parens\"}]},\"for_expression_body\":{\"patterns\":[{\"match\":\"\\\\bin\\\\b\",\"name\":\"keyword.operator.word.hcl\"},{\"match\":\"\\\\bif\\\\b\",\"name\":\"keyword.control.conditional.hcl\"},{\"match\":\":\",\"name\":\"keyword.operator.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"functions\":{\"begin\":\"([:\\\\-\\\\w]+)(\\\\()\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"match\":\"\\\\b\\\\p{alpha}[\\\\w_\\\\-]*::(\\\\p{alpha}[\\\\w_\\\\-]*::)?\\\\p{alpha}[\\\\w_\\\\-]*\\\\b\",\"name\":\"support.function.namespaced.hcl\"},{\"match\":\"\\\\b\\\\p{alpha}[\\\\w_\\\\-]*\\\\b\",\"name\":\"support.function.builtin.hcl\"}]},\"2\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"name\":\"meta.function-call.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"},{\"include\":\"#comma\"}]},\"hash_line_comments\":{\"begin\":\"#\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.hcl\"}},\"end\":\"$\\\\n?\",\"name\":\"comment.line.number-sign.hcl\"},\"hcl_type_keywords\":{\"match\":\"\\\\b(any|string|number|bool|list|set|map|tuple|object)\\\\b\",\"name\":\"storage.type.hcl\"},\"heredoc\":{\"begin\":\"(<<-?)\\\\s*(\\\\w+)\\\\s*$\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.heredoc.hcl\"},\"2\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"end\":\"^\\\\s*\\\\2\\\\s*$\",\"endCaptures\":{\"0\":{\"name\":\"keyword.control.heredoc.hcl\"}},\"name\":\"string.unquoted.heredoc.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"}]},\"inline_for_expression\":{\"captures\":{\"1\":{\"name\":\"keyword.control.hcl\"},\"2\":{\"patterns\":[{\"match\":\"=>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]}},\"match\":\"(for)\\\\b(.*)\\\\n\"},\"inline_if_expression\":{\"begin\":\"(if)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.hcl\"}},\"end\":\"\\\\n\",\"patterns\":[{\"include\":\"#expressions\"},{\"include\":\"#comments\"},{\"include\":\"#comma\"},{\"include\":\"#local_identifiers\"}]},\"language_constants\":{\"match\":\"\\\\b(true|false|null)\\\\b\",\"name\":\"constant.language.hcl\"},\"literal_values\":{\"patterns\":[{\"include\":\"#numeric_literals\"},{\"include\":\"#language_constants\"},{\"include\":\"#string_literals\"},{\"include\":\"#heredoc\"},{\"include\":\"#hcl_type_keywords\"}]},\"local_identifiers\":{\"match\":\"\\\\b(?!null|false|true)\\\\p{alpha}[[:alnum:]_\\\\-]*\\\\b\",\"name\":\"variable.other.readwrite.hcl\"},\"numeric_literals\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+([Ee][+\\\\-]?)\\\\d+\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"captures\":{\"1\":{\"name\":\"punctuation.separator.decimal.hcl\"},\"2\":{\"name\":\"punctuation.separator.exponent.hcl\"}},\"match\":\"\\\\b\\\\d+(\\\\.)\\\\d+(?:([Ee][+\\\\-]?)\\\\d+)?\\\\b\",\"name\":\"constant.numeric.float.hcl\"},{\"match\":\"\\\\b\\\\d+\\\\b\",\"name\":\"constant.numeric.integer.hcl\"}]},\"object_for_expression\":{\"begin\":\"(\\\\{)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.braces.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"patterns\":[{\"match\":\"=>\",\"name\":\"storage.type.function.hcl\"},{\"include\":\"#for_expression_body\"}]},\"object_key_values\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#literal_values\"},{\"include\":\"#operators\"},{\"include\":\"#tuple_for_expression\"},{\"include\":\"#object_for_expression\"},{\"include\":\"#heredoc\"},{\"include\":\"#functions\"}]},\"objects\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.braces.end.hcl\"}},\"name\":\"meta.braces.hcl\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#objects\"},{\"include\":\"#inline_for_expression\"},{\"include\":\"#inline_if_expression\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl variable.other.readwrite.hcl\"},\"2\":{\"name\":\"keyword.operator.assignment.hcl\"}},\"match\":\"\\\\b((?!null|false|true)\\\\p{alpha}[[:alnum:]_\\\\-]*)\\\\s*(=(?!=))\\\\s*\"},{\"captures\":{\"1\":{\"name\":\"meta.mapping.key.hcl string.quoted.double.hcl\"},\"2\":{\"name\":\"punctuation.definition.string.begin.hcl\"},\"3\":{\"name\":\"punctuation.definition.string.end.hcl\"},\"4\":{\"name\":\"keyword.operator.hcl\"}},\"match\":\"^\\\\s*((\\\").*(\\\"))\\\\s*(=)\\\\s*\"},{\"begin\":\"^\\\\s*\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"(\\\\))\\\\s*([=:])\\\\s*\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.section.parens.end.hcl\"},\"2\":{\"name\":\"keyword.operator.hcl\"}},\"name\":\"meta.mapping.key.hcl\",\"patterns\":[{\"include\":\"#attribute_access\"},{\"include\":\"#attribute_splat\"}]},{\"include\":\"#object_key_values\"}]},\"operators\":{\"patterns\":[{\"match\":\">=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"<=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"==\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"!=\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\+\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"-\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"\\\\*\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"/\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"%\",\"name\":\"keyword.operator.arithmetic.hcl\"},{\"match\":\"&&\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"\\\\|\\\\|\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\"!\",\"name\":\"keyword.operator.logical.hcl\"},{\"match\":\">\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"<\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\?\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"\\\\.\\\\.\\\\.\",\"name\":\"keyword.operator.hcl\"},{\"match\":\":\",\"name\":\"keyword.operator.hcl\"},{\"match\":\"=>\",\"name\":\"keyword.operator.hcl\"}]},\"parens\":{\"begin\":\"\\\\(\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.begin.hcl\"}},\"end\":\"\\\\)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.parens.end.hcl\"}},\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expressions\"}]},\"string_interpolation\":{\"begin\":\"(?<![%$])([%$]\\\\{)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.interpolation.begin.hcl\"}},\"end\":\"}\",\"endCaptures\":{\"0\":{\"name\":\"keyword.other.interpolation.end.hcl\"}},\"name\":\"meta.interpolation.hcl\",\"patterns\":[{\"match\":\"~\\\\s\",\"name\":\"keyword.operator.template.left.trim.hcl\"},{\"match\":\"\\\\s~\",\"name\":\"keyword.operator.template.right.trim.hcl\"},{\"match\":\"\\\\b(if|else|endif|for|in|endfor)\\\\b\",\"name\":\"keyword.control.hcl\"},{\"include\":\"#expressions\"},{\"include\":\"#local_identifiers\"}]},\"string_literals\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hcl\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.hcl\"}},\"name\":\"string.quoted.double.hcl\",\"patterns\":[{\"include\":\"#string_interpolation\"},{\"include\":\"#char_escapes\"}]},\"tuple_for_expression\":{\"begin\":\"(\\\\[)\\\\s?(for)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.section.brackets.begin.hcl\"},\"2\":{\"name\":\"keyword.control.hcl\"}},\"end\":\"]\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.section.brackets.end.hcl\"}},\"patterns\":[{\"include\":\"#for_expression_body\"}]}},\"scopeName\":\"source.hcl\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/hjson.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Hjson\",\"fileTypes\":[\"hjson\"],\"foldingStartMarker\":\"(?:^\\\\s*[{\\\\[](?!.*[}\\\\]],?\\\\s*$)|[{\\\\[]\\\\s*$)\",\"foldingStopMarker\":\"(?:^\\\\s*[}\\\\]])\",\"name\":\"hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#value\"},{\"match\":\"[^\\\\s]\",\"name\":\"invalid.illegal.excess-characters.hjson\"}],\"repository\":{\"array\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(\\\\])(?:\\\\s*([^,\\\\s]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"arrayArray\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(\\\\])(?:\\\\s*([^,\\\\s\\\\]]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"arrayConstant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"},\"2\":{\"name\":\"punctuation.separator.array.after-const.hjson\"}},\"match\":\"\\\\b(true|false|null)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\]))\"},\"arrayContent\":{\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#arrayValue\"},{\"begin\":\"(?<=\\\\[)|,\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"end\":\"(?=[^\\\\s,/#])|(?=/[^/*])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\",\",\"name\":\"invalid.illegal.extra-comma.hjson\"}]},{\"match\":\",\",\"name\":\"punctuation.separator.array.hjson\"},{\"match\":\"[^\\\\s\\\\]]\",\"name\":\"invalid.illegal.expected-array-separator.hjson\"}]},\"arrayJstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"arrayMstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"arrayNumber\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"},\"2\":{\"name\":\"punctuation.separator.array.after-num.hjson\"}},\"match\":\"(-?(?:0|(?:[1-9]\\\\d*))(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\]))\"},\"arrayObject\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(\\\\}|(?<=\\\\}))(?:\\\\s*([^,\\\\s\\\\]]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"arrayString\":{\"patterns\":[{\"include\":\"#arrayMstring\"},{\"include\":\"#arrayJstring\"},{\"include\":\"#ustring\"}]},\"arrayValue\":{\"patterns\":[{\"include\":\"#arrayNumber\"},{\"include\":\"#arrayConstant\"},{\"include\":\"#arrayString\"},{\"include\":\"#arrayObject\"},{\"include\":\"#arrayArray\"}]},\"comments\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"^\\\\s*(#).*(?:\\\\n)?\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"^\\\\s*(//).*(?:\\\\n)?\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"^\\\\s*/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/(?:\\\\s*\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(#)[^\\\\n]*\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(//)[^\\\\n]*\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"}]},\"commentsNewline\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(#).*\\\\n\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(//).*\\\\n\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/(\\\\s*\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"}]},\"constant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"}},\"match\":\"\\\\b(true|false|null)[\\\\t ]*(?=$|#|/\\\\*|//|\\\\])\"},\"jstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"jstringDoubleContent\":{\"patterns\":[{\"match\":\"\\\\\\\\(?:[\\\"'\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})\",\"name\":\"constant.character.escape.hjson\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},{\"match\":\"[^\\\"]*[^\\\\n\\\\r\\\"\\\\\\\\]$\",\"name\":\"invalid.illegal.string.hjson\"}]},\"jstringSingleContent\":{\"patterns\":[{\"match\":\"\\\\\\\\(?:[\\\"'\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})\",\"name\":\"constant.character.escape.hjson\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},{\"match\":\"[^']*[^\\\\n\\\\r'\\\\\\\\]$\",\"name\":\"invalid.illegal.string.hjson\"}]},\"key\":{\"begin\":\"(?:((?:[^:,\\\\{\\\\}\\\\[\\\\]\\\\s\\\"'][^:,\\\\{\\\\}\\\\[\\\\]\\\\s]*)|(?:'(?:[^\\\\\\\\']|(\\\\\\\\(?:[\\\"'\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\\\\\.))*')|(?:\\\"(?:[^\\\\\\\\\\\"]|(\\\\\\\\(?:[\\\"'\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4}))|(\\\\\\\\.))*\\\"))\\\\s*(?!\\\\n)([,\\\\{\\\\}\\\\[\\\\]]*))\",\"beginCaptures\":{\"0\":{\"name\":\"meta.structure.key-value.begin.hjson\"},\"1\":{\"name\":\"support.type.property-name.hjson\"},\"2\":{\"name\":\"constant.character.escape.hjson\"},\"3\":{\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},\"4\":{\"name\":\"constant.character.escape.hjson\"},\"5\":{\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},\"6\":{\"name\":\"invalid.illegal.separator.hjson\"},\"7\":{\"name\":\"invalid.illegal.property-name.hjson\"}},\"end\":\"(?<!^|:)\\\\s*\\\\n|(?=})|(,)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"patterns\":[{\"include\":\"#commentsNewline\"},{\"include\":\"#keyValue\"},{\"match\":\"[^\\\\s]\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"keyValue\":{\"begin\":\"(?:\\\\s*(:)\\\\s*([,\\\\}\\\\]]*))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.key-value.hjson\"},\"2\":{\"name\":\"invalid.illegal.object-property.hjson\"}},\"end\":\"(?<!^)\\\\s*(?=\\\\n)|(?=[},])\",\"name\":\"meta.structure.key-value.hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"^\\\\s+\"},{\"include\":\"#objectValue\"},{\"captures\":{\"1\":{\"name\":\"invalid.illegal.object-property.closing-bracket.hjson\"}},\"match\":\"^\\\\s*(\\\\})\"},{\"match\":\"[^\\\\s]\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"mstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"number\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"}},\"match\":\"(-?(?:0|(?:[1-9]\\\\d*))(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)[\\\\t ]*(?=$|#|/\\\\*|//|\\\\])\"},\"object\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(\\\\}|(?<=\\\\}))(?:\\\\s*([^,\\\\s]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"objectArray\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(\\\\])(?:\\\\s*([^,\\\\s\\\\}]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"objectConstant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"},\"2\":{\"name\":\"punctuation.separator.dictionary.pair.after-const.hjson\"}},\"match\":\"\\\\b(true|false|null)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\}))\"},\"objectContent\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#key\"},{\"match\":\":[.|\\\\s]\",\"name\":\"invalid.illegal.object-property.hjson\"},{\"begin\":\"(?<=\\\\{|,)|,\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"end\":\"(?=[^\\\\s,/#])|(?=/[^/*])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\",\",\"name\":\"invalid.illegal.extra-comma.hjson\"}]},{\"match\":\"[^\\\\s]\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"objectJstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^,\\\\s\\\\}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^,\\\\s\\\\}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"objectMstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^,\\\\s\\\\}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"objectNumber\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"},\"2\":{\"name\":\"punctuation.separator.dictionary.pair.after-num.hjson\"}},\"match\":\"(-?(?:0|(?:[1-9]\\\\d*))(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|\\\\}))\"},\"objectObject\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(\\\\}|(?<=\\\\})\\\\}?)(?:\\\\s*([^,\\\\s}]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"objectString\":{\"patterns\":[{\"include\":\"#objectMstring\"},{\"include\":\"#objectJstring\"},{\"include\":\"#ustring\"}]},\"objectValue\":{\"patterns\":[{\"include\":\"#objectNumber\"},{\"include\":\"#objectConstant\"},{\"include\":\"#objectString\"},{\"include\":\"#objectObject\"},{\"include\":\"#objectArray\"}]},\"string\":{\"patterns\":[{\"include\":\"#mstring\"},{\"include\":\"#jstring\"},{\"include\":\"#ustring\"}]},\"ustring\":{\"match\":\"([^:,\\\\{\\\\[\\\\}\\\\]\\\\s].*)$\",\"name\":\"string.quoted.none.hjson\"},\"value\":{\"patterns\":[{\"include\":\"#number\"},{\"include\":\"#constant\"},{\"include\":\"#string\"},{\"include\":\"#object\"},{\"include\":\"#array\"}]}},\"scopeName\":\"source.hjson\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Hjson\",\"fileTypes\":[\"hjson\"],\"foldingStartMarker\":\"(?:^\\\\s*[{\\\\[](?!.*[}\\\\]],?\\\\s*$)|[{\\\\[]\\\\s*$)\",\"foldingStopMarker\":\"^\\\\s*[}\\\\]]\",\"name\":\"hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#value\"},{\"match\":\"\\\\S\",\"name\":\"invalid.illegal.excess-characters.hjson\"}],\"repository\":{\"array\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(])(?:\\\\s*([^,\\\\s]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"arrayArray\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(])(?:\\\\s*([^,\\\\s\\\\]]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"arrayConstant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"},\"2\":{\"name\":\"punctuation.separator.array.after-const.hjson\"}},\"match\":\"\\\\b(true|false|null)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|]))\"},\"arrayContent\":{\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#arrayValue\"},{\"begin\":\"(?<=\\\\[)|,\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"end\":\"(?=[^\\\\s,/#])|(?=/[^/*])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\",\",\"name\":\"invalid.illegal.extra-comma.hjson\"}]},{\"match\":\",\",\"name\":\"punctuation.separator.array.hjson\"},{\"match\":\"[^\\\\s\\\\]]\",\"name\":\"invalid.illegal.expected-array-separator.hjson\"}]},\"arrayJstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"arrayMstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^,\\\\s\\\\]#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"arrayNumber\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"},\"2\":{\"name\":\"punctuation.separator.array.after-num.hjson\"}},\"match\":\"(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+\\\\-]?\\\\d+)?)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|]))\"},\"arrayObject\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(}|(?<=}))(?:\\\\s*([^,\\\\s\\\\]]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"arrayString\":{\"patterns\":[{\"include\":\"#arrayMstring\"},{\"include\":\"#arrayJstring\"},{\"include\":\"#ustring\"}]},\"arrayValue\":{\"patterns\":[{\"include\":\"#arrayNumber\"},{\"include\":\"#arrayConstant\"},{\"include\":\"#arrayString\"},{\"include\":\"#arrayObject\"},{\"include\":\"#arrayArray\"}]},\"comments\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"^\\\\s*(#).*\\\\n?\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"^\\\\s*(//).*\\\\n?\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"^\\\\s*/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/(?:\\\\s*\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(#)[^\\\\n]*\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(//)[^\\\\n]*\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"}]},\"commentsNewline\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(#).*\\\\n\",\"name\":\"comment.line.hash\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"match\":\"(//).*\\\\n\",\"name\":\"comment.line.double-slash\"},{\"begin\":\"/\\\\*\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"end\":\"\\\\*/(\\\\s*\\\\n)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.hjson\"}},\"name\":\"comment.block.double-slash\"}]},\"constant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"}},\"match\":\"\\\\b(true|false|null)[\\\\t ]*(?=$|#|/\\\\*|//|])\"},\"jstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"jstringDoubleContent\":{\"patterns\":[{\"match\":\"\\\\\\\\(?:[\\\"'\\\\\\\\/bfnrt]|u\\\\h{4})\",\"name\":\"constant.character.escape.hjson\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},{\"match\":\"[^\\\"]*[^\\\\n\\\\r\\\"\\\\\\\\]$\",\"name\":\"invalid.illegal.string.hjson\"}]},\"jstringSingleContent\":{\"patterns\":[{\"match\":\"\\\\\\\\(?:[\\\"'\\\\\\\\/bfnrt]|u\\\\h{4})\",\"name\":\"constant.character.escape.hjson\"},{\"match\":\"\\\\\\\\.\",\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},{\"match\":\"[^']*[^\\\\n\\\\r'\\\\\\\\]$\",\"name\":\"invalid.illegal.string.hjson\"}]},\"key\":{\"begin\":\"([^:,{}\\\\[\\\\]\\\\s\\\"'][^:,{}\\\\[\\\\]\\\\s]*|'(?:[^\\\\\\\\']|(\\\\\\\\(?:[\\\"'\\\\\\\\/bfnrt]|u\\\\h{4}))|(\\\\\\\\.))*'|\\\"(?:[^\\\\\\\\\\\"]|(\\\\\\\\(?:[\\\"'\\\\\\\\/bfnrt]|u\\\\h{4}))|(\\\\\\\\.))*\\\")\\\\s*(?!\\\\n)([,{}\\\\[\\\\]]*)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.structure.key-value.begin.hjson\"},\"1\":{\"name\":\"support.type.property-name.hjson\"},\"2\":{\"name\":\"constant.character.escape.hjson\"},\"3\":{\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},\"4\":{\"name\":\"constant.character.escape.hjson\"},\"5\":{\"name\":\"invalid.illegal.unrecognized-string-escape.hjson\"},\"6\":{\"name\":\"invalid.illegal.separator.hjson\"},\"7\":{\"name\":\"invalid.illegal.property-name.hjson\"}},\"end\":\"(?<!^|:)\\\\s*\\\\n|(?=})|(,)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"patterns\":[{\"include\":\"#commentsNewline\"},{\"include\":\"#keyValue\"},{\"match\":\"\\\\S\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"keyValue\":{\"begin\":\"\\\\s*(:)\\\\s*([,}\\\\]]*)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.key-value.hjson\"},\"2\":{\"name\":\"invalid.illegal.object-property.hjson\"}},\"end\":\"(?<!^)\\\\s*(?=\\\\n)|(?=[},])\",\"name\":\"meta.structure.key-value.hjson\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"^\\\\s+\"},{\"include\":\"#objectValue\"},{\"captures\":{\"1\":{\"name\":\"invalid.illegal.object-property.closing-bracket.hjson\"}},\"match\":\"^\\\\s*(})\"},{\"match\":\"\\\\S\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"mstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^\\\\s#/]|/[^/*]).*)$)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"number\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"}},\"match\":\"(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+\\\\-]?\\\\d+)?)[\\\\t ]*(?=$|#|/\\\\*|//|])\"},\"object\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(}|(?<=}))(?:\\\\s*([^,\\\\s]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"objectArray\":{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.array.begin.hjson\"}},\"end\":\"(])(?:\\\\s*([^,\\\\s}]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.array.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.array.hjson\",\"patterns\":[{\"include\":\"#arrayContent\"}]},\"objectConstant\":{\"captures\":{\"1\":{\"name\":\"constant.language.hjson\"},\"2\":{\"name\":\"punctuation.separator.dictionary.pair.after-const.hjson\"}},\"match\":\"\\\\b(true|false|null)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|}))\"},\"objectContent\":{\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#key\"},{\"match\":\":[.|\\\\s]\",\"name\":\"invalid.illegal.object-property.hjson\"},{\"begin\":\"(?<=[{,])|,\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.separator.dictionary.pair.hjson\"}},\"end\":\"(?=[^\\\\s,/#])|(?=/[^/*])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\",\",\"name\":\"invalid.illegal.extra-comma.hjson\"}]},{\"match\":\"\\\\S\",\"name\":\"invalid.illegal.object-property.hjson\"}]},\"objectJstring\":{\"patterns\":[{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(\\\")(?:\\\\s*((?:[^,\\\\s}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.double.hjson\",\"patterns\":[{\"include\":\"#jstringDoubleContent\"}]},{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(')(?:\\\\s*((?:[^,\\\\s}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.single.hjson\",\"patterns\":[{\"include\":\"#jstringSingleContent\"}]}]},\"objectMstring\":{\"begin\":\"'''\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.hjson\"}},\"end\":\"(''')(?:\\\\s*((?:[^,\\\\s}#/]|/[^/*])+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"string.quoted.multiline.hjson\"},\"objectNumber\":{\"captures\":{\"1\":{\"name\":\"constant.numeric.hjson\"},\"2\":{\"name\":\"punctuation.separator.dictionary.pair.after-num.hjson\"}},\"match\":\"(-?(?:0|[1-9]\\\\d*)(?:\\\\.\\\\d+)?(?:[eE][+\\\\-]?\\\\d+)?)(?:[\\\\t ]*(?=,)|[\\\\t ]*(?:(,)[\\\\t ]*)?(?=$|#|/\\\\*|//|}))\"},\"objectObject\":{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.dictionary.begin.hjson\"}},\"end\":\"(}|(?<=})}?)(?:\\\\s*([^,\\\\s}]+))?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.dictionary.end.hjson\"},\"2\":{\"name\":\"invalid.illegal.value.hjson\"}},\"name\":\"meta.structure.dictionary.hjson\",\"patterns\":[{\"include\":\"#objectContent\"}]},\"objectString\":{\"patterns\":[{\"include\":\"#objectMstring\"},{\"include\":\"#objectJstring\"},{\"include\":\"#ustring\"}]},\"objectValue\":{\"patterns\":[{\"include\":\"#objectNumber\"},{\"include\":\"#objectConstant\"},{\"include\":\"#objectString\"},{\"include\":\"#objectObject\"},{\"include\":\"#objectArray\"}]},\"string\":{\"patterns\":[{\"include\":\"#mstring\"},{\"include\":\"#jstring\"},{\"include\":\"#ustring\"}]},\"ustring\":{\"match\":\"([^:,{\\\\[}\\\\]\\\\s].*)$\",\"name\":\"string.quoted.none.hjson\"},\"value\":{\"patterns\":[{\"include\":\"#number\"},{\"include\":\"#constant\"},{\"include\":\"#string\"},{\"include\":\"#object\"},{\"include\":\"#array\"}]}},\"scopeName\":\"source.hjson\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/hlsl.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HLSL\",\"name\":\"hlsl\",\"patterns\":[{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.line.block.hlsl\"},{\"begin\":\"//\",\"end\":\"$\",\"name\":\"comment.line.double-slash.hlsl\"},{\"match\":\"\\\\b[0-9]+\\\\.[0-9]*(
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HLSL\",\"name\":\"hlsl\",\"patterns\":[{\"begin\":\"/\\\\*\",\"end\":\"\\\\*/\",\"name\":\"comment.line.block.hlsl\"},{\"begin\":\"//\",\"end\":\"$\",\"name\":\"comment.line.double-slash.hlsl\"},{\"match\":\"\\\\b[0-9]+\\\\.[0-9]*([Ff])?\\\\b\",\"name\":\"constant.numeric.decimal.hlsl\"},{\"match\":\"(\\\\.([0-9]+)([Ff])?)\\\\b\",\"name\":\"constant.numeric.decimal.hlsl\"},{\"match\":\"\\\\b([0-9]+([Ff])?)\\\\b\",\"name\":\"constant.numeric.decimal.hlsl\"},{\"match\":\"\\\\b(0([xX])\\\\h+)\\\\b\",\"name\":\"constant.numeric.hex.hlsl\"},{\"match\":\"\\\\b(false|true)\\\\b\",\"name\":\"constant.language.hlsl\"},{\"match\":\"^\\\\s*#\\\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)\",\"name\":\"keyword.preprocessor.hlsl\"},{\"match\":\"\\\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\\\b\",\"name\":\"keyword.control.hlsl\"},{\"match\":\"\\\\b(compile)\\\\b\",\"name\":\"keyword.control.fx.hlsl\"},{\"match\":\"\\\\b(typedef)\\\\b\",\"name\":\"keyword.typealias.hlsl\"},{\"match\":\"\\\\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\\\\b\",\"name\":\"storage.type.basic.hlsl\"},{\"match\":\"\\\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=\\\\s*\\\\()\",\"name\":\"support.function.hlsl\"},{\"match\":\"(?<=:(?:\\\\s|))(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\\\b\",\"name\":\"support.variable.semantic.hlsl\"},{\"match\":\"(?<=:(?:\\\\s|))(?i:SV_(?:ClipDistance[0-9]*|CullDistance[0-9]*|Coverage|Depth|DepthGreaterEqual[0-9]*|DepthLessEqual[0-9]*|InstanceID|IsFrontFace|Position|RenderTargetArrayIndex|SampleIndex|StencilRef|Target[0-7]?|VertexID|ViewportArrayIndex))\\\\b\",\"name\":\"support.variable.semantic.sm4.hlsl\"},{\"match\":\"(?<=:(?:\\\\s|))(?i:SV_(?:DispatchThreadID|DomainLocation|GroupID|GroupIndex|GroupThreadID|GSInstanceID|InsideTessFactor|OutputControlPointID|TessFactor))\\\\b\",\"name\":\"support.variable.semantic.sm5.hlsl\"},{\"match\":\"(?<=:(?:\\\\s|))(?i:SV_(?:InnerCoverage|StencilRef))\\\\b\",\"name\":\"support.variable.semantic.sm5_1.hlsl\"},{\"match\":\"\\\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\\\b\",\"name\":\"storage.modifier.hlsl\"},{\"match\":\"\\\\b(snorm|unorm)\\\\b\",\"name\":\"storage.modifier.float.hlsl\"},{\"match\":\"\\\\b(packoffset|register)\\\\b\",\"name\":\"storage.modifier.postfix.hlsl\"},{\"match\":\"\\\\b(centroid|linear|nointerpolation|noperspective|sample)\\\\b\",\"name\":\"storage.modifier.interpolation.hlsl\"},{\"match\":\"\\\\b(lineadj|line|point|triangle|triangleadj)\\\\b\",\"name\":\"storage.modifier.geometryshader.hlsl\"},{\"match\":\"\\\\b(string)\\\\b\",\"name\":\"support.type.other.hlsl\"},{\"match\":\"\\\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\\\b\",\"name\":\"support.type.object.hlsl\"},{\"match\":\"\\\\b(RasterizerOrdered(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\\\\b\",\"name\":\"support.type.object.rasterizerordered.hlsl\"},{\"match\":\"\\\\b(RW(?:Buffer|ByteAddressBuffer|StructuredBuffer|Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture3D))\\\\b\",\"name\":\"support.type.object.rw.hlsl\"},{\"match\":\"\\\\b(LineStream|PointStream|TriangleStream)\\\\b\",\"name\":\"support.type.object.geometryshader.hlsl\"},{\"match\":\"\\\\b(sampler(?:|1D|2D|3D|CUBE|_state))\\\\b\",\"name\":\"support.type.sampler.legacy.hlsl\"},{\"match\":\"\\\\b(Sampler(?:State|ComparisonState))\\\\b\",\"name\":\"support.type.sampler.hlsl\"},{\"match\":\"\\\\b(texture(?:2D|CUBE))\\\\b\",\"name\":\"support.type.texture.legacy.hlsl\"},{\"match\":\"\\\\b(Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray))\\\\b\",\"name\":\"support.type.texture.hlsl\"},{\"match\":\"\\\\b(cbuffer|class|interface|namespace|struct|tbuffer)\\\\b\",\"name\":\"storage.type.structured.hlsl\"},{\"match\":\"\\\\b(FALSE|TRUE|NULL)\\\\b\",\"name\":\"support.constant.property-value.fx.hlsl\"},{\"match\":\"\\\\b(BlendState|DepthStencilState|RasterizerState)\\\\b\",\"name\":\"support.type.fx.hlsl\"},{\"match\":\"\\\\b(technique|Technique|technique10|technique11|pass)\\\\b\",\"name\":\"storage.type.fx.technique.hlsl\"},{\"match\":\"\\\\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\\\\b\",\"name\":\"meta.object-literal.key.fx.blendstate.hlsl\"},{\"match\":\"\\\\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\\\\b\",\"name\":\"meta.object-literal.key.fx.depthstencilstate.hlsl\"},{\"match\":\"\\\\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\\\\b\",\"name\":\"meta.object-literal.key.fx.rasterizerstate.hlsl\"},{\"match\":\"\\\\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\\\\b\",\"name\":\"meta.object-literal.key.fx.samplerstate.hlsl\"},{\"match\":\"\\\\b(?i:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\\\\b\",\"name\":\"support.constant.property-value.fx.blend.hlsl\"},{\"match\":\"\\\\b(?i:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\\\\b\",\"name\":\"support.constant.property-value.fx.blendop.hlsl\"},{\"match\":\"\\\\b(?i:ALL)\\\\b\",\"name\":\"support.constant.property-value.fx.depthwritemask.hlsl\"},{\"match\":\"\\\\b(?i:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\\\\b\",\"name\":\"support.constant.property-value.fx.comparisonfunc.hlsl\"},{\"match\":\"\\\\b(?i:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\\\\b\",\"name\":\"support.constant.property-value.fx.stencilop.hlsl\"},{\"match\":\"\\\\b(?i:WIREFRAME|SOLID)\\\\b\",\"name\":\"support.constant.property-value.fx.fillmode.hlsl\"},{\"match\":\"\\\\b(?i:NONE|FRONT|BACK)\\\\b\",\"name\":\"support.constant.property-value.fx.cullmode.hlsl\"},{\"match\":\"\\\\b(?i:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\\\\b\",\"name\":\"support.constant.property-value.fx.filter.hlsl\"},{\"match\":\"\\\\b(?i:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\\\\b\",\"name\":\"support.constant.property-value.fx.textureaddressmode.hlsl\"},{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.hlsl\",\"patterns\":[{\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.hlsl\"}]}],\"scopeName\":\"source.hlsl\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/html-derivative.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import html from './html.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HTML (Derivative)\",\"injections\":{\"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)\":{\"
|
|
3
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"HTML (Derivative)\",\"injections\":{\"R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)\":{\"patterns\":[{\"match\":\"<\",\"name\":\"invalid.illegal.bad-angle-bracket.html\"}]}},\"name\":\"html-derivative\",\"patterns\":[{\"include\":\"text.html.basic#core-minus-invalid\"},{\"begin\":\"(</?)(\\\\w[^\\\\s>]*)(?<!/)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"((?: ?/)?>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.tag.other.unrecognized.html.derivative\",\"patterns\":[{\"include\":\"text.html.basic#attribute\"}]}],\"scopeName\":\"text.html.derivative\",\"embeddedLangs\":[\"html\"]}"))
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...html,
|