@shikijs/langs 3.3.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.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/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/clarity.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/css.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fennel.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/gherkin.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/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.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.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.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/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/powershell.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/python.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/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.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/typescript.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/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/package.json +3 -3
package/dist/glimmer-js.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import typescript from './typescript.mjs'
|
|
|
3
3
|
import css from './css.mjs'
|
|
4
4
|
import html from './html.mjs'
|
|
5
5
|
|
|
6
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Glimmer JS\",\"injections\":{\"L:source.gjs -comment -(string -meta.embedded)\":{\"patterns\":[{\"include\":\"#main\"}]}},\"name\":\"glimmer-js\",\"patterns\":[{\"include\":\"#main\"},{\"include\":\"source.js\"}],\"repository\":{\"as-keyword\":{\"match\":\"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)\",\"name\":\"keyword.control\",\"patterns\":[]},\"as-params\":{\"begin\":\"(?<!\\\\|)(\\\\|)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.symbol.begin.ember-handlebars\"}},\"end\":\"(\\\\|)(?!\\\\|)\",\"endCaptures\":{\"1\":{\"name\":\"constant.other.symbol.end.ember-handlebars\"}},\"name\":\"keyword.block-params.ember-handlebars\",\"patterns\":[{\"include\":\"#variable\"}]},\"attention\":{\"match\":\"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\\\b\",\"name\":\"storage.type.class.${1:/downcase}\",\"patterns\":[]},\"boolean\":{\"captures\":{\"0\":{\"name\":\"string.regexp\"},\"1\":{\"name\":\"string.regexp\"},\"2\":{\"name\":\"string.regexp\"}},\"match\":\"true|false|undefined|null\",\"patterns\":[]},\"component-tag\":{\"begin\":\"(</?)(@|this.)?([-$.0-:A-Z_a-z]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"3\":{\"name\":\"entity.name.type\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"([$:@])\",\"name\":\"markup.bold\"}]}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"digit\":{\"captures\":{\"0\":{\"name\":\"constant.numeric\"},\"1\":{\"name\":\"constant.numeric\"},\"2\":{\"name\":\"constant.numeric\"}},\"match\":\"\\\\d*(\\\\.)?\\\\d+\",\"patterns\":[]},\"entities\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"},\"3\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"}},\"match\":\"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)\",\"name\":\"constant.character.entity.html.ember-handlebars\"},{\"match\":\"&\",\"name\":\"invalid.illegal.bad-ampersand.html.ember-handlebars\"}]},\"glimmer-argument\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars.argument\",\"patterns\":[{\"match\":\"(@)\",\"name\":\"markup.italic\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s(@[-.0-:A-Z_a-z]+)(=)?\"},\"glimmer-as-stuff\":{\"patterns\":[{\"include\":\"#as-keyword\"},{\"include\":\"#as-params\"}]},\"glimmer-block\":{\"begin\":\"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"(/)+\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-bools\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"string.regexp\"},\"3\":{\"name\":\"string.regexp\"},\"4\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-comment-block\":{\"begin\":\"\\\\{\\\\{!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"--}}\",\"name\":\"comment.block.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-comment-inline\":{\"begin\":\"\\\\{\\\\{!\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"}}\",\"name\":\"comment.inline.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-component-path\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(::|[$._])\"},\"glimmer-control-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"keyword.control\"}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-else-block\":{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"},\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"4\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"\\\\(+\",\"name\":\"string.regexp\"},{\"match\":\"\\\\)+\",\"name\":\"string.regexp\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"},{\"include\":\"#glimmer-supexp-content\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-expression-property\":{\"begin\":\"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"4\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.name.ember-handlebars\"},\"2\":{\"name\":\"punctuation.definition.expression.ember-handlebars\"}},\"match\":\"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)\",\"patterns\":[]},\"glimmer-parameter-value\":{\"captures\":{\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)\",\"patterns\":[]},\"glimmer-special-block\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(yield|outlet)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-subexp\":{\"begin\":\"(\\\\()([-.0-9@-Za-z]+)\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"keyword.control\"}},\"end\":\"(\\\\))\",\"name\":\"entity.subexpression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-supexp-content\":{\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"glimmer-unescaped-expression\":{\"begin\":\"\\\\{\\\\{\\\\{\",\"captures\":{\"0\":{\"name\":\"keyword.operator\"}},\"end\":\"}}}\",\"name\":\"entity.unescaped.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#glimmer-subexp\"},{\"include\":\"#param\"}]},\"html-attribute\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars\",\"patterns\":[{\"match\":\"(\\\\.\\\\.\\\\.attributes)\",\"name\":\"markup.bold\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s([-.0-:A-Z_a-z]+)(=)?\"},\"html-comment\":{\"begin\":\"<!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.html.ember-handlebars\"}},\"end\":\"--\\\\s*>\",\"name\":\"comment.block.html.ember-handlebars\",\"patterns\":[{\"include\":\"#attention\"},{\"match\":\"--\",\"name\":\"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars\"}]},\"html-tag\":{\"begin\":\"(</?)([-0-9a-z]+)(?![.:])\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"entity.name.tag.html.ember-handlebars\"}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"main\":{\"patterns\":[{\"begin\":\"\\\\s*(<)(template)\\\\s*(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithoutArgs\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"(<)(template)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithArgs\",\"patterns\":[{\"begin\":\"(?<=<template)\",\"end\":\"(?=>)\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},{\"begin\":\"(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.js\"}},\"contentName\":\"meta.html.embedded.block\",\"end\":\"(?=</template>)\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"\\\\b((?:\\\\w+\\\\.)*h(?:bs|tml)\\\\s*)(`)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.tagged-template.js\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.js\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(`)\",\"endCaptures\":{\"0\":{\"name\":\"string.js\"},\"1\":{\"name\":\"punctuation.definition.string.template.end.js\"}},\"patterns\":[{\"include\":\"source.ts#template-substitution-element\"},{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"((createTemplate|hbs|html))(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"((precompileTemplate)\\\\s*)(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"include\":\"source.ts#object-literal\"},{\"include\":\"source.ts\"}]}]},\"param\":{\"captures\":{\"0\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"(@|this.)([-.0-9A-Z_a-z]+)\",\"patterns\":[]},\"script\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(<)((?i:script))\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(/)((?i:script))(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"},\"3\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=/)\",\"patterns\":[{\"begin\":\"(>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.js-ignored-vscode\"}},\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=</(?i:script))\",\"name\":\"source.js\",\"patterns\":[{\"begin\":\"(^[\\\\t ]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.js\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"(?=</script)|\\\\n\",\"name\":\"comment.line.double-slash.js\"}]},{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"\\\\*/|(?=</script)\",\"name\":\"comment.block.js\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(?i:(?=type\\\\s*=\\\\s*([\\\"']|)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\\"'>\\\\s]))\",\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"text.html.basic\"}},\"patterns\":[{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:script))\",\"name\":\"text.html.basic\",\"patterns\":[{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(?=(?i:type))\",\"end\":\"(<)(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"}}},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]}]}]},\"string-double-quoted-handlebars\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-double-quoted-html\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"string-single-quoted-handlebars\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-single-quoted-html\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"style\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(?i)(<)(style)(?=\\\\s|/?>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(?i)((<)/)(style)\\\\s*(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.css-ignored-vscode\"},\"3\":{\"name\":\"entity.name.tag.html\"},\"4\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"(>)\",\"name\":\"meta.tag.metadata.style.start.html\",\"patterns\":[{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:style))\",\"name\":\"source.css\",\"patterns\":[{\"include\":\"source.css\"}]}]}]},\"tag-like-content\":{\"patterns\":[{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},\"variable\":{\"match\":\"\\\\b([-0-9A-Z_a-z]+)\\\\b\",\"name\":\"support.function\",\"patterns\":[]}},\"scopeName\":\"source.gjs\",\"embeddedLangs\":[\"javascript\",\"typescript\",\"css\",\"html\"],\"aliases\":[\"gjs\"]}"))
|
|
6
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Glimmer JS\",\"injections\":{\"L:source.gjs -comment -(string -meta.embedded)\":{\"patterns\":[{\"include\":\"#main\"}]}},\"name\":\"glimmer-js\",\"patterns\":[{\"include\":\"#main\"},{\"include\":\"source.js\"}],\"repository\":{\"as-keyword\":{\"match\":\"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)\",\"name\":\"keyword.control\",\"patterns\":[]},\"as-params\":{\"begin\":\"(?<!\\\\|)(\\\\|)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.symbol.begin.ember-handlebars\"}},\"end\":\"(\\\\|)(?!\\\\|)\",\"endCaptures\":{\"1\":{\"name\":\"constant.other.symbol.end.ember-handlebars\"}},\"name\":\"keyword.block-params.ember-handlebars\",\"patterns\":[{\"include\":\"#variable\"}]},\"attention\":{\"match\":\"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\\\b\",\"name\":\"storage.type.class.${1:/downcase}\",\"patterns\":[]},\"boolean\":{\"captures\":{\"0\":{\"name\":\"string.regexp\"},\"1\":{\"name\":\"string.regexp\"},\"2\":{\"name\":\"string.regexp\"}},\"match\":\"true|false|undefined|null\",\"patterns\":[]},\"component-tag\":{\"begin\":\"(</?)(@|this.)?([-$.0-:A-Z_a-z]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"3\":{\"name\":\"entity.name.type\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"([$:@])\",\"name\":\"markup.bold\"}]}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"digit\":{\"captures\":{\"0\":{\"name\":\"constant.numeric\"},\"1\":{\"name\":\"constant.numeric\"},\"2\":{\"name\":\"constant.numeric\"}},\"match\":\"\\\\d*(\\\\.)?\\\\d+\",\"patterns\":[]},\"entities\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"},\"3\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"}},\"match\":\"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)\",\"name\":\"constant.character.entity.html.ember-handlebars\"},{\"match\":\"&\",\"name\":\"invalid.illegal.bad-ampersand.html.ember-handlebars\"}]},\"glimmer-argument\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars.argument\",\"patterns\":[{\"match\":\"(@)\",\"name\":\"markup.italic\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s(@[-.0-:A-Z_a-z]+)(=)?\"},\"glimmer-as-stuff\":{\"patterns\":[{\"include\":\"#as-keyword\"},{\"include\":\"#as-params\"}]},\"glimmer-block\":{\"begin\":\"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"(/)+\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-bools\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"string.regexp\"},\"3\":{\"name\":\"string.regexp\"},\"4\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-comment-block\":{\"begin\":\"\\\\{\\\\{!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"--}}\",\"name\":\"comment.block.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-comment-inline\":{\"begin\":\"\\\\{\\\\{!\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"}}\",\"name\":\"comment.inline.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-component-path\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(::|[$._])\"},\"glimmer-control-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"keyword.control\"}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-else-block\":{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"},\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"4\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"\\\\(+\",\"name\":\"string.regexp\"},{\"match\":\"\\\\)+\",\"name\":\"string.regexp\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"},{\"include\":\"#glimmer-supexp-content\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-expression-property\":{\"begin\":\"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"4\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.name.ember-handlebars\"},\"2\":{\"name\":\"punctuation.definition.expression.ember-handlebars\"}},\"match\":\"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)\",\"patterns\":[]},\"glimmer-parameter-value\":{\"captures\":{\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)\",\"patterns\":[]},\"glimmer-special-block\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(yield|outlet)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-subexp\":{\"begin\":\"(\\\\()([-.0-9@-Za-z]+)\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"keyword.control\"}},\"end\":\"(\\\\))\",\"name\":\"entity.subexpression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-supexp-content\":{\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"glimmer-unescaped-expression\":{\"begin\":\"\\\\{\\\\{\\\\{\",\"captures\":{\"0\":{\"name\":\"keyword.operator\"}},\"end\":\"}}}\",\"name\":\"entity.unescaped.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#glimmer-subexp\"},{\"include\":\"#param\"}]},\"html-attribute\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars\",\"patterns\":[{\"match\":\"(\\\\.\\\\.\\\\.attributes)\",\"name\":\"markup.bold\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s([-.0-:A-Z_a-z]+)(=)?\"},\"html-comment\":{\"begin\":\"<!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.html.ember-handlebars\"}},\"end\":\"--\\\\s*>\",\"name\":\"comment.block.html.ember-handlebars\",\"patterns\":[{\"include\":\"#attention\"},{\"match\":\"--\",\"name\":\"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars\"}]},\"html-tag\":{\"begin\":\"(</?)([-0-9a-z]+)(?![.:])\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"entity.name.tag.html.ember-handlebars\"}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"main\":{\"patterns\":[{\"begin\":\"\\\\s*(<)(template)\\\\s*(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithoutArgs\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"(<)(template)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithArgs\",\"patterns\":[{\"begin\":\"(?<=<template)\",\"end\":\"(?=>)\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},{\"begin\":\"(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.js\"}},\"contentName\":\"meta.html.embedded.block\",\"end\":\"(?=</template>)\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"\\\\b((?:\\\\w+\\\\.)*h(?:bs|tml)\\\\s*)(`)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.tagged-template.js\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.js\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(`)\",\"endCaptures\":{\"0\":{\"name\":\"string.js\"},\"1\":{\"name\":\"punctuation.definition.string.template.end.js\"}},\"patterns\":[{\"include\":\"source.ts#template-substitution-element\"},{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"((createTemplate|hbs|html))(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"((precompileTemplate)\\\\s*)(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"include\":\"source.ts#object-literal\"},{\"include\":\"source.ts\"}]}]},\"param\":{\"captures\":{\"0\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"(@|this.)([-.0-9A-Z_a-z]+)\",\"patterns\":[]},\"script\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(<)((?i:script))\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(/)((?i:script))(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"},\"3\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=/)\",\"patterns\":[{\"begin\":\"(>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.js-ignored-vscode\"}},\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=</(?i:script))\",\"name\":\"source.js\",\"patterns\":[{\"begin\":\"(^[\\\\t ]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.js\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"(?=</script)|\\\\n\",\"name\":\"comment.line.double-slash.js\"}]},{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"\\\\*/|(?=</script)\",\"name\":\"comment.block.js\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(?i:(?=type\\\\s*=\\\\s*([\\\"']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\\"'>\\\\s]))\",\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"text.html.basic\"}},\"patterns\":[{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:script))\",\"name\":\"text.html.basic\",\"patterns\":[{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(?=(?i:type))\",\"end\":\"(<)(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"}}},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]}]}]},\"string-double-quoted-handlebars\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-double-quoted-html\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"string-single-quoted-handlebars\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-single-quoted-html\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"style\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(?i)(<)(style)(?=\\\\s|/?>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(?i)((<)/)(style)\\\\s*(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.css-ignored-vscode\"},\"3\":{\"name\":\"entity.name.tag.html\"},\"4\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"(>)\",\"name\":\"meta.tag.metadata.style.start.html\",\"patterns\":[{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:style))\",\"name\":\"source.css\",\"patterns\":[{\"include\":\"source.css\"}]}]}]},\"tag-like-content\":{\"patterns\":[{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},\"variable\":{\"match\":\"\\\\b([-0-9A-Z_a-z]+)\\\\b\",\"name\":\"support.function\",\"patterns\":[]}},\"scopeName\":\"source.gjs\",\"embeddedLangs\":[\"javascript\",\"typescript\",\"css\",\"html\"],\"aliases\":[\"gjs\"]}"))
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
...javascript,
|
package/dist/glimmer-ts.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import css from './css.mjs'
|
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
import html from './html.mjs'
|
|
5
5
|
|
|
6
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Glimmer TS\",\"injections\":{\"L:source.gts -comment -(string -meta.embedded)\":{\"patterns\":[{\"include\":\"#main\"}]}},\"name\":\"glimmer-ts\",\"patterns\":[{\"include\":\"#main\"},{\"include\":\"source.ts\"}],\"repository\":{\"as-keyword\":{\"match\":\"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)\",\"name\":\"keyword.control\",\"patterns\":[]},\"as-params\":{\"begin\":\"(?<!\\\\|)(\\\\|)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.symbol.begin.ember-handlebars\"}},\"end\":\"(\\\\|)(?!\\\\|)\",\"endCaptures\":{\"1\":{\"name\":\"constant.other.symbol.end.ember-handlebars\"}},\"name\":\"keyword.block-params.ember-handlebars\",\"patterns\":[{\"include\":\"#variable\"}]},\"attention\":{\"match\":\"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\\\b\",\"name\":\"storage.type.class.${1:/downcase}\",\"patterns\":[]},\"boolean\":{\"captures\":{\"0\":{\"name\":\"string.regexp\"},\"1\":{\"name\":\"string.regexp\"},\"2\":{\"name\":\"string.regexp\"}},\"match\":\"true|false|undefined|null\",\"patterns\":[]},\"component-tag\":{\"begin\":\"(</?)(@|this.)?([-$.0-:A-Z_a-z]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"3\":{\"name\":\"entity.name.type\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"([$:@])\",\"name\":\"markup.bold\"}]}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"digit\":{\"captures\":{\"0\":{\"name\":\"constant.numeric\"},\"1\":{\"name\":\"constant.numeric\"},\"2\":{\"name\":\"constant.numeric\"}},\"match\":\"\\\\d*(\\\\.)?\\\\d+\",\"patterns\":[]},\"entities\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"},\"3\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"}},\"match\":\"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)\",\"name\":\"constant.character.entity.html.ember-handlebars\"},{\"match\":\"&\",\"name\":\"invalid.illegal.bad-ampersand.html.ember-handlebars\"}]},\"glimmer-argument\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars.argument\",\"patterns\":[{\"match\":\"(@)\",\"name\":\"markup.italic\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s(@[-.0-:A-Z_a-z]+)(=)?\"},\"glimmer-as-stuff\":{\"patterns\":[{\"include\":\"#as-keyword\"},{\"include\":\"#as-params\"}]},\"glimmer-block\":{\"begin\":\"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"(/)+\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-bools\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"string.regexp\"},\"3\":{\"name\":\"string.regexp\"},\"4\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-comment-block\":{\"begin\":\"\\\\{\\\\{!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"--}}\",\"name\":\"comment.block.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-comment-inline\":{\"begin\":\"\\\\{\\\\{!\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"}}\",\"name\":\"comment.inline.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-component-path\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(::|[$._])\"},\"glimmer-control-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"keyword.control\"}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-else-block\":{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"},\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"4\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"\\\\(+\",\"name\":\"string.regexp\"},{\"match\":\"\\\\)+\",\"name\":\"string.regexp\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"},{\"include\":\"#glimmer-supexp-content\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-expression-property\":{\"begin\":\"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"4\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.name.ember-handlebars\"},\"2\":{\"name\":\"punctuation.definition.expression.ember-handlebars\"}},\"match\":\"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)\",\"patterns\":[]},\"glimmer-parameter-value\":{\"captures\":{\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)\",\"patterns\":[]},\"glimmer-special-block\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(yield|outlet)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-subexp\":{\"begin\":\"(\\\\()([-.0-9@-Za-z]+)\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"keyword.control\"}},\"end\":\"(\\\\))\",\"name\":\"entity.subexpression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-supexp-content\":{\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"glimmer-unescaped-expression\":{\"begin\":\"\\\\{\\\\{\\\\{\",\"captures\":{\"0\":{\"name\":\"keyword.operator\"}},\"end\":\"}}}\",\"name\":\"entity.unescaped.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#glimmer-subexp\"},{\"include\":\"#param\"}]},\"html-attribute\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars\",\"patterns\":[{\"match\":\"(\\\\.\\\\.\\\\.attributes)\",\"name\":\"markup.bold\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s([-.0-:A-Z_a-z]+)(=)?\"},\"html-comment\":{\"begin\":\"<!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.html.ember-handlebars\"}},\"end\":\"--\\\\s*>\",\"name\":\"comment.block.html.ember-handlebars\",\"patterns\":[{\"include\":\"#attention\"},{\"match\":\"--\",\"name\":\"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars\"}]},\"html-tag\":{\"begin\":\"(</?)([-0-9a-z]+)(?![.:])\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"entity.name.tag.html.ember-handlebars\"}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"main\":{\"patterns\":[{\"begin\":\"\\\\s*(<)(template)\\\\s*(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithoutArgs\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"(<)(template)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithArgs\",\"patterns\":[{\"begin\":\"(?<=<template)\",\"end\":\"(?=>)\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},{\"begin\":\"(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.js\"}},\"contentName\":\"meta.html.embedded.block\",\"end\":\"(?=</template>)\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"\\\\b((?:\\\\w+\\\\.)*h(?:bs|tml)\\\\s*)(`)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.tagged-template.js\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.js\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(`)\",\"endCaptures\":{\"0\":{\"name\":\"string.js\"},\"1\":{\"name\":\"punctuation.definition.string.template.end.js\"}},\"patterns\":[{\"include\":\"source.ts#template-substitution-element\"},{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"((createTemplate|hbs|html))(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"((precompileTemplate)\\\\s*)(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"include\":\"source.ts#object-literal\"},{\"include\":\"source.ts\"}]}]},\"param\":{\"captures\":{\"0\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"(@|this.)([-.0-9A-Z_a-z]+)\",\"patterns\":[]},\"script\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(<)((?i:script))\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(/)((?i:script))(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"},\"3\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=/)\",\"patterns\":[{\"begin\":\"(>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.js-ignored-vscode\"}},\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=</(?i:script))\",\"name\":\"source.js\",\"patterns\":[{\"begin\":\"(^[\\\\t ]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.js\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"(?=</script)|\\\\n\",\"name\":\"comment.line.double-slash.js\"}]},{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"\\\\*/|(?=</script)\",\"name\":\"comment.block.js\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(?i:(?=type\\\\s*=\\\\s*([\\\"']|)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\\"'>\\\\s]))\",\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"text.html.basic\"}},\"patterns\":[{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:script))\",\"name\":\"text.html.basic\",\"patterns\":[{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(?=(?i:type))\",\"end\":\"(<)(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"}}},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]}]}]},\"string-double-quoted-handlebars\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-double-quoted-html\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"string-single-quoted-handlebars\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-single-quoted-html\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"style\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(?i)(<)(style)(?=\\\\s|/?>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(?i)((<)/)(style)\\\\s*(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.css-ignored-vscode\"},\"3\":{\"name\":\"entity.name.tag.html\"},\"4\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"(>)\",\"name\":\"meta.tag.metadata.style.start.html\",\"patterns\":[{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:style))\",\"name\":\"source.css\",\"patterns\":[{\"include\":\"source.css\"}]}]}]},\"tag-like-content\":{\"patterns\":[{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},\"variable\":{\"match\":\"\\\\b([-0-9A-Z_a-z]+)\\\\b\",\"name\":\"support.function\",\"patterns\":[]}},\"scopeName\":\"source.gts\",\"embeddedLangs\":[\"typescript\",\"css\",\"javascript\",\"html\"],\"aliases\":[\"gts\"]}"))
|
|
6
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Glimmer TS\",\"injections\":{\"L:source.gts -comment -(string -meta.embedded)\":{\"patterns\":[{\"include\":\"#main\"}]}},\"name\":\"glimmer-ts\",\"patterns\":[{\"include\":\"#main\"},{\"include\":\"source.ts\"}],\"repository\":{\"as-keyword\":{\"match\":\"\\\\s\\\\b(as)\\\\b(?=\\\\s\\\\|)\",\"name\":\"keyword.control\",\"patterns\":[]},\"as-params\":{\"begin\":\"(?<!\\\\|)(\\\\|)\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.symbol.begin.ember-handlebars\"}},\"end\":\"(\\\\|)(?!\\\\|)\",\"endCaptures\":{\"1\":{\"name\":\"constant.other.symbol.end.ember-handlebars\"}},\"name\":\"keyword.block-params.ember-handlebars\",\"patterns\":[{\"include\":\"#variable\"}]},\"attention\":{\"match\":\"@?(TODO|FIXME|CHANGED|XXX|IDEA|HACK|NOTE|REVIEW|NB|BUG|QUESTION|TEMP)\\\\b\",\"name\":\"storage.type.class.${1:/downcase}\",\"patterns\":[]},\"boolean\":{\"captures\":{\"0\":{\"name\":\"string.regexp\"},\"1\":{\"name\":\"string.regexp\"},\"2\":{\"name\":\"string.regexp\"}},\"match\":\"true|false|undefined|null\",\"patterns\":[]},\"component-tag\":{\"begin\":\"(</?)(@|this.)?([-$.0-:A-Z_a-z]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"3\":{\"name\":\"entity.name.type\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"([$:@])\",\"name\":\"markup.bold\"}]}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"digit\":{\"captures\":{\"0\":{\"name\":\"constant.numeric\"},\"1\":{\"name\":\"constant.numeric\"},\"2\":{\"name\":\"constant.numeric\"}},\"match\":\"\\\\d*(\\\\.)?\\\\d+\",\"patterns\":[]},\"entities\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"},\"3\":{\"name\":\"punctuation.definition.entity.html.ember-handlebars\"}},\"match\":\"(&)([0-9A-Za-z]+|#[0-9]+|#x\\\\h+)(;)\",\"name\":\"constant.character.entity.html.ember-handlebars\"},{\"match\":\"&\",\"name\":\"invalid.illegal.bad-ampersand.html.ember-handlebars\"}]},\"glimmer-argument\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars.argument\",\"patterns\":[{\"match\":\"(@)\",\"name\":\"markup.italic\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s(@[-.0-:A-Z_a-z]+)(=)?\"},\"glimmer-as-stuff\":{\"patterns\":[{\"include\":\"#as-keyword\"},{\"include\":\"#as-params\"}]},\"glimmer-block\":{\"begin\":\"(\\\\{\\\\{~?)([#/])(([$\\\\--9@-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-component-path\"},{\"match\":\"(/)+\",\"name\":\"punctuation.definition.tag\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-bools\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"string.regexp\"},\"3\":{\"name\":\"string.regexp\"},\"4\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(true|false|null|undefined|\\\\d*(\\\\.)?\\\\d+)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-comment-block\":{\"begin\":\"\\\\{\\\\{!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"--}}\",\"name\":\"comment.block.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-comment-inline\":{\"begin\":\"\\\\{\\\\{!\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.block.comment.glimmer\"}},\"end\":\"}}\",\"name\":\"comment.inline.glimmer\",\"patterns\":[{\"include\":\"#script\"},{\"include\":\"#attention\"}]},\"glimmer-component-path\":{\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(::|[$._])\"},\"glimmer-control-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-/-9A-Z_a-z]+)\\\\s)\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"keyword.control\"}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-else-block\":{\"captures\":{\"0\":{\"name\":\"punctuation.definition.tag\"},\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.control\",\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"4\":{\"name\":\"punctuation.definition.tag\"}},\"match\":\"(\\\\{\\\\{~?)(else(?:\\\\s[a-z]+\\\\s|))([\\\\x08().0-9@-Za-z\\\\s]+)?(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-expression\":{\"begin\":\"(\\\\{\\\\{~?)(([-().0-9@-Z_a-z\\\\s]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"\\\\(+\",\"name\":\"string.regexp\"},{\"match\":\"\\\\)+\",\"name\":\"string.regexp\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"},{\"include\":\"#glimmer-supexp-content\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-expression-property\":{\"begin\":\"(\\\\{\\\\{~?)((@|this.)([-.0-9A-Z_a-z]+))\",\"captures\":{\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.operator\"},\"3\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"4\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"end\":\"(~?}})\",\"name\":\"entity.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-parameter-name\":{\"captures\":{\"1\":{\"name\":\"variable.parameter.name.ember-handlebars\"},\"2\":{\"name\":\"punctuation.definition.expression.ember-handlebars\"}},\"match\":\"\\\\b([-0-9A-Z_a-z]+)(\\\\s?=)\",\"patterns\":[]},\"glimmer-parameter-value\":{\"captures\":{\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"\\\\b([-.0-:A-Z_a-z]+)\\\\b(?!=)\",\"patterns\":[]},\"glimmer-special-block\":{\"captures\":{\"0\":{\"name\":\"keyword.operator\"},\"1\":{\"name\":\"keyword.operator\"},\"2\":{\"name\":\"keyword.control\"},\"3\":{\"name\":\"keyword.operator\"}},\"match\":\"(\\\\{\\\\{~?)(yield|outlet)(~?}})\",\"name\":\"entity.expression.ember-handlebars\"},\"glimmer-subexp\":{\"begin\":\"(\\\\()([-.0-9@-Za-z]+)\",\"captures\":{\"1\":{\"name\":\"keyword.other\"},\"2\":{\"name\":\"keyword.control\"}},\"end\":\"(\\\\))\",\"name\":\"entity.subexpression.ember-handlebars\",\"patterns\":[{\"include\":\"#glimmer-supexp-content\"}]},\"glimmer-supexp-content\":{\"patterns\":[{\"include\":\"#glimmer-subexp\"},{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#param\"},{\"include\":\"#glimmer-parameter-name\"},{\"include\":\"#glimmer-parameter-value\"}]},\"glimmer-unescaped-expression\":{\"begin\":\"\\\\{\\\\{\\\\{\",\"captures\":{\"0\":{\"name\":\"keyword.operator\"}},\"end\":\"}}}\",\"name\":\"entity.unescaped.expression.ember-handlebars\",\"patterns\":[{\"include\":\"#string-single-quoted-handlebars\"},{\"include\":\"#string-double-quoted-handlebars\"},{\"include\":\"#glimmer-subexp\"},{\"include\":\"#param\"}]},\"html-attribute\":{\"captures\":{\"1\":{\"name\":\"entity.other.attribute-name.ember-handlebars\",\"patterns\":[{\"match\":\"(\\\\.\\\\.\\\\.attributes)\",\"name\":\"markup.bold\"}]},\"2\":{\"name\":\"punctuation.separator.key-value.html.ember-handlebars\"}},\"match\":\"\\\\s([-.0-:A-Z_a-z]+)(=)?\"},\"html-comment\":{\"begin\":\"<!--\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.html.ember-handlebars\"}},\"end\":\"--\\\\s*>\",\"name\":\"comment.block.html.ember-handlebars\",\"patterns\":[{\"include\":\"#attention\"},{\"match\":\"--\",\"name\":\"invalid.illegal.bad-comments-or-CDATA.html.ember-handlebars\"}]},\"html-tag\":{\"begin\":\"(</?)([-0-9a-z]+)(?![.:])\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"entity.name.tag.html.ember-handlebars\"}},\"end\":\"(/?)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag\"},\"2\":{\"name\":\"punctuation.definition.tag\"}},\"name\":\"meta.tag.any.ember-handlebars\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},\"main\":{\"patterns\":[{\"begin\":\"\\\\s*(<)(template)\\\\s*(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithoutArgs\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"(<)(template)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"}},\"end\":\"(</)(template)(>)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.html\"},\"2\":{\"name\":\"entity.name.tag.other.html\"},\"3\":{\"name\":\"punctuation.definition.tag.html\"}},\"name\":\"meta.js.embeddedTemplateWithArgs\",\"patterns\":[{\"begin\":\"(?<=<template)\",\"end\":\"(?=>)\",\"patterns\":[{\"include\":\"#tag-like-content\"}]},{\"begin\":\"(>)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.js\"}},\"contentName\":\"meta.html.embedded.block\",\"end\":\"(?=</template>)\",\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"\\\\b((?:\\\\w+\\\\.)*h(?:bs|tml)\\\\s*)(`)\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.tagged-template.js\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.js\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(`)\",\"endCaptures\":{\"0\":{\"name\":\"string.js\"},\"1\":{\"name\":\"punctuation.definition.string.template.end.js\"}},\"patterns\":[{\"include\":\"source.ts#template-substitution-element\"},{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"begin\":\"((createTemplate|hbs|html))(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]}]},{\"begin\":\"((precompileTemplate)\\\\s*)(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.ts\"},\"2\":{\"name\":\"meta.function-call.ts\"},\"3\":{\"name\":\"meta.brace.round.ts\"}},\"end\":\"(\\\\))\",\"endCaptures\":{\"1\":{\"name\":\"meta.brace.round.ts\"}},\"patterns\":[{\"begin\":\"(([\\\"'`]))\",\"beginCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.begin.ts\"}},\"contentName\":\"meta.embedded.block.html\",\"end\":\"(([\\\"'`]))\",\"endCaptures\":{\"1\":{\"name\":\"string.template.ts\"},\"2\":{\"name\":\"punctuation.definition.string.template.end.ts\"}},\"patterns\":[{\"include\":\"#style\"},{\"include\":\"#script\"},{\"include\":\"#glimmer-else-block\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-special-block\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#html-tag\"},{\"include\":\"#component-tag\"},{\"include\":\"#html-comment\"},{\"include\":\"#entities\"}]},{\"include\":\"source.ts#object-literal\"},{\"include\":\"source.ts\"}]}]},\"param\":{\"captures\":{\"0\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(@|this)\",\"name\":\"variable.language\"},{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]},\"1\":{\"name\":\"support.function\",\"patterns\":[{\"match\":\"(\\\\.)+\",\"name\":\"punctuation.definition.tag\"}]}},\"match\":\"(@|this.)([-.0-9A-Z_a-z]+)\",\"patterns\":[]},\"script\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:script)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(<)((?i:script))\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(/)((?i:script))(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"},\"3\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=/)\",\"patterns\":[{\"begin\":\"(>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.js-ignored-vscode\"}},\"patterns\":[{\"begin\":\"\\\\G\",\"end\":\"(?=</(?i:script))\",\"name\":\"source.js\",\"patterns\":[{\"begin\":\"(^[\\\\t ]+)?(?=//)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.comment.leading.js\"}},\"end\":\"(?!\\\\G)\",\"patterns\":[{\"begin\":\"//\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"(?=</script)|\\\\n\",\"name\":\"comment.line.double-slash.js\"}]},{\"begin\":\"/\\\\*\",\"captures\":{\"0\":{\"name\":\"punctuation.definition.comment.js\"}},\"end\":\"\\\\*/|(?=</script)\",\"name\":\"comment.block.js\"},{\"include\":\"source.js\"}]}]},{\"begin\":\"(?i:(?=type\\\\s*=\\\\s*([\\\"']?)text/(x-handlebars|(x-(handlebars-)?|ng-)?template|html)[\\\"'>\\\\s]))\",\"end\":\"((<))(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"text.html.basic\"}},\"patterns\":[{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:script))\",\"name\":\"text.html.basic\",\"patterns\":[{\"include\":\"text.html.basic\"}]}]},{\"begin\":\"(?=(?i:type))\",\"end\":\"(<)(?=/(?i:script))\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.script.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"}}},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]}]}]},\"string-double-quoted-handlebars\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-double-quoted-html\":{\"begin\":\"\\\"\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"\\\"\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.double.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\\\\"\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"string-single-quoted-handlebars\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"}]},\"string-single-quoted-html\":{\"begin\":\"'\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.begin.ember-handlebars\"}},\"end\":\"'\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.ember-handlebars\"}},\"name\":\"string.quoted.single.html.ember-handlebars\",\"patterns\":[{\"match\":\"\\\\\\\\'\",\"name\":\"constant.character.escape.ember-handlebars\"},{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"}]},\"style\":{\"begin\":\"(^[\\\\t ]+)?(?=<(?i:style)\\\\b(?!-))\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.leading.html\"}},\"end\":\"(?!\\\\G)([\\\\t ]*$\\\\n?)?\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.whitespace.embedded.trailing.html\"}},\"patterns\":[{\"begin\":\"(?i)(<)(style)(?=\\\\s|/?>)\",\"beginCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.start.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"entity.name.tag.html\"}},\"end\":\"(?i)((<)/)(style)\\\\s*(>)\",\"endCaptures\":{\"0\":{\"name\":\"meta.tag.metadata.style.end.html\"},\"1\":{\"name\":\"punctuation.definition.tag.begin.html\"},\"2\":{\"name\":\"source.css-ignored-vscode\"},\"3\":{\"name\":\"entity.name.tag.html\"},\"4\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"name\":\"meta.embedded.block.html\",\"patterns\":[{\"begin\":\"\\\\G\",\"captures\":{\"1\":{\"name\":\"punctuation.definition.tag.end.html\"}},\"end\":\"(>)\",\"name\":\"meta.tag.metadata.style.start.html\",\"patterns\":[{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},{\"begin\":\"(?!\\\\G)\",\"end\":\"(?=</(?i:style))\",\"name\":\"source.css\",\"patterns\":[{\"include\":\"source.css\"}]}]}]},\"tag-like-content\":{\"patterns\":[{\"include\":\"#glimmer-bools\"},{\"include\":\"#glimmer-unescaped-expression\"},{\"include\":\"#glimmer-comment-block\"},{\"include\":\"#glimmer-comment-inline\"},{\"include\":\"#glimmer-expression-property\"},{\"include\":\"#boolean\"},{\"include\":\"#digit\"},{\"include\":\"#glimmer-control-expression\"},{\"include\":\"#glimmer-expression\"},{\"include\":\"#glimmer-block\"},{\"include\":\"#string-double-quoted-html\"},{\"include\":\"#string-single-quoted-html\"},{\"include\":\"#glimmer-as-stuff\"},{\"include\":\"#glimmer-argument\"},{\"include\":\"#html-attribute\"}]},\"variable\":{\"match\":\"\\\\b([-0-9A-Z_a-z]+)\\\\b\",\"name\":\"support.function\",\"patterns\":[]}},\"scopeName\":\"source.gts\",\"embeddedLangs\":[\"typescript\",\"css\",\"javascript\",\"html\"],\"aliases\":[\"gts\"]}"))
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
...typescript,
|
package/dist/glsl.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import c from './c.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"GLSL\",\"fileTypes\":[\"vs\",\"fs\",\"gs\",\"vsh\",\"fsh\",\"gsh\",\"vshader\",\"fshader\",\"gshader\",\"vert\",\"frag\",\"geom\",\"f.glsl\",\"v.glsl\",\"g.glsl\"],\"foldingStartMarker\":\"/\\\\*\\\\*|\\\\{\\\\s*$\",\"foldingStopMarker\":\"\\\\*\\\\*/|^\\\\s*}\",\"name\":\"glsl\",\"patterns\":[{\"match\":\"\\\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\\\b\",\"name\":\"keyword.control.glsl\"},{\"match\":\"\\\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|
|
|
3
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"GLSL\",\"fileTypes\":[\"vs\",\"fs\",\"gs\",\"vsh\",\"fsh\",\"gsh\",\"vshader\",\"fshader\",\"gshader\",\"vert\",\"frag\",\"geom\",\"f.glsl\",\"v.glsl\",\"g.glsl\"],\"foldingStartMarker\":\"/\\\\*\\\\*|\\\\{\\\\s*$\",\"foldingStopMarker\":\"\\\\*\\\\*/|^\\\\s*}\",\"name\":\"glsl\",\"patterns\":[{\"match\":\"\\\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\\\b\",\"name\":\"keyword.control.glsl\"},{\"match\":\"\\\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec3|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[123|]D|samplerCube|sampler2DRect|sampler[12|]DShadow|sampler2DRectShadow|sampler[12|]DArray|sampler[12|]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[123|]D|isamplerCube|isampler2DRect|isampler[12|]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[123|]D|usamplerCube|usampler2DRect|usampler[12|]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\\\b\",\"name\":\"storage.type.glsl\"},{\"match\":\"\\\\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\\\\b\",\"name\":\"storage.modifier.glsl\"},{\"match\":\"\\\\b(gl_(?:BackColor|BackLightModelProduct|BackLightProduct|BackMaterial|BackSecondaryColor|ClipDistance|ClipPlane|ClipVertex|Color|DepthRange|DepthRangeParameters|EyePlaneQ|EyePlaneR|EyePlaneS|EyePlaneT|Fog|FogCoord|FogFragCoord|FogParameters|FragColor|FragCoord|FragDat|FragDept|FrontColor|FrontFacing|FrontLightModelProduct|FrontLightProduct|FrontMaterial|FrontSecondaryColor|InstanceID|Layer|LightModel|LightModelParameters|LightModelProducts|LightProducts|LightSource|LightSourceParameters|MaterialParameters|ModelViewMatrix|ModelViewMatrixInverse|ModelViewMatrixInverseTranspose|ModelViewMatrixTranspose|ModelViewProjectionMatrix|ModelViewProjectionMatrixInverse|ModelViewProjectionMatrixInverseTranspose|ModelViewProjectionMatrixTranspose|MultiTexCoord[0-7]|Normal|NormalMatrix|NormalScale|ObjectPlaneQ|ObjectPlaneR|ObjectPlaneS|ObjectPlaneT|Point|PointCoord|PointParameters|PointSize|Position|PrimitiveIDIn|ProjectionMatrix|ProjectionMatrixInverse|ProjectionMatrixInverseTranspose|ProjectionMatrixTranspose|SecondaryColor|TexCoord|TextureEnvColor|TextureMatrix|TextureMatrixInverse|TextureMatrixInverseTranspose|TextureMatrixTranspose|Vertex|VertexIDh))\\\\b\",\"name\":\"support.variable.glsl\"},{\"match\":\"\\\\b(gl_Max(?:ClipPlane|CombinedTextureImageUnit|DrawBuffer|FragmentUniformComponent|Light|TextureCoord|TextureImageUnit|TextureUnit|VaryingFloat|VertexAttrib|VertexTextureImageUnit|VertexUniformComponent)s)\\\\b\",\"name\":\"support.constant.glsl\"},{\"match\":\"\\\\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp2??|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log2??|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\\\\b\",\"name\":\"support.function.glsl\"},{\"match\":\"\\\\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\\\\b\",\"name\":\"invalid.illegal.glsl\"},{\"include\":\"source.c\"}],\"scopeName\":\"source.glsl\",\"embeddedLangs\":[\"c\"]}"))
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...c,
|
package/dist/gnuplot.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Gnuplot\",\"fileTypes\":[\"gp\",\"plt\",\"plot\",\"gnuplot\"],\"name\":\"gnuplot\",\"patterns\":[{\"match\":\"(\\\\\\\\(?!\\\\n).*)\",\"name\":\"invalid.illegal.backslash.gnuplot\"},{\"match\":\"(;)\",\"name\":\"punctuation.separator.statement.gnuplot\"},{\"include\":\"#LineComment\"},{\"include\":\"#DataBlock\"},{\"include\":\"#MacroExpansion\"},{\"include\":\"#VariableDecl\"},{\"include\":\"#ArrayDecl\"},{\"include\":\"#FunctionDecl\"},{\"include\":\"#ShellCommand\"},{\"include\":\"#Command\"}],\"repository\":{\"ArrayDecl\":{\"begin\":\"\\\\b(array)\\\\s+([A-Z_a-z]\\\\w*)?\",\"beginCaptures\":{\"1\":{\"name\":\"support.type.array.gnuplot\"},\"2\":{\"name\":\"entity.name.variable.gnuplot\",\"patterns\":[{\"include\":\"#InvalidVariableDecl\"},{\"include\":\"#BuiltinVariable\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.variable.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"BuiltinFunction\":{\"patterns\":[{\"match\":\"\\\\bdefined\\\\b\",\"name\":\"invalid.deprecated.function.gnuplot\"},{\"match\":\"\\\\b(?:abs|acos|acosh|airy|arg|asin|asinh|atan|atan2|atanh|EllipticK|EllipticE|EllipticPi|besj0|besj1|besy0|besy1|ceil|cos|cosh|erf|erfc|exp|expint|floor|gamma|ibeta|inverf|igamma|imag|invnorm|int|lambertw|lgamma|log|log10|norm|rand|real|sgn|sin|sinh|sqrt|tan|tanh|voigt|cerf|cdawson|faddeeva|erfi|VP)\\\\b\",\"name\":\"support.function.math.gnuplot\"},{\"match\":\"\\\\b(?:gprintf|sprintf|strlen|strstrt|substr|strftime|strptime|system|word|words)\\\\b\",\"name\":\"support.function.string.gnuplot\"},{\"match\":\"\\\\b(?:column|columnhead|exists|hsv2rgb|stringcolumn|timecolumn|tm_hour|tm_mday|tm_min|tm_mon|tm_sec|tm_wday|tm_yday|tm_year|time|valid|value)\\\\b\",\"name\":\"support.function.other.gnuplot\"}]},\"BuiltinOperator\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.gnuplot\"},{\"match\":\"(<<|>>|[\\\\&^|])\",\"name\":\"keyword.operator.bitwise.gnuplot\"},{\"match\":\"(==|!=|<=|<|>=|>)\",\"name\":\"keyword.operator.comparison.gnuplot\"},{\"match\":\"(=)\",\"name\":\"keyword.operator.assignment.gnuplot\"},{\"match\":\"([-!+~])\",\"name\":\"keyword.operator.arithmetic.gnuplot\"},{\"match\":\"(\\\\*\\\\*|[-%*+/])\",\"name\":\"keyword.operator.arithmetic.gnuplot\"},{\"captures\":{\"2\":{\"name\":\"keyword.operator.word.gnuplot\"}},\"match\":\"(\\\\.|\\\\b(eq|ne)\\\\b)\",\"name\":\"keyword.operator.strings.gnuplot\"}]},\"BuiltinVariable\":{\"patterns\":[{\"match\":\"\\\\bFIT_(?:LIMIT|MAXITER|START_LAMBDA|LAMBDA_FACTOR|SKIP|INDEX)\\\\b\",\"name\":\"invalid.deprecated.variable.gnuplot\"},{\"match\":\"\\\\b(GPVAL_\\\\w*|MOUSE_\\\\w*)\\\\b\",\"name\":\"support.constant.gnuplot\"},{\"match\":\"\\\\b(ARG[0-9C]|GPFUN_\\\\w*|FIT_\\\\w*|STATS_\\\\w*|pi|NaN)\\\\b\",\"name\":\"support.variable.gnuplot\"}]},\"ColumnIndexLiteral\":{\"match\":\"(\\\\$[0-9]+)\\\\b\",\"name\":\"support.constant.columnindex.gnuplot\"},\"Command\":{\"patterns\":[{\"begin\":\"\\\\bupdate\\\\b\",\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"invalid.deprecated.command.gnuplot\"},{\"begin\":\"\\\\b(?:break|clear|continue|pwd|refresh|replot|reread|shell)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(?:cd|call|eval|exit|help|history|load|lower|pause|print|printerr|quit|raise|save|stats|system|test|toggle)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(import)\\\\s(.+)\\\\s(from)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#FunctionDecl\"}]},\"3\":{\"name\":\"keyword.control.import.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#SingleQuotedStringLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(reset)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"\\\\b(bind|error(state)?|session)\\\\b\",\"name\":\"support.class.reset.gnuplot\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(undefine)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#BuiltinVariable\"},{\"include\":\"#BuiltinFunction\"},{\"match\":\"(?<=\\\\s)(\\\\$?[A-Z_a-z]\\\\w*\\\\*?)(?=\\\\s)\",\"name\":\"source.gnuplot\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(if|while)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(else)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\"},{\"begin\":\"\\\\b(do)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ForIterationExpr\"}]},{\"begin\":\"\\\\b(set)(?=\\\\s+pm3d)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"\\\\b(hidden3d|map|transparent|solid)\\\\b\",\"name\":\"invalid.deprecated.options.gnuplot\"},{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b((un)?set)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(show)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ExtraShowOptions\"},{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(fit|(s)?plot)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ColumnIndexLiteral\"},{\"include\":\"#PlotModifiers\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]}]},\"DataBlock\":{\"begin\":\"(\\\\$[A-Z_a-z]\\\\w*)\\\\s*(<<)\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(#|$))\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"include\":\"#SpecialVariable\"}]},\"3\":{\"name\":\"constant.language.datablock.gnuplot\"}},\"end\":\"^(\\\\3)\\\\b(.*)\",\"endCaptures\":{\"1\":{\"name\":\"constant.language.datablock.gnuplot\"},\"2\":{\"name\":\"invalid.illegal.datablock.gnuplot\"}},\"name\":\"meta.datablock.gnuplot\",\"patterns\":[{\"include\":\"#LineComment\"},{\"include\":\"#NumberLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"}]},\"DeprecatedScriptArgsLiteral\":{\"match\":\"(\\\\$[#0-9])\",\"name\":\"invalid.illegal.scriptargs.gnuplot\"},\"DoubleQuotedStringLiteral\":{\"begin\":\"(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((\\\")|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.quoted.double.gnuplot\",\"patterns\":[{\"include\":\"#EscapedChar\"},{\"include\":\"#RGBColorSpec\"},{\"include\":\"#DeprecatedScriptArgsLiteral\"},{\"include\":\"#InterpolatedStringLiteral\"}]},\"EscapedChar\":{\"match\":\"(\\\\\\\\.)\",\"name\":\"constant.character.escape.gnuplot\"},\"Expression\":{\"patterns\":[{\"include\":\"#Literal\"},{\"include\":\"#SpecialVariable\"},{\"include\":\"#BuiltinVariable\"},{\"include\":\"#BuiltinOperator\"},{\"include\":\"#TernaryExpr\"},{\"include\":\"#FunctionCallExpr\"},{\"include\":\"#SummationExpr\"}]},\"ExtraShowOptions\":{\"match\":\"\\\\b(?:all|bind|colornames|functions|plot|variables|version)\\\\b\",\"name\":\"support.class.options.gnuplot\"},\"ForIterationExpr\":{\"begin\":\"\\\\b(for)\\\\s*(\\\\[)\\\\s*(?:([A-Z_a-z]\\\\w*)\\\\s+(in)\\\\b)?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]},\"3\":{\"name\":\"variable.other.iterator.gnuplot\"},\"4\":{\"name\":\"keyword.control.flow.gnuplot\"}},\"end\":\"((])|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"patterns\":[{\"include\":\"#Expression\"},{\"include\":\"#RangeSeparators\"}]},\"FunctionCallExpr\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"variable.function.gnuplot\",\"patterns\":[{\"include\":\"#BuiltinFunction\"}]},\"2\":{\"name\":\"punctuation.definition.arguments.begin.gnuplot\"}},\"end\":\"((\\\\))|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"name\":\"punctuation.definition.arguments.end.gnuplot\"}},\"name\":\"meta.function-call.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"FunctionDecl\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*((\\\\()\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?:(,)\\\\s*([A-Z_a-z]\\\\w*)\\\\s*)*(\\\\)))\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.gnuplot\",\"patterns\":[{\"include\":\"#BuiltinFunction\"}]},\"2\":{\"name\":\"meta.function.parameters.gnuplot\"},\"3\":{\"name\":\"punctuation.definition.parameters.begin.gnuplot\"},\"4\":{\"name\":\"variable.parameter.function.language.gnuplot\"},\"5\":{\"name\":\"punctuation.separator.parameters.gnuplot\"},\"6\":{\"name\":\"variable.parameter.function.language.gnuplot\"},\"7\":{\"name\":\"punctuation.definition.parameters.end.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.function.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"InterpolatedStringLiteral\":{\"begin\":\"(`)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((`)|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.interpolated.gnuplot\",\"patterns\":[{\"include\":\"#EscapedChar\"}]},\"InvalidVariableDecl\":{\"match\":\"\\\\b(GPVAL_\\\\w*|MOUSE_\\\\w*)\\\\b\",\"name\":\"invalid.illegal.variable.gnuplot\"},\"InvalidWord\":{\"match\":\"([^#;\\\\\\\\\\\\s]+)\",\"name\":\"invalid.illegal.gnuplot\"},\"LineComment\":{\"begin\":\"(#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.begin.gnuplot\"}},\"end\":\"(?=(?<!\\\\\\\\)\\\\n$)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.gnuplot\"}},\"name\":\"comment.line.number-sign.gnuplot\"},\"Literal\":{\"patterns\":[{\"include\":\"#NumberLiteral\"},{\"include\":\"#DeprecatedScriptArgsLiteral\"},{\"include\":\"#SingleQuotedStringLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"},{\"include\":\"#InterpolatedStringLiteral\"}]},\"MacroExpansion\":{\"begin\":\"(@[A-Z_a-z]\\\\w*)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"include\":\"#SpecialVariable\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},\"NumberLiteral\":{\"patterns\":[{\"match\":\"((\\\\b([0-9]+)|(?<!\\\\d)))(\\\\.[0-9]+)([Ee][-+]?[0-9]+)?(cm|in)?\\\\b\",\"name\":\"constant.numeric.float.gnuplot\"},{\"match\":\"\\\\b([0-9]+)((([Ee][-+]?[0-9]+))\\\\b|(\\\\.([Ee][-+]?[0-9]+\\\\b)?))((?:cm|in)\\\\b)?\",\"name\":\"constant.numeric.float.gnuplot\"},{\"match\":\"\\\\b(0[Xx]\\\\h+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.hex.gnuplot\"},{\"match\":\"\\\\b(0+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.dec.gnuplot\"},{\"match\":\"\\\\b(0[0-7]+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.oct.gnuplot\"},{\"match\":\"\\\\b(0[0-9]+)(cm|in)?\\\\b\",\"name\":\"invalid.illegal.oct.gnuplot\"},{\"match\":\"\\\\b([0-9]+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.dec.gnuplot\"}]},\"PlotModifiers\":{\"patterns\":[{\"match\":\"\\\\b(thru)\\\\b\",\"name\":\"invalid.deprecated.plot.gnuplot\"},{\"match\":\"\\\\b(?:in(dex)?|every|us(ing)?|wi(th)?|via)\\\\b\",\"name\":\"storage.type.plot.gnuplot\"},{\"match\":\"\\\\b(newhist(ogram)?)\\\\b\",\"name\":\"storage.type.plot.gnuplot\"}]},\"RGBColorSpec\":{\"match\":\"\\\\G(0x|#)((\\\\h{6})|(\\\\h{8}))\\\\b\",\"name\":\"constant.other.placeholder.gnuplot\"},\"RangeSeparators\":{\"patterns\":[{\"match\":\"(\\\\[)\",\"name\":\"punctuation.section.brackets.begin.gnuplot\"},{\"match\":\"(:)\",\"name\":\"punctuation.separator.range.gnuplot\"},{\"match\":\"(])\",\"name\":\"punctuation.section.brackets.end.gnuplot\"}]},\"SetUnsetOptions\":{\"patterns\":[{\"match\":\"\\\\G\\\\s*\\\\b(?:clabel|data|function|historysize|macros|ticslevel|ticscale|(style\\\\s+increment\\\\s+\\\\w+))\\\\b\",\"name\":\"invalid.deprecated.options.gnuplot\"},{\"match\":\"\\\\G\\\\s*\\\\b(?:angles|arrow|autoscale|border|boxwidth|clip|cntr(label|param)|color(box|sequence)?|contour|(dash|line)type|datafile|decimal(sign)?|dgrid3d|dummy|encoding|(error)?bars|fit|fontpath|format|grid|hidden3d|history|(iso)?samples|jitter|key|label|link|loadpath|locale|logscale|mapping|[blrt]margin|margins|micro|minus(sign)?|mono(chrome)?|mouse|multiplot|nonlinear|object|offsets|origin|output|parametric|([pr])axis|pm3d|palette|pointintervalbox|pointsize|polar|print|psdir|size|style|surface|table|terminal|termoption|theta|tics|timestamp|timefmt|title|view|xyplane|zero|(no)?(m)?(x|x2|y|y2|z|cb|[rt])tics|(x|x2|y|y2|z|cb)data|(x|x2|y|y2|z|cb|r)label|(x|x2|y|y2|z|cb)dtics|(x|x2|y|y2|z|cb)mtics|(x|x2|y|y2|z|cb|[rtuv])range|(x|x2|y|y2|z)?zeroaxis)\\\\b\",\"name\":\"support.class.options.gnuplot\"}]},\"ShellCommand\":{\"begin\":\"(!)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.shell.gnuplot\"}},\"end\":\"(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"([^#]|\\\\\\\\(?=\\\\n))\",\"name\":\"string.unquoted\"}]},\"SingleQuotedStringLiteral\":{\"begin\":\"(')\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((')(?!')|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.quoted.single.gnuplot\",\"patterns\":[{\"include\":\"#RGBColorSpec\"},{\"match\":\"('')\",\"name\":\"constant.character.escape.gnuplot\"}]},\"SpecialVariable\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.language.wildcard.gnuplot\"}},\"match\":\"(?<=[:=\\\\[])\\\\s*(\\\\*)\\\\s*(?=[]:])\"},{\"captures\":{\"2\":{\"name\":\"punctuation.definition.variable.gnuplot\"}},\"match\":\"(([$@])[A-Z_a-z]\\\\w*)\\\\b\",\"name\":\"constant.language.special.gnuplot\"}]},\"SummationExpr\":{\"begin\":\"\\\\b(sum)\\\\s*(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.sum.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"end\":\"((])|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"patterns\":[{\"include\":\"#Expression\"},{\"include\":\"#RangeSeparators\"}]},\"TernaryExpr\":{\"begin\":\"(?<!\\\\?)(\\\\?)(?!\\\\?)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.ternary.gnuplot\"}},\"end\":\"((?<!:)(:)(?!:)|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"name\":\"keyword.operator.ternary.gnuplot\"}},\"patterns\":[{\"include\":\"#Expression\"}]},\"VariableDecl\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(?:(\\\\[)\\\\s*(.*)\\\\s*(])\\\\s*)?(?=(=)(?!\\\\s*=))\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.variable.gnuplot\",\"patterns\":[{\"include\":\"#InvalidVariableDecl\"},{\"include\":\"#BuiltinVariable\"}]},\"3\":{\"patterns\":[{\"include\":\"#Expression\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.variable.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]}},\"scopeName\":\"source.gnuplot\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Gnuplot\",\"fileTypes\":[\"gp\",\"plt\",\"plot\",\"gnuplot\"],\"name\":\"gnuplot\",\"patterns\":[{\"match\":\"(\\\\\\\\(?!\\\\n).*)\",\"name\":\"invalid.illegal.backslash.gnuplot\"},{\"match\":\"(;)\",\"name\":\"punctuation.separator.statement.gnuplot\"},{\"include\":\"#LineComment\"},{\"include\":\"#DataBlock\"},{\"include\":\"#MacroExpansion\"},{\"include\":\"#VariableDecl\"},{\"include\":\"#ArrayDecl\"},{\"include\":\"#FunctionDecl\"},{\"include\":\"#ShellCommand\"},{\"include\":\"#Command\"}],\"repository\":{\"ArrayDecl\":{\"begin\":\"\\\\b(array)\\\\s+([A-Z_a-z]\\\\w*)?\",\"beginCaptures\":{\"1\":{\"name\":\"support.type.array.gnuplot\"},\"2\":{\"name\":\"entity.name.variable.gnuplot\",\"patterns\":[{\"include\":\"#InvalidVariableDecl\"},{\"include\":\"#BuiltinVariable\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.variable.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"BuiltinFunction\":{\"patterns\":[{\"match\":\"\\\\bdefined\\\\b\",\"name\":\"invalid.deprecated.function.gnuplot\"},{\"match\":\"\\\\b(?:abs|acosh??|airy|arg|asinh??|atan2??|atanh|EllipticK|EllipticE|EllipticPi|besj0|besj1|besy0|besy1|ceil|cosh??|erfc??|exp|expint|floor|gamma|ibeta|inverf|igamma|imag|invnorm|int|lambertw|lgamma|log|log10|norm|rand|real|sgn|sinh??|sqrt|tanh??|voigt|cerf|cdawson|faddeeva|erfi|VP)\\\\b\",\"name\":\"support.function.math.gnuplot\"},{\"match\":\"\\\\b(?:gprintf|sprintf|strlen|strstrt|substr|strftime|strptime|system|words??)\\\\b\",\"name\":\"support.function.string.gnuplot\"},{\"match\":\"\\\\b(?:column|columnhead|exists|hsv2rgb|stringcolumn|timecolumn|tm_hour|tm_mday|tm_min|tm_mon|tm_sec|tm_wday|tm_yday|tm_year|time|valid|value)\\\\b\",\"name\":\"support.function.other.gnuplot\"}]},\"BuiltinOperator\":{\"patterns\":[{\"match\":\"(&&|\\\\|\\\\|)\",\"name\":\"keyword.operator.logical.gnuplot\"},{\"match\":\"(<<|>>|[\\\\&^|])\",\"name\":\"keyword.operator.bitwise.gnuplot\"},{\"match\":\"(==|!=|<=?|>=?)\",\"name\":\"keyword.operator.comparison.gnuplot\"},{\"match\":\"(=)\",\"name\":\"keyword.operator.assignment.gnuplot\"},{\"match\":\"([-!+~])\",\"name\":\"keyword.operator.arithmetic.gnuplot\"},{\"match\":\"(\\\\*\\\\*|[-%*+/])\",\"name\":\"keyword.operator.arithmetic.gnuplot\"},{\"captures\":{\"2\":{\"name\":\"keyword.operator.word.gnuplot\"}},\"match\":\"(\\\\.|\\\\b(eq|ne)\\\\b)\",\"name\":\"keyword.operator.strings.gnuplot\"}]},\"BuiltinVariable\":{\"patterns\":[{\"match\":\"\\\\bFIT_(?:LIMIT|MAXITER|START_LAMBDA|LAMBDA_FACTOR|SKIP|INDEX)\\\\b\",\"name\":\"invalid.deprecated.variable.gnuplot\"},{\"match\":\"\\\\b(GPVAL_\\\\w*|MOUSE_\\\\w*)\\\\b\",\"name\":\"support.constant.gnuplot\"},{\"match\":\"\\\\b(ARG[0-9C]|GPFUN_\\\\w*|FIT_\\\\w*|STATS_\\\\w*|pi|NaN)\\\\b\",\"name\":\"support.variable.gnuplot\"}]},\"ColumnIndexLiteral\":{\"match\":\"(\\\\$[0-9]+)\\\\b\",\"name\":\"support.constant.columnindex.gnuplot\"},\"Command\":{\"patterns\":[{\"begin\":\"\\\\bupdate\\\\b\",\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"invalid.deprecated.command.gnuplot\"},{\"begin\":\"\\\\b(?:break|clear|continue|pwd|refresh|replot|reread|shell)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(?:cd|call|eval|exit|help|history|load|lower|pause|print|printerr|quit|raise|save|stats|system|test|toggle)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(import)\\\\s(.+)\\\\s(from)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.import.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#FunctionDecl\"}]},\"3\":{\"name\":\"keyword.control.import.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#SingleQuotedStringLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(reset)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"\\\\b(bind|error(state)?|session)\\\\b\",\"name\":\"support.class.reset.gnuplot\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(undefine)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#BuiltinVariable\"},{\"include\":\"#BuiltinFunction\"},{\"match\":\"(?<=\\\\s)(\\\\$?[A-Z_a-z]\\\\w*\\\\*?)(?=\\\\s)\",\"name\":\"source.gnuplot\"},{\"include\":\"#InvalidWord\"}]},{\"begin\":\"\\\\b(if|while)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(else)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.conditional.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\"},{\"begin\":\"\\\\b(do)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow.gnuplot\"}},\"end\":\"(?=([#{]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ForIterationExpr\"}]},{\"begin\":\"\\\\b(set)(?=\\\\s+pm3d)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"\\\\b(hidden3d|map|transparent|solid)\\\\b\",\"name\":\"invalid.deprecated.options.gnuplot\"},{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b((un)?set)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(show)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ExtraShowOptions\"},{\"include\":\"#SetUnsetOptions\"},{\"include\":\"#Expression\"}]},{\"begin\":\"\\\\b(fit|(s)?plot)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.command.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#ColumnIndexLiteral\"},{\"include\":\"#PlotModifiers\"},{\"include\":\"#ForIterationExpr\"},{\"include\":\"#Expression\"}]}]},\"DataBlock\":{\"begin\":\"(\\\\$[A-Z_a-z]\\\\w*)\\\\s*(<<)\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?=(#|$))\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"include\":\"#SpecialVariable\"}]},\"3\":{\"name\":\"constant.language.datablock.gnuplot\"}},\"end\":\"^(\\\\3)\\\\b(.*)\",\"endCaptures\":{\"1\":{\"name\":\"constant.language.datablock.gnuplot\"},\"2\":{\"name\":\"invalid.illegal.datablock.gnuplot\"}},\"name\":\"meta.datablock.gnuplot\",\"patterns\":[{\"include\":\"#LineComment\"},{\"include\":\"#NumberLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"}]},\"DeprecatedScriptArgsLiteral\":{\"match\":\"(\\\\$[#0-9])\",\"name\":\"invalid.illegal.scriptargs.gnuplot\"},\"DoubleQuotedStringLiteral\":{\"begin\":\"(\\\")\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((\\\")|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.quoted.double.gnuplot\",\"patterns\":[{\"include\":\"#EscapedChar\"},{\"include\":\"#RGBColorSpec\"},{\"include\":\"#DeprecatedScriptArgsLiteral\"},{\"include\":\"#InterpolatedStringLiteral\"}]},\"EscapedChar\":{\"match\":\"(\\\\\\\\.)\",\"name\":\"constant.character.escape.gnuplot\"},\"Expression\":{\"patterns\":[{\"include\":\"#Literal\"},{\"include\":\"#SpecialVariable\"},{\"include\":\"#BuiltinVariable\"},{\"include\":\"#BuiltinOperator\"},{\"include\":\"#TernaryExpr\"},{\"include\":\"#FunctionCallExpr\"},{\"include\":\"#SummationExpr\"}]},\"ExtraShowOptions\":{\"match\":\"\\\\b(?:all|bind|colornames|functions|plot|variables|version)\\\\b\",\"name\":\"support.class.options.gnuplot\"},\"ForIterationExpr\":{\"begin\":\"\\\\b(for)\\\\s*(\\\\[)\\\\s*(?:([A-Z_a-z]\\\\w*)\\\\s+(in)\\\\b)?\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.flow.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]},\"3\":{\"name\":\"variable.other.iterator.gnuplot\"},\"4\":{\"name\":\"keyword.control.flow.gnuplot\"}},\"end\":\"((])|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"patterns\":[{\"include\":\"#Expression\"},{\"include\":\"#RangeSeparators\"}]},\"FunctionCallExpr\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"variable.function.gnuplot\",\"patterns\":[{\"include\":\"#BuiltinFunction\"}]},\"2\":{\"name\":\"punctuation.definition.arguments.begin.gnuplot\"}},\"end\":\"((\\\\))|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"name\":\"punctuation.definition.arguments.end.gnuplot\"}},\"name\":\"meta.function-call.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"FunctionDecl\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*((\\\\()\\\\s*([A-Z_a-z]\\\\w*)\\\\s*(?:(,)\\\\s*([A-Z_a-z]\\\\w*)\\\\s*)*(\\\\)))\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.gnuplot\",\"patterns\":[{\"include\":\"#BuiltinFunction\"}]},\"2\":{\"name\":\"meta.function.parameters.gnuplot\"},\"3\":{\"name\":\"punctuation.definition.parameters.begin.gnuplot\"},\"4\":{\"name\":\"variable.parameter.function.language.gnuplot\"},\"5\":{\"name\":\"punctuation.separator.parameters.gnuplot\"},\"6\":{\"name\":\"variable.parameter.function.language.gnuplot\"},\"7\":{\"name\":\"punctuation.definition.parameters.end.gnuplot\"}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.function.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]},\"InterpolatedStringLiteral\":{\"begin\":\"(`)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((`)|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.interpolated.gnuplot\",\"patterns\":[{\"include\":\"#EscapedChar\"}]},\"InvalidVariableDecl\":{\"match\":\"\\\\b(GPVAL_\\\\w*|MOUSE_\\\\w*)\\\\b\",\"name\":\"invalid.illegal.variable.gnuplot\"},\"InvalidWord\":{\"match\":\"([^#;\\\\\\\\\\\\s]+)\",\"name\":\"invalid.illegal.gnuplot\"},\"LineComment\":{\"begin\":\"(#)\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.comment.begin.gnuplot\"}},\"end\":\"(?=(?<!\\\\\\\\)\\\\n$)\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.gnuplot\"}},\"name\":\"comment.line.number-sign.gnuplot\"},\"Literal\":{\"patterns\":[{\"include\":\"#NumberLiteral\"},{\"include\":\"#DeprecatedScriptArgsLiteral\"},{\"include\":\"#SingleQuotedStringLiteral\"},{\"include\":\"#DoubleQuotedStringLiteral\"},{\"include\":\"#InterpolatedStringLiteral\"}]},\"MacroExpansion\":{\"begin\":\"(@[A-Z_a-z]\\\\w*)\",\"beginCaptures\":{\"1\":{\"patterns\":[{\"include\":\"#SpecialVariable\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"include\":\"#Expression\"}]},\"NumberLiteral\":{\"patterns\":[{\"match\":\"((\\\\b([0-9]+)|(?<!\\\\d)))(\\\\.[0-9]+)([Ee][-+]?[0-9]+)?(cm|in)?\\\\b\",\"name\":\"constant.numeric.float.gnuplot\"},{\"match\":\"\\\\b([0-9]+)((([Ee][-+]?[0-9]+))\\\\b|(\\\\.([Ee][-+]?[0-9]+\\\\b)?))((?:cm|in)\\\\b)?\",\"name\":\"constant.numeric.float.gnuplot\"},{\"match\":\"\\\\b(0[Xx]\\\\h+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.hex.gnuplot\"},{\"match\":\"\\\\b(0+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.dec.gnuplot\"},{\"match\":\"\\\\b(0[0-7]+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.oct.gnuplot\"},{\"match\":\"\\\\b(0[0-9]+)(cm|in)?\\\\b\",\"name\":\"invalid.illegal.oct.gnuplot\"},{\"match\":\"\\\\b([0-9]+)(cm|in)?\\\\b\",\"name\":\"constant.numeric.dec.gnuplot\"}]},\"PlotModifiers\":{\"patterns\":[{\"match\":\"\\\\b(thru)\\\\b\",\"name\":\"invalid.deprecated.plot.gnuplot\"},{\"match\":\"\\\\b(?:in(dex)?|every|us(ing)?|wi(th)?|via)\\\\b\",\"name\":\"storage.type.plot.gnuplot\"},{\"match\":\"\\\\b(newhist(ogram)?)\\\\b\",\"name\":\"storage.type.plot.gnuplot\"}]},\"RGBColorSpec\":{\"match\":\"\\\\G(0x|#)((\\\\h{6})|(\\\\h{8}))\\\\b\",\"name\":\"constant.other.placeholder.gnuplot\"},\"RangeSeparators\":{\"patterns\":[{\"match\":\"(\\\\[)\",\"name\":\"punctuation.section.brackets.begin.gnuplot\"},{\"match\":\"(:)\",\"name\":\"punctuation.separator.range.gnuplot\"},{\"match\":\"(])\",\"name\":\"punctuation.section.brackets.end.gnuplot\"}]},\"SetUnsetOptions\":{\"patterns\":[{\"match\":\"\\\\G\\\\s*\\\\b(?:clabel|data|function|historysize|macros|ticslevel|ticscale|(style\\\\s+increment\\\\s+\\\\w+))\\\\b\",\"name\":\"invalid.deprecated.options.gnuplot\"},{\"match\":\"\\\\G\\\\s*\\\\b(?:angles|arrow|autoscale|border|boxwidth|clip|cntr(label|param)|color(box|sequence)?|contour|(dash|line)type|datafile|decimal(sign)?|dgrid3d|dummy|encoding|(error)?bars|fit|fontpath|format|grid|hidden3d|history|(iso)?samples|jitter|key|label|link|loadpath|locale|logscale|mapping|[blrt]margin|margins|micro|minus(sign)?|mono(chrome)?|mouse|multiplot|nonlinear|object|offsets|origin|output|parametric|([pr])axis|pm3d|palette|pointintervalbox|pointsize|polar|print|psdir|size|style|surface|table|terminal|termoption|theta|tics|timestamp|timefmt|title|view|xyplane|zero|(no)?(m)?(x2??|y2??|z|cb|[rt])tics|(x2??|y2??|z|cb)data|(x2??|y2??|z|cb|r)label|(x2??|y2??|z|cb)dtics|(x2??|y2??|z|cb)mtics|(x2??|y2??|z|cb|[rtuv])range|(x2??|y2??|z)?zeroaxis)\\\\b\",\"name\":\"support.class.options.gnuplot\"}]},\"ShellCommand\":{\"begin\":\"(!)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.shell.gnuplot\"}},\"end\":\"(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"patterns\":[{\"match\":\"([^#]|\\\\\\\\(?=\\\\n))\",\"name\":\"string.unquoted\"}]},\"SingleQuotedStringLiteral\":{\"begin\":\"(')\",\"beginCaptures\":{\"1\":{\"name\":\"punctuation.definition.string.begin.gnuplot\"}},\"end\":\"((')(?!')|(?=(?<!\\\\\\\\)\\\\n$))\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.string.end.gnuplot\"}},\"name\":\"string.quoted.single.gnuplot\",\"patterns\":[{\"include\":\"#RGBColorSpec\"},{\"match\":\"('')\",\"name\":\"constant.character.escape.gnuplot\"}]},\"SpecialVariable\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"constant.language.wildcard.gnuplot\"}},\"match\":\"(?<=[:=\\\\[])\\\\s*(\\\\*)\\\\s*(?=[]:])\"},{\"captures\":{\"2\":{\"name\":\"punctuation.definition.variable.gnuplot\"}},\"match\":\"(([$@])[A-Z_a-z]\\\\w*)\\\\b\",\"name\":\"constant.language.special.gnuplot\"}]},\"SummationExpr\":{\"begin\":\"\\\\b(sum)\\\\s*(\\\\[)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.other.sum.gnuplot\"},\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"end\":\"((])|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"patterns\":[{\"include\":\"#RangeSeparators\"}]}},\"patterns\":[{\"include\":\"#Expression\"},{\"include\":\"#RangeSeparators\"}]},\"TernaryExpr\":{\"begin\":\"(?<!\\\\?)(\\\\?)(?!\\\\?)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.operator.ternary.gnuplot\"}},\"end\":\"((?<!:)(:)(?!:)|(?=(#|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$)))\",\"endCaptures\":{\"2\":{\"name\":\"keyword.operator.ternary.gnuplot\"}},\"patterns\":[{\"include\":\"#Expression\"}]},\"VariableDecl\":{\"begin\":\"\\\\b([A-Z_a-z]\\\\w*)\\\\s*(?:(\\\\[)\\\\s*(.*)\\\\s*(])\\\\s*)?(?=(=)(?!\\\\s*=))\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.variable.gnuplot\",\"patterns\":[{\"include\":\"#InvalidVariableDecl\"},{\"include\":\"#BuiltinVariable\"}]},\"3\":{\"patterns\":[{\"include\":\"#Expression\"}]}},\"end\":\"(?=([#;]|\\\\\\\\(?!\\\\n)|(?<!\\\\\\\\)\\\\n$))\",\"name\":\"meta.variable.gnuplot\",\"patterns\":[{\"include\":\"#Expression\"}]}},\"scopeName\":\"source.gnuplot\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|