@shikijs/langs-precompiled 3.2.1 → 3.3.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/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-html.mjs +1 -1
- package/dist/angular-inline-style.mjs +1 -1
- package/dist/angular-inline-template.mjs +1 -1
- package/dist/angular-let-declaration.mjs +1 -1
- package/dist/angular-template-blocks.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apache.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bibtex.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/edge.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erb.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-fixed-form.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/gherkin.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/glsl.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hxml.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/llvm.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/qss.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/shellsession.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tasl.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue-sfc-style-variable-injection.mjs +1 -1
- package/dist/vue.mjs +3 -3
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wit.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/xsl.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +4 -4
package/dist/templ.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import go from './go.mjs'
|
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
import css from './css.mjs'
|
|
5
5
|
|
|
6
|
-
const lang = Object.freeze({displayName:"Templ",name:"templ",patterns:[{include:"#script-template"},{include:"#css-template"},{include:"#html-template"},{include:"source.go"}],repository:{"block-element":{begin:/(<\/?)((?:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=[\p{space}\\\>]))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},"call-expression":{begin:/(\{!)\p{space}+/dgv,beginCaptures:{"0":{name:"start.call-expression.templ"},"1":{name:"punctuation.brace.open"}},end:/(\})/dgv,endCaptures:{"0":{name:"end.call-expression.templ"},"1":{name:"punctuation.brace.close"}},name:"call-expression.templ",patterns:[{include:"source.go"}]},"case-expression":{begin:/^\p{space}*case [^\n]+?:(?=\n?$)/dgv,captures:{"0":{name:"case.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/(^\p{space}*case [^\n]+?:(?=\n?$))|(^\p{space}*default:(?=\n?$))|(\p{space}*(?=\n?$))/dgv,patterns:[{include:"#template-node"}]},"close-element":{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},"css-template":{begin:/^(css) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"css-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.css-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.css-template.templ",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("\\p{space}*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|[yx]|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\\p{space}+","dgv",{"lazyCompile":true}),beginCaptures:{"1":{name:"support.type.property-name.css"}},end:/(?<=;(?=\n?$))/dgv,name:"property.css-template.templ",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(\})(;)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{name:"punctuation.terminator.rule.css"}},name:"expression.property.css-template.templ",patterns:[{include:"source.go"}]},{captures:{"1":{name:"support.type.property-value.css"},"2":{name:"punctuation.terminator.rule.css"}},match:/([^\n]*)(;)(?=\n?$)/dgv,name:"constant.property.css-template.templ"}]}]}]},"default-expression":{begin:/^\p{space}*default:(?=\n?$)/dgv,captures:{"0":{name:"default.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/(^\p{space}*case [^\n]+?:(?=\n?$))|(^\p{space}*default:(?=\n?$))|(\p{space}*(?=\n?$))/dgv,patterns:[{include:"#template-node"}]},element:{begin:/*@__PURE__*/ new EmulatedRegExp("(<)((?:(?=([a-zA-Z0-9\\:\\-]+))\\3))(?=[^\\>]*></\\2>)","dgv",{"hiddenCaptures":[3]}),beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},"else-expression":{begin:/\p{space}+(else)\p{space}+(\{)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"else.html-template.templ",patterns:[{include:"#template-node"}]},"else-if-expression":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.else-if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.else-if.html-template.templ",patterns:[{include:"#template-node"}]}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#[xX]\p{AHex}+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"for-expression":{begin:/^\p{space}*for [^\n]+\{/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/\p{space}*\}\p{space}*\n/dgv,name:"for.html-template.templ",patterns:[{include:"#template-node"}]},"go-comment-block":{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},"go-comment-double-slash":{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(?:\n|(?=\n?$))/dgv,name:"comment.line.double-slash.go"},"html-comment":{begin:/<!--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.html"}},name:"comment.block.html"},"html-template":{begin:/^(templ) ((?:\([A-z_][A-z_0-9]* \*?[A-z_][A-z_0-9]*\) )?[A-z_][A-z_0-9]*([\(\[]))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"html-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\[)/dgv,end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.square.go"}},name:"type-params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.html-template.templ",patterns:[{include:"#template-node"}]}]},"if-expression":{begin:/^\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.if.html-template.templ",patterns:[{include:"#template-node"}]}]},"import-expression":{patterns:[{begin:/(@)((?:[A-z_][A-z_0-9]*\.)?[A-z_][A-z_0-9]*(?:[\(\{]|(?=\n?$)))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=\))(?=\n?$)|(?<=\})(?=\n?$)|(?<=(?=\n?$))/dgv,name:"import-expression.templ",patterns:[{begin:/(?<=[A-z_0-9]\{)/dgv,end:/\p{space}*(\})(\.[A-z_][A-z_0-9]*\()/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{patterns:[{include:"source.go"}]}},name:"struct-method.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.brace.open"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"children.import-expression.templ",patterns:[{include:"#template-node"}]}]}]},"inline-element":{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=[\p{space}\\\>]))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},"raw-go":{begin:/\{\{/dgv,beginCaptures:{"0":{name:"start.raw-go.templ"},"1":{name:"punctuation.brace.open"}},end:/\}\}/dgv,endCaptures:{"0":{name:"end.raw-go.templ"},"1":{name:"punctuation.brace.open"}},name:"raw-go.templ",patterns:[{include:"source.go"}]},"script-element":{begin:/(<)(script)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/script>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.script.html",patterns:[{include:"source.js"}]},"script-template":{begin:/^(script) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"script-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.script-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.script-template.templ",patterns:[{include:"source.js"}]}]},sgml:{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},"string-expression":{begin:/\{\p{space}+/dgv,beginCaptures:{"0":{name:"start.string-expression.templ"}},end:/\}/dgv,endCaptures:{"0":{name:"end.string-expression.templ"}},name:"expression.html-template.templ",patterns:[{include:"source.go"}]},"style-element":{begin:/(<)(style)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/style>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.style.html",patterns:[{include:"source.css"}]},"switch-expression":{begin:/^\p{space}*switch [^\n]+?\{(?=\n?$)/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/^\p{space}*\}(?=\n?$)/dgv,name:"switch.html-template.templ",patterns:[{include:"#template-node"},{include:"#case-expression"},{include:"#default-expression"}]},"tag-else-attribute":{begin:/\p{space}(else)\p{space}(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.brace.open"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"else.attribute.html",patterns:[{include:"#tag-stuff"}]},"tag-else-if-attribute":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.else-if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.else-if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(?<=['\"[^\\p{space}\\<\\>\\/]])","dgv",{"strategy":"clip_search"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^\p{space}\{\}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-if-attribute":{begin:/^\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-expression"},{include:"#tag-if-attribute"},{include:"#tag-else-if-attribute"},{include:"#tag-else-attribute"}]},"template-node":{patterns:[{include:"#string-expression"},{include:"#call-expression"},{include:"#import-expression"},{include:"#script-element"},{include:"#style-element"},{include:"#element"},{include:"#html-comment"},{include:"#go-comment-block"},{include:"#go-comment-double-slash"},{include:"#sgml"},{include:"#block-element"},{include:"#inline-element"},{include:"#close-element"},{include:"#else-if-expression"},{include:"#if-expression"},{include:"#else-expression"},{include:"#for-expression"},{include:"#switch-expression"},{include:"#raw-go"}]}},scopeName:"source.templ",embeddedLangs:["go","javascript","css"],aliases:undefined})
|
|
6
|
+
const lang = Object.freeze({displayName:"Templ",name:"templ",patterns:[{include:"#script-template"},{include:"#css-template"},{include:"#html-template"},{include:"source.go"}],repository:{"block-element":{begin:/(<\/?)((?:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=[\>\\\p{space}]))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},"call-expression":{begin:/(\{!)\p{space}+/dgv,beginCaptures:{"0":{name:"start.call-expression.templ"},"1":{name:"punctuation.brace.open"}},end:/(\})/dgv,endCaptures:{"0":{name:"end.call-expression.templ"},"1":{name:"punctuation.brace.close"}},name:"call-expression.templ",patterns:[{include:"source.go"}]},"case-expression":{begin:/^\p{space}*case [^\n]+?:(?=\n?$)/dgv,captures:{"0":{name:"case.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/(?:^(\p{space}*case [^\n]+?:)|^(\p{space}*default:)|(\p{space}*))(?=\n?$)/dgv,patterns:[{include:"#template-node"}]},"close-element":{begin:/(<\/?)([\-0-\:A-Za-z]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},"css-template":{begin:/^(css) ([A-z][0-9A-z]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"css-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.css-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}*(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.css-template.templ",patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("\\p{space}*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|[xy]|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\\p{space}+","dgv",{"lazyCompile":true}),beginCaptures:{"1":{name:"support.type.property-name.css"}},end:/(?<=;(?=\n?$))/dgv,name:"property.css-template.templ",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(\})(;)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{name:"punctuation.terminator.rule.css"}},name:"expression.property.css-template.templ",patterns:[{include:"source.go"}]},{captures:{"1":{name:"support.type.property-value.css"},"2":{name:"punctuation.terminator.rule.css"}},match:/([^\n]*)(;)(?=\n?$)/dgv,name:"constant.property.css-template.templ"}]}]}]},"default-expression":{begin:/^\p{space}*default:(?=\n?$)/dgv,captures:{"0":{name:"default.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/(?:^(\p{space}*case [^\n]+?:)|^(\p{space}*default:)|(\p{space}*))(?=\n?$)/dgv,patterns:[{include:"#template-node"}]},element:{begin:/*@__PURE__*/ new EmulatedRegExp("(<)((?:(?=([\\-0-\\:A-Za-z]+))\\3))(?=[^\\>]*></\\2>)","dgv",{"hiddenCaptures":[3]}),beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},"else-expression":{begin:/\p{space}+(else)\p{space}+(\{)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"else.html-template.templ",patterns:[{include:"#template-node"}]},"else-if-expression":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.else-if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.else-if.html-template.templ",patterns:[{include:"#template-node"}]}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([0-9A-Za-z]+|#[0-9]+|#[Xx]\p{AHex}+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"for-expression":{begin:/^\p{space}*for [^\n]+\{/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/\p{space}*\}\p{space}*\n/dgv,name:"for.html-template.templ",patterns:[{include:"#template-node"}]},"go-comment-block":{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},"go-comment-double-slash":{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/\n|(?=\n?$)/dgv,name:"comment.line.double-slash.go"},"html-comment":{begin:/<!--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.html"}},name:"comment.block.html"},"html-template":{begin:/^(templ) ((?:\([A-z][0-9A-z]* \*?[A-z][0-9A-z]*\) )?[A-z][0-9A-z]*([\(\[]))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"html-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\[)/dgv,end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.square.go"}},name:"type-params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}*(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.html-template.templ",patterns:[{include:"#template-node"}]}]},"if-expression":{begin:/^\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.if.html-template.templ",patterns:[{include:"#template-node"}]}]},"import-expression":{patterns:[{begin:/(@)((?:[A-z][0-9A-z]*\.)?[A-z][0-9A-z]*(?:[\(\{]|(?=\n?$)))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=\))(?=\n?$)|(?<=\})(?=\n?$)|(?<=(?=\n?$))/dgv,name:"import-expression.templ",patterns:[{begin:/(?<=[0-9A-z]\{)/dgv,end:/\p{space}*(\})(\.[A-z][0-9A-z]*\()/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{patterns:[{include:"source.go"}]}},name:"struct-method.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.brace.open"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"children.import-expression.templ",patterns:[{include:"#template-node"}]}]}]},"inline-element":{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|[qs]|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=[\>\\\p{space}]))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},"raw-go":{begin:/\{\{/dgv,beginCaptures:{"0":{name:"start.raw-go.templ"},"1":{name:"punctuation.brace.open"}},end:/\}\}/dgv,endCaptures:{"0":{name:"end.raw-go.templ"},"1":{name:"punctuation.brace.open"}},name:"raw-go.templ",patterns:[{include:"source.go"}]},"script-element":{begin:/(<)(script)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/script>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.script.html",patterns:[{include:"source.js"}]},"script-template":{begin:/^(script) ([A-z][0-9A-z]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=^\}(?=\n?$))/dgv,name:"script-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.script-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}*(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/^(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.script-template.templ",patterns:[{include:"source.js"}]}]},sgml:{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},"string-expression":{begin:/\{\p{space}+/dgv,beginCaptures:{"0":{name:"start.string-expression.templ"}},end:/\}/dgv,endCaptures:{"0":{name:"end.string-expression.templ"}},name:"expression.html-template.templ",patterns:[{include:"source.go"}]},"style-element":{begin:/(<)(style)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/style>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.style.html",patterns:[{include:"source.css"}]},"switch-expression":{begin:/^\p{space}*switch [^\n]+?\{(?=\n?$)/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/^\p{space}*\}(?=\n?$)/dgv,name:"switch.html-template.templ",patterns:[{include:"#template-node"},{include:"#case-expression"},{include:"#default-expression"}]},"tag-else-attribute":{begin:/\p{space}(else)\p{space}(\{)(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.brace.open"}},end:/^\p{space}*(\})(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"else.attribute.html",patterns:[{include:"#tag-stuff"}]},"tag-else-if-attribute":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.else-if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.else-if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([\-0-\:A-Za-z]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(?<=[\"'[^\\/\\<\\>\\p{space}]])","dgv",{"strategy":"clip_search"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^"'\/\<\>\{\}\p{space}]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-if-attribute":{begin:/^\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=\n?$)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=\n?$)/dgv,end:/^\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-expression"},{include:"#tag-if-attribute"},{include:"#tag-else-if-attribute"},{include:"#tag-else-attribute"}]},"template-node":{patterns:[{include:"#string-expression"},{include:"#call-expression"},{include:"#import-expression"},{include:"#script-element"},{include:"#style-element"},{include:"#element"},{include:"#html-comment"},{include:"#go-comment-block"},{include:"#go-comment-double-slash"},{include:"#sgml"},{include:"#block-element"},{include:"#inline-element"},{include:"#close-element"},{include:"#else-if-expression"},{include:"#if-expression"},{include:"#else-expression"},{include:"#for-expression"},{include:"#switch-expression"},{include:"#raw-go"}]}},scopeName:"source.templ",embeddedLangs:["go","javascript","css"],aliases:undefined})
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
...go,
|
package/dist/terraform.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Terraform",fileTypes:["tf","tfvars"],name:"terraform",patterns:[{include:"#comments"},{include:"#attribute_definition"},{include:"#block"},{include:"#expressions"}],repository:{attribute_access:{begin:/\.(?!\*)/dgv,beginCaptures:{"0":{name:"keyword.operator.accessor.hcl"}},end:/\p{Alpha}[\p{L}\p{M}\p{N}\p{Pc}\-]*|\p{Nd}*/dgv,endCaptures:{"0":{patterns:[{match:/(?!null|false|true)\p{Alpha}[\p{L}\p{M}\p{N}\p{Pc}\-]*/dgv,name:"variable.other.member.hcl"},{match:/\p{Nd}+/dgv,name:"constant.numeric.integer.hcl"}]}}},attribute_definition:{captures:{"1":{name:"punctuation.section.parens.begin.hcl"},"2":{name:"variable.other.readwrite.hcl"},"3":{name:"punctuation.section.parens.end.hcl"},"4":{name:"keyword.operator.assignment.hcl"}},match:/(\()?(\b(?!null\b|false\b|true\b)\p{Alpha}[\p{Alpha}\p{Nd}_\-]*)(\))?\p{space}*(=(?![\=\>]))\p{space}*/dgv,name:"variable.declaration.hcl"},attribute_splat:{begin:/\./dgv,beginCaptures:{"0":{name:"keyword.operator.accessor.hcl"}},end:/\*/dgv,endCaptures:{"0":{name:"keyword.operator.splat.hcl"}}},block:{begin:/([\p{L}\p{M}\p{N}\p{Pc}][\-\p{L}\p{M}\p{N}\p{Pc}]*)([\p{space}"\-\p{L}\p{M}\p{N}\p{Pc}]*)(\{)/dgv,beginCaptures:{"1":{patterns:[{match:/\bdata|check|import|locals|module|output|provider|resource|terraform|variable\b/dgv,name:"entity.name.type.terraform"},{match:/\b(?!null|false|true)\p{Alpha}[\p{Alpha}\p{Nd}_\-]*\b/dgv,name:"entity.name.type.hcl"}]},"2":{patterns:[{match:/["\-\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.enummember.hcl"}]},"3":{name:"punctuation.section.block.begin.hcl"},"5":{name:"punctuation.section.block.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.hcl"}},name:"meta.block.hcl",patterns:[{include:"#comments"},{include:"#attribute_definition"},{include:"#block"},{include:"#expressions"}]},block_inline_comments:{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/\*\//dgv,name:"comment.block.hcl"},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.brackets.begin.hcl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.brackets.end.hcl"}},patterns:[{match:/\*/dgv,name:"keyword.operator.splat.hcl"},{include:"#comma"},{include:"#comments"},{include:"#inline_for_expression"},{include:"#inline_if_expression"},{include:"#expressions"},{include:"#local_identifiers"}]},char_escapes:{match:/\\(?:[nrt"\\]|u(\p{AHex}{8}|\p{AHex}{4}))/dgv,name:"constant.character.escape.hcl"},comma:{match:/,/dgv,name:"punctuation.separator.hcl"},comments:{patterns:[{include:"#hash_line_comments"},{include:"#double_slash_line_comments"},{include:"#block_inline_comments"}]},double_slash_line_comments:{begin:/\/\//dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.double-slash.hcl"},expressions:{patterns:[{include:"#literal_values"},{include:"#operators"},{include:"#tuple_for_expression"},{include:"#object_for_expression"},{include:"#brackets"},{include:"#objects"},{include:"#attribute_access"},{include:"#attribute_splat"},{include:"#functions"},{include:"#parens"}]},for_expression_body:{patterns:[{match:/\bin\b/dgv,name:"keyword.operator.word.hcl"},{match:/\bif\b/dgv,name:"keyword.control.conditional.hcl"},{match:/:/dgv,name:"keyword.operator.hcl"},{include:"#expressions"},{include:"#comments"},{include:"#comma"},{include:"#local_identifiers"}]},functions:{begin:/([\:\-\p{L}\p{M}\p{N}\p{Pc}]+)(\()/dgv,beginCaptures:{"1":{patterns:[{match:/\b(core::)?(abs|abspath|alltrue|anytrue|base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|can|ceil|chomp|chunklist|cidrhost|cidrnetmask|cidrsubnet|cidrsubnets|coalesce|coalescelist|compact|concat|contains|csvdecode|dirname|distinct|element|endswith|file|filebase64|filebase64sha256|filebase64sha512|fileexists|filemd5|fileset|filesha1|filesha256|filesha512|flatten|floor|format|formatdate|formatlist|indent|index|join|jsondecode|jsonencode|keys|length|log|lookup|lower|matchkeys|max|md5|merge|min|nonsensitive|one|parseint|pathexpand|plantimestamp|pow|range|regex|regexall|replace|reverse|rsadecrypt|sensitive|setintersection|setproduct|setsubtract|setunion|sha1|sha256|sha512|signum|slice|sort|split|startswith|strcontains|strrev|substr|sum|templatefile|textdecodebase64|textencodebase64|timeadd|timecmp|timestamp|title|tobool|tolist|tomap|tonumber|toset|tostring|transpose|trim|trimprefix|trimspace|trimsuffix|try|upper|urlencode|uuid|uuidv5|values|yamldecode|yamlencode|zipmap)\b/dgv,name:"support.function.builtin.terraform"},{match:/\bprovider::\p{Alpha}[\p{L}\p{M}\p{N}\p{Pc}_\-]*::\p{Alpha}[\p{L}\p{M}\p{N}\p{Pc}_\-]*\b/dgv,name:"support.function.provider.terraform"}]},"2":{name:"punctuation.section.parens.begin.hcl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.hcl"}},name:"meta.function-call.hcl",patterns:[{include:"#comments"},{include:"#expressions"},{include:"#comma"}]},hash_line_comments:{begin:/#/dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.number-sign.hcl"},hcl_type_keywords:{match:/\b(any|string|number|bool|list|set|map|tuple|object)\b/dgv,name:"storage.type.hcl"},heredoc:{begin:/(<<-?)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.operator.heredoc.hcl"},"2":{name:"keyword.control.heredoc.hcl"}},end:/^\p{space}*\2\p{space}*(?=\n?$)()()/dgv,endCaptures:{"0":{name:"keyword.control.heredoc.hcl"}},name:"string.unquoted.heredoc.hcl",patterns:[{include:"#string_interpolation"}]},inline_for_expression:{captures:{"1":{name:"keyword.control.hcl"},"2":{patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"},{include:"#for_expression_body"}]}},match:/(for)\b([^\n]*)\n/dgv},inline_if_expression:{begin:/(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.hcl"}},end:/\n/dgv,patterns:[{include:"#expressions"},{include:"#comments"},{include:"#comma"},{include:"#local_identifiers"}]},language_constants:{match:/\b(true|false|null)\b/dgv,name:"constant.language.hcl"},literal_values:{patterns:[{include:"#numeric_literals"},{include:"#language_constants"},{include:"#string_literals"},{include:"#heredoc"},{include:"#hcl_type_keywords"},{include:"#named_value_references"}]},local_identifiers:{match:/\b(?!null|false|true)\p{Alpha}[\p{Alpha}\p{Nd}_\-]*\b/dgv,name:"variable.other.readwrite.hcl"},named_value_references:{match:/\b(var|local|module|data|path|terraform)\b/dgv,name:"variable.other.readwrite.terraform"},numeric_literals:{patterns:[{captures:{"1":{name:"punctuation.separator.exponent.hcl"}},match:/\b\p{Nd}+([Ee][\+\-]?)\p{Nd}+\b/dgv,name:"constant.numeric.float.hcl"},{captures:{"1":{name:"punctuation.separator.decimal.hcl"},"2":{name:"punctuation.separator.exponent.hcl"}},match:/\b\p{Nd}+(\.)\p{Nd}+(?:([Ee][\+\-]?)\p{Nd}+)?\b/dgv,name:"constant.numeric.float.hcl"},{match:/\b\p{Nd}+\b/dgv,name:"constant.numeric.integer.hcl"}]},object_for_expression:{begin:/(\{)\p{space}?(for)\b/dgv,beginCaptures:{"1":{name:"punctuation.section.braces.begin.hcl"},"2":{name:"keyword.control.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.braces.end.hcl"}},patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"},{include:"#for_expression_body"}]},object_key_values:{patterns:[{include:"#comments"},{include:"#literal_values"},{include:"#operators"},{include:"#tuple_for_expression"},{include:"#object_for_expression"},{include:"#heredoc"},{include:"#functions"}]},objects:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.braces.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.braces.end.hcl"}},name:"meta.braces.hcl",patterns:[{include:"#comments"},{include:"#objects"},{include:"#inline_for_expression"},{include:"#inline_if_expression"},{captures:{"1":{name:"meta.mapping.key.hcl variable.other.readwrite.hcl"},"2":{name:"keyword.operator.assignment.hcl",patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"}]}},match:/\b((?!null|false|true)\p{Alpha}[\p{Alpha}\p{Nd}_\-]*)\p{space}*(=>?)\p{space}*/dgv},{captures:{"0":{patterns:[{include:"#named_value_references"}]},"1":{name:"meta.mapping.key.hcl string.quoted.double.hcl"},"2":{name:"punctuation.definition.string.begin.hcl"},"3":{name:"punctuation.definition.string.end.hcl"},"4":{name:"keyword.operator.hcl"}},match:/\b((")[^\n]*("))\p{space}*(=)\p{space}*/dgv},{begin:/^\p{space}*\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.hcl"}},end:/(\))\p{space}*([\=\:])\p{space}*/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.hcl"},"2":{name:"keyword.operator.hcl"}},name:"meta.mapping.key.hcl",patterns:[{include:"#named_value_references"},{include:"#attribute_access"}]},{include:"#object_key_values"}]},operators:{patterns:[{match:/>=/dgv,name:"keyword.operator.hcl"},{match:/<=/dgv,name:"keyword.operator.hcl"},{match:/==/dgv,name:"keyword.operator.hcl"},{match:/!=/dgv,name:"keyword.operator.hcl"},{match:/\+/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/-/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/\*/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/\//dgv,name:"keyword.operator.arithmetic.hcl"},{match:/%/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/&&/dgv,name:"keyword.operator.logical.hcl"},{match:/\|\|/dgv,name:"keyword.operator.logical.hcl"},{match:/!/dgv,name:"keyword.operator.logical.hcl"},{match:/>/dgv,name:"keyword.operator.hcl"},{match:/</dgv,name:"keyword.operator.hcl"},{match:/\?/dgv,name:"keyword.operator.hcl"},{match:/\.\.\./dgv,name:"keyword.operator.hcl"},{match:/:/dgv,name:"keyword.operator.hcl"},{match:/=>/dgv,name:"keyword.operator.hcl"}]},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.hcl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.hcl"}},patterns:[{include:"#comments"},{include:"#expressions"}]},string_interpolation:{begin:/(?<![\%\$])([\%\$]\{)/dgv,beginCaptures:{"1":{name:"keyword.other.interpolation.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"keyword.other.interpolation.end.hcl"}},name:"meta.interpolation.hcl",patterns:[{match:/~\p{space}/dgv,name:"keyword.operator.template.left.trim.hcl"},{match:/\p{space}~/dgv,name:"keyword.operator.template.right.trim.hcl"},{match:/\b(if|else|endif|for|in|endfor)\b/dgv,name:"keyword.control.hcl"},{include:"#expressions"},{include:"#local_identifiers"}]},string_literals:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.hcl"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.hcl"}},name:"string.quoted.double.hcl",patterns:[{include:"#string_interpolation"},{include:"#char_escapes"}]},tuple_for_expression:{begin:/(\[)\p{space}?(for)\b/dgv,beginCaptures:{"1":{name:"punctuation.section.brackets.begin.hcl"},"2":{name:"keyword.control.hcl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.brackets.end.hcl"}},patterns:[{include:"#for_expression_body"}]}},scopeName:"source.hcl.terraform",embeddedLangs:undefined,aliases:["tf","tfvars"]})
|
|
1
|
+
const lang = Object.freeze({displayName:"Terraform",fileTypes:["tf","tfvars"],name:"terraform",patterns:[{include:"#comments"},{include:"#attribute_definition"},{include:"#block"},{include:"#expressions"}],repository:{attribute_access:{begin:/\.(?!\*)/dgv,beginCaptures:{"0":{name:"keyword.operator.accessor.hcl"}},end:/\p{Alpha}[\-\p{L}\p{M}\p{N}\p{Pc}]*|\p{Nd}*/dgv,endCaptures:{"0":{patterns:[{match:/(?!null|false|true)\p{Alpha}[\-\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.member.hcl"},{match:/\p{Nd}+/dgv,name:"constant.numeric.integer.hcl"}]}}},attribute_definition:{captures:{"1":{name:"punctuation.section.parens.begin.hcl"},"2":{name:"variable.other.readwrite.hcl"},"3":{name:"punctuation.section.parens.end.hcl"},"4":{name:"keyword.operator.assignment.hcl"}},match:/(\()?\b((?!(?:null|false|true)\b)\p{Alpha}[\-_\p{Alpha}\p{Nd}]*)(\))?\p{space}*(=(?![\=\>]))\p{space}*/dgv,name:"variable.declaration.hcl"},attribute_splat:{begin:/\./dgv,beginCaptures:{"0":{name:"keyword.operator.accessor.hcl"}},end:/\*/dgv,endCaptures:{"0":{name:"keyword.operator.splat.hcl"}}},block:{begin:/([\p{L}\p{M}\p{N}\p{Pc}][\-\p{L}\p{M}\p{N}\p{Pc}]*)([\-"\p{space}\p{L}\p{M}\p{N}\p{Pc}]*)(\{)/dgv,beginCaptures:{"1":{patterns:[{match:/\bdata|check|import|locals|module|output|provider|resource|terraform|variable\b/dgv,name:"entity.name.type.terraform"},{match:/\b(?!null|false|true)\p{Alpha}[\-_\p{Alpha}\p{Nd}]*\b/dgv,name:"entity.name.type.hcl"}]},"2":{patterns:[{match:/[\-"\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.other.enummember.hcl"}]},"3":{name:"punctuation.section.block.begin.hcl"},"5":{name:"punctuation.section.block.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.block.end.hcl"}},name:"meta.block.hcl",patterns:[{include:"#comments"},{include:"#attribute_definition"},{include:"#block"},{include:"#expressions"}]},block_inline_comments:{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/\*\//dgv,name:"comment.block.hcl"},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.brackets.begin.hcl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.brackets.end.hcl"}},patterns:[{match:/\*/dgv,name:"keyword.operator.splat.hcl"},{include:"#comma"},{include:"#comments"},{include:"#inline_for_expression"},{include:"#inline_if_expression"},{include:"#expressions"},{include:"#local_identifiers"}]},char_escapes:{match:/\\(?:["\\nrt]|u(\p{AHex}{8}|\p{AHex}{4}))/dgv,name:"constant.character.escape.hcl"},comma:{match:/,/dgv,name:"punctuation.separator.hcl"},comments:{patterns:[{include:"#hash_line_comments"},{include:"#double_slash_line_comments"},{include:"#block_inline_comments"}]},double_slash_line_comments:{begin:/\/\//dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.double-slash.hcl"},expressions:{patterns:[{include:"#literal_values"},{include:"#operators"},{include:"#tuple_for_expression"},{include:"#object_for_expression"},{include:"#brackets"},{include:"#objects"},{include:"#attribute_access"},{include:"#attribute_splat"},{include:"#functions"},{include:"#parens"}]},for_expression_body:{patterns:[{match:/\bin\b/dgv,name:"keyword.operator.word.hcl"},{match:/\bif\b/dgv,name:"keyword.control.conditional.hcl"},{match:/:/dgv,name:"keyword.operator.hcl"},{include:"#expressions"},{include:"#comments"},{include:"#comma"},{include:"#local_identifiers"}]},functions:{begin:/([\-\:\p{L}\p{M}\p{N}\p{Pc}]+)(\()/dgv,beginCaptures:{"1":{patterns:[{match:/\b(core::)?(abs|abspath|alltrue|anytrue|base64decode|base64encode|base64gzip|base64sha256|base64sha512|basename|bcrypt|can|ceil|chomp|chunklist|cidrhost|cidrnetmask|cidrsubnet|cidrsubnets|coalesce|coalescelist|compact|concat|contains|csvdecode|dirname|distinct|element|endswith|file|filebase64|filebase64sha256|filebase64sha512|fileexists|filemd5|fileset|filesha1|filesha256|filesha512|flatten|floor|format|formatdate|formatlist|indent|index|join|jsondecode|jsonencode|keys|length|log|lookup|lower|matchkeys|max|md5|merge|min|nonsensitive|one|parseint|pathexpand|plantimestamp|pow|range|regex|regexall|replace|reverse|rsadecrypt|sensitive|setintersection|setproduct|setsubtract|setunion|sha1|sha256|sha512|signum|slice|sort|split|startswith|strcontains|strrev|substr|sum|templatefile|textdecodebase64|textencodebase64|timeadd|timecmp|timestamp|title|tobool|tolist|tomap|tonumber|toset|tostring|transpose|trim|trimprefix|trimspace|trimsuffix|try|upper|urlencode|uuid|uuidv5|values|yamldecode|yamlencode|zipmap)\b/dgv,name:"support.function.builtin.terraform"},{match:/\bprovider::\p{Alpha}[\-_\p{L}\p{M}\p{N}\p{Pc}]*::\p{Alpha}[\-_\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"support.function.provider.terraform"}]},"2":{name:"punctuation.section.parens.begin.hcl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.hcl"}},name:"meta.function-call.hcl",patterns:[{include:"#comments"},{include:"#expressions"},{include:"#comma"}]},hash_line_comments:{begin:/#/dgv,captures:{"0":{name:"punctuation.definition.comment.hcl"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.number-sign.hcl"},hcl_type_keywords:{match:/\b(any|string|number|bool|list|set|map|tuple|object)\b/dgv,name:"storage.type.hcl"},heredoc:{begin:/(<<-?)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\n?$)/dgv,beginCaptures:{"1":{name:"keyword.operator.heredoc.hcl"},"2":{name:"keyword.control.heredoc.hcl"}},end:/^\p{space}*\2\p{space}*(?=\n?$)()()/dgv,endCaptures:{"0":{name:"keyword.control.heredoc.hcl"}},name:"string.unquoted.heredoc.hcl",patterns:[{include:"#string_interpolation"}]},inline_for_expression:{captures:{"1":{name:"keyword.control.hcl"},"2":{patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"},{include:"#for_expression_body"}]}},match:/(for)\b([^\n]*)\n/dgv},inline_if_expression:{begin:/(if)\b/dgv,beginCaptures:{"1":{name:"keyword.control.conditional.hcl"}},end:/\n/dgv,patterns:[{include:"#expressions"},{include:"#comments"},{include:"#comma"},{include:"#local_identifiers"}]},language_constants:{match:/\b(true|false|null)\b/dgv,name:"constant.language.hcl"},literal_values:{patterns:[{include:"#numeric_literals"},{include:"#language_constants"},{include:"#string_literals"},{include:"#heredoc"},{include:"#hcl_type_keywords"},{include:"#named_value_references"}]},local_identifiers:{match:/\b(?!null|false|true)\p{Alpha}[\-_\p{Alpha}\p{Nd}]*\b/dgv,name:"variable.other.readwrite.hcl"},named_value_references:{match:/\b(var|local|module|data|path|terraform)\b/dgv,name:"variable.other.readwrite.terraform"},numeric_literals:{patterns:[{captures:{"1":{name:"punctuation.separator.exponent.hcl"}},match:/\b\p{Nd}+([Ee][\-\+]?)\p{Nd}+\b/dgv,name:"constant.numeric.float.hcl"},{captures:{"1":{name:"punctuation.separator.decimal.hcl"},"2":{name:"punctuation.separator.exponent.hcl"}},match:/\b\p{Nd}+(\.)\p{Nd}+(?:([Ee][\-\+]?)\p{Nd}+)?\b/dgv,name:"constant.numeric.float.hcl"},{match:/\b\p{Nd}+\b/dgv,name:"constant.numeric.integer.hcl"}]},object_for_expression:{begin:/(\{)\p{space}?(for)\b/dgv,beginCaptures:{"1":{name:"punctuation.section.braces.begin.hcl"},"2":{name:"keyword.control.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.braces.end.hcl"}},patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"},{include:"#for_expression_body"}]},object_key_values:{patterns:[{include:"#comments"},{include:"#literal_values"},{include:"#operators"},{include:"#tuple_for_expression"},{include:"#object_for_expression"},{include:"#heredoc"},{include:"#functions"}]},objects:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.braces.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.braces.end.hcl"}},name:"meta.braces.hcl",patterns:[{include:"#comments"},{include:"#objects"},{include:"#inline_for_expression"},{include:"#inline_if_expression"},{captures:{"1":{name:"meta.mapping.key.hcl variable.other.readwrite.hcl"},"2":{name:"keyword.operator.assignment.hcl",patterns:[{match:/=>/dgv,name:"storage.type.function.hcl"}]}},match:/\b((?!null|false|true)\p{Alpha}[\-_\p{Alpha}\p{Nd}]*)\p{space}*(=>?)\p{space}*/dgv},{captures:{"0":{patterns:[{include:"#named_value_references"}]},"1":{name:"meta.mapping.key.hcl string.quoted.double.hcl"},"2":{name:"punctuation.definition.string.begin.hcl"},"3":{name:"punctuation.definition.string.end.hcl"},"4":{name:"keyword.operator.hcl"}},match:/\b((")[^\n]*("))\p{space}*(=)\p{space}*/dgv},{begin:/^\p{space}*\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.hcl"}},end:/(\))\p{space}*([\:\=])\p{space}*/dgv,endCaptures:{"1":{name:"punctuation.section.parens.end.hcl"},"2":{name:"keyword.operator.hcl"}},name:"meta.mapping.key.hcl",patterns:[{include:"#named_value_references"},{include:"#attribute_access"}]},{include:"#object_key_values"}]},operators:{patterns:[{match:/>=/dgv,name:"keyword.operator.hcl"},{match:/<=/dgv,name:"keyword.operator.hcl"},{match:/==/dgv,name:"keyword.operator.hcl"},{match:/!=/dgv,name:"keyword.operator.hcl"},{match:/\+/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/-/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/\*/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/\//dgv,name:"keyword.operator.arithmetic.hcl"},{match:/%/dgv,name:"keyword.operator.arithmetic.hcl"},{match:/&&/dgv,name:"keyword.operator.logical.hcl"},{match:/\|\|/dgv,name:"keyword.operator.logical.hcl"},{match:/!/dgv,name:"keyword.operator.logical.hcl"},{match:/>/dgv,name:"keyword.operator.hcl"},{match:/</dgv,name:"keyword.operator.hcl"},{match:/\?/dgv,name:"keyword.operator.hcl"},{match:/\.\.\./dgv,name:"keyword.operator.hcl"},{match:/:/dgv,name:"keyword.operator.hcl"},{match:/=>/dgv,name:"keyword.operator.hcl"}]},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.hcl"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.parens.end.hcl"}},patterns:[{include:"#comments"},{include:"#expressions"}]},string_interpolation:{begin:/(?<![\$\%])([\$\%]\{)/dgv,beginCaptures:{"1":{name:"keyword.other.interpolation.begin.hcl"}},end:/\}/dgv,endCaptures:{"0":{name:"keyword.other.interpolation.end.hcl"}},name:"meta.interpolation.hcl",patterns:[{match:/~\p{space}/dgv,name:"keyword.operator.template.left.trim.hcl"},{match:/\p{space}~/dgv,name:"keyword.operator.template.right.trim.hcl"},{match:/\b(if|else|endif|for|in|endfor)\b/dgv,name:"keyword.control.hcl"},{include:"#expressions"},{include:"#local_identifiers"}]},string_literals:{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.hcl"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.hcl"}},name:"string.quoted.double.hcl",patterns:[{include:"#string_interpolation"},{include:"#char_escapes"}]},tuple_for_expression:{begin:/(\[)\p{space}?(for)\b/dgv,beginCaptures:{"1":{name:"punctuation.section.brackets.begin.hcl"},"2":{name:"keyword.control.hcl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.brackets.end.hcl"}},patterns:[{include:"#for_expression_body"}]}},scopeName:"source.hcl.terraform",embeddedLangs:undefined,aliases:["tf","tfvars"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/tex.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
import r from './r.mjs'
|
|
3
3
|
|
|
4
|
-
const lang = Object.freeze({displayName:"TeX",name:"tex",patterns:[{
|
|
4
|
+
const lang = Object.freeze({displayName:"TeX",name:"tex",patterns:[{include:"#iffalse-block"},{include:"#macro-control"},{include:"#catcode"},{include:"#comment"},{match:/[\]\[]/dgv,name:"punctuation.definition.brackets.tex"},{include:"#dollar-math"},{match:/\\\\/dgv,name:"keyword.control.newline.tex"},{include:"#macro-general"}],repository:{braces:{begin:/(?<!\\)\{/dgv,beginCaptures:{"0":{name:"punctuation.group.begin.tex"}},end:/(?<!\\)\}/dgv,endCaptures:{"0":{name:"punctuation.group.end.tex"}},name:"meta.group.braces.tex",patterns:[{include:"#braces"}]},catcode:{captures:{"1":{name:"keyword.control.catcode.tex"},"2":{name:"punctuation.definition.keyword.tex"},"3":{name:"punctuation.separator.key-value.tex"},"4":{name:"constant.numeric.category.tex"}},match:/((\\)catcode)`\\?[^\n](=)(\p{Nd}+)/dgv,name:"meta.catcode.tex"},comment:{begin:/(^[\t ]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.tex"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/%:?/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.tex"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.percentage.tex"},{begin:/^(%!TEX) (\P{space}*) =/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.tex"}},end:/(?=\n?$)\n?/dgv,name:"comment.line.percentage.directive.tex"}]},conditionals:{begin:/(?<=^\p{space}*)\\if[a-z]*/dgv,end:/(?<=^\p{space}*)\\fi/dgv,patterns:[{include:"#comment"},{include:"#conditionals"}]},"dollar-math":{begin:/(\$(?:\$|))/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.tex"}},end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.tex"}},name:"meta.math.block.tex support.class.math.block.tex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.tex"},{include:"#math-content"},{include:"$self"}]},"iffalse-block":{begin:/(?<=^\p{space}*)((\\)iffalse)(?!\p{space}*[\{\}]\p{space}*\\fi)/dgv,beginCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},contentName:"comment.line.percentage.tex",end:/((\\)(?:else|fi))/dgv,endCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},patterns:[{include:"#comment"},{include:"#braces"},{include:"#conditionals"}]},"macro-control":{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![\@-Za-z])/dgv,name:"keyword.control.tex"},"macro-general":{patterns:[{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)_*[\@\p{Alphabetic}]+(?:_[\@\p{Alphabetic}]+)*:[DFNTVcefnopvwx]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\.)[\@\p{Alphabetic}]+(?:_[\@\p{Alphabetic}]+)*:[DFNTVcefnopvwx]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)(?:[\,\;]|[\@\p{Alphabetic}]+)/dgv,name:"support.function.general.tex"},{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)[^\@-Za-z]/dgv,name:"constant.character.escape.tex"}]},"math-content":{patterns:[{begin:/((\\)(?:text|mbox))(\{)/dgv,beginCaptures:{"1":{name:"constant.other.math.tex"},"2":{name:"punctuation.definition.function.tex"},"3":{name:"punctuation.definition.arguments.begin.tex meta.text.normal.tex"}},contentName:"meta.text.normal.tex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.tex meta.text.normal.tex"}},patterns:[{include:"#math-content"},{include:"$self"}]},{match:/\\[\{\}]/dgv,name:"punctuation.math.bracket.pair.tex"},{match:/\\(left|right|((big|bigg|Big|Bigg)[lr]?))([\]\(\)\.\<\>\[\|]|\\[\{\|\}]|\\[lr]?[Vv]ert|\\[lr]angle)/dgv,name:"punctuation.math.bracket.pair.big.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c([au]p)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook((?:lef|righ)tarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n([ew]arrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v([Dd]ash)|warrow|le(ss|q(slant|q)?|ft((?:|right)arrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left((?:|right)arrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot([ps])?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee((?:down|up)arrow)?|wedge((?:down|up)arrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead((?:lef|righ)tarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u([bp]set))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C([au]p)|u(n([lr]hd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t([ah])|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P((?:[hs]|)i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left((?:|right)arrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot([ps])|e(ss(sim|dot|eq((?:q|)gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V((?:|v)dash)|r(h([do])|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq((?:q|)less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc([au]p))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left((?:|right)arrow)|rightarrow|maps(to|from))|eft((?:|right)arrow)|leftarrow|ambda|bag)|Arrownot)(?![\\@-Za-z])","dgv",{"lazyCompile":true}),name:"constant.character.math.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\b/dgv,name:"constant.character.math.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\b/dgv,name:"constant.other.math.tex"},{begin:/((\\)Sexpr(\{))/dgv,beginCaptures:{"1":{name:"support.function.sexpr.math.tex"},"2":{name:"punctuation.definition.function.math.tex"},"3":{name:"punctuation.section.embedded.begin.math.tex"}},contentName:"support.function.sexpr.math.tex",end:/(((\})))/dgv,endCaptures:{"1":{name:"support.function.sexpr.math.tex"},"2":{name:"punctuation.section.embedded.end.math.tex"},"3":{name:"source.r"}},name:"meta.embedded.line.r",patterns:[{begin:/(?!\})/dgvy,end:/(?=\})/dgv,name:"source.r",patterns:[{include:"source.r"}]}]},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(?!begin\{|verb)([A-Za-z]+)/dgv,name:"constant.other.general.math.tex"},{match:/(?<!\\)\{/dgv,name:"punctuation.math.begin.bracket.curly.tex"},{match:/(?<!\\)\}/dgv,name:"punctuation.math.end.bracket.curly.tex"},{match:/(?<!\\)\(/dgv,name:"punctuation.math.begin.bracket.round.tex"},{match:/(?<!\\)\)/dgv,name:"punctuation.math.end.bracket.round.tex"},{match:/(([0-9]*\.[0-9]+)|[0-9]+)/dgv,name:"constant.numeric.math.tex"},{match:/[\-\*\+\/]|(?<!\^)\^(?!\^)|(?<!_)_(?!_)/dgv,name:"punctuation.math.operator.tex"}]}},scopeName:"text.tex",embeddedLangs:["r"],aliases:undefined})
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
7
|
...r,
|
package/dist/toml.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"TOML",fileTypes:["toml"],name:"toml",patterns:[{include:"#comments"},{include:"#groups"},{include:"#key_pair"},{include:"#invalid"}],repository:{comments:{begin:/(^[
|
|
3
|
+
const lang = Object.freeze({displayName:"TOML",fileTypes:["toml"],name:"toml",patterns:[{include:"#comments"},{include:"#groups"},{include:"#key_pair"},{include:"#invalid"}],repository:{comments:{begin:/(^[\t ]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.toml"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.toml"}},end:/\n/dgv,name:"comment.line.number-sign.toml"}]},groups:{patterns:[{captures:{"1":{name:"punctuation.definition.section.begin.toml"},"2":{patterns:[{match:/[^\.\p{space}]+/dgv,name:"entity.name.section.toml"}]},"3":{name:"punctuation.definition.section.begin.toml"}},match:/^\p{space}*(\[)([^\]\[]*)(\])/dgv,name:"meta.group.toml"},{captures:{"1":{name:"punctuation.definition.section.begin.toml"},"2":{patterns:[{match:/[^\.\p{space}]+/dgv,name:"entity.name.section.toml"}]},"3":{name:"punctuation.definition.section.begin.toml"}},match:/^\p{space}*(\[\[)([^\]\[]*)(\]\])/dgv,name:"meta.group.double.toml"}]},invalid:{match:/\P{space}+(\p{space}*(?=\P{space}))?/dgv,name:"invalid.illegal.not-allowed-here.toml"},key_pair:{patterns:[{begin:/([\-0-9A-Z_a-z]+)\p{space}*(=)\p{space}*/dgv,captures:{"1":{name:"variable.other.key.toml"},"2":{name:"punctuation.separator.key-value.toml"}},end:/(?<=\P{space})(?<!=)|(?=\n?$)/dgv,patterns:[{include:"#primatives"}]},{begin:/((")([^\n]*?)("))\p{space}*(=)\p{space}*/dgv,captures:{"1":{name:"variable.other.key.toml"},"2":{name:"punctuation.definition.variable.begin.toml"},"3":{patterns:[{match:/\\(["\\bfnrt]|u\p{AHex}{4}|U\p{AHex}{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^"\\bfnrt]/dgv,name:"invalid.illegal.escape.toml"},{match:/"/dgv,name:"invalid.illegal.not-allowed-here.toml"}]},"4":{name:"punctuation.definition.variable.end.toml"},"5":{name:"punctuation.separator.key-value.toml"}},end:/(?<=\P{space})(?<!=)|(?=\n?$)/dgv,patterns:[{include:"#primatives"}]},{begin:/((')([^']*)('))\p{space}*(=)\p{space}*/dgv,captures:{"1":{name:"variable.other.key.toml"},"2":{name:"punctuation.definition.variable.begin.toml"},"4":{name:"punctuation.definition.variable.end.toml"},"5":{name:"punctuation.separator.key-value.toml"}},end:/(?<=\P{space})(?<!=)|(?=\n?$)/dgv,patterns:[{include:"#primatives"}]},{begin:/(((?:[\-0-9A-Z_a-z]+|"(?:[^"\\]|\\[^\n])*"|'[^']*')(?:\p{space}*\.\p{space}*|(?=\p{space}*=))){2,})\p{space}*(=)\p{space}*/dgv,captures:{"1":{name:"variable.other.key.toml",patterns:[{match:/\./dgv,name:"punctuation.separator.variable.toml"},{captures:{"1":{name:"punctuation.definition.variable.begin.toml"},"2":{patterns:[{match:/\\(["\\bfnrt]|u\p{AHex}{4}|U\p{AHex}{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^"\\bfnrt]/dgv,name:"invalid.illegal.escape.toml"}]},"3":{name:"punctuation.definition.variable.end.toml"}},match:/(")((?:[^"\\]|\\[^\n])*)(")/dgv},{captures:{"1":{name:"punctuation.definition.variable.begin.toml"},"2":{name:"punctuation.definition.variable.end.toml"}},match:/(')[^']*(')/dgv}]},"3":{name:"punctuation.separator.key-value.toml"}},end:/(?<=\P{space})(?<!=)|(?=\n?$)/dgv,patterns:[{include:"#primatives"}]}]},primatives:{patterns:[{begin:/"""/dgvy,beginCaptures:{"0":{name:"punctuation.definition.string.begin.toml"}},end:/"{3,5}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.toml"}},name:"string.quoted.triple.double.toml",patterns:[{match:/\\(["\\bfnrt]|u\p{AHex}{4}|U\p{AHex}{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^\n"\\bfnrt]/dgv,name:"invalid.illegal.escape.toml"}]},{begin:/"/dgvy,beginCaptures:{"0":{name:"punctuation.definition.string.begin.toml"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.toml"}},name:"string.quoted.double.toml",patterns:[{match:/\\(["\\bfnrt]|u\p{AHex}{4}|U\p{AHex}{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^"\\bfnrt]/dgv,name:"invalid.illegal.escape.toml"}]},{begin:/'''/dgvy,beginCaptures:{"0":{name:"punctuation.definition.string.begin.toml"}},end:/'{3,5}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.toml"}},name:"string.quoted.triple.single.toml"},{begin:/'/dgvy,beginCaptures:{"0":{name:"punctuation.definition.string.begin.toml"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.toml"}},name:"string.quoted.single.toml"},{match:/[0-9]{4}-(0[1-9]|1[012])-(?!00|3[2-9])[0-3][0-9]([ Tt](?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\.[0-9]+)?(Z|[\-\+](?!2[5-9])[012][0-9]:[0-5][0-9])?)?/dgvy,name:"constant.other.date.toml"},{match:/(?!2[5-9])[012][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\.[0-9]+)?/dgvy,name:"constant.other.time.toml"},{match:/(true|false)/dgvy,name:"constant.language.boolean.toml"},{match:/0x\p{AHex}((?:|_)\p{AHex})*/dgvy,name:"constant.numeric.hex.toml"},{match:/0o[0-7]([0-7]|_[0-7])*/dgvy,name:"constant.numeric.octal.toml"},{match:/0b[01]([01]|_[01])*/dgvy,name:"constant.numeric.binary.toml"},{match:/[\-\+]?(inf|nan)/dgvy,name:"constant.numeric.toml"},{match:/([\-\+]?(0|([1-9](([0-9]|_[0-9])+)?)))(?=[\.Ee])(\.([0-9](([0-9]|_[0-9])+)?))?([Ee]([\-\+]?[0-9](([0-9]|_[0-9])+)?))?/dgvy,name:"constant.numeric.float.toml"},{match:/([\-\+]?(0|([1-9](([0-9]|_[0-9])+)?)))/dgvy,name:"constant.numeric.integer.toml"},{begin:/\[/dgvy,beginCaptures:{"0":{name:"punctuation.definition.array.begin.toml"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.array.end.toml"}},name:"meta.array.toml",patterns:[{begin:/(?=["']|[\-\+]?[0-9]|[\-\+]?(inf|nan)|true|false|[\[\{])/dgv,end:/,|(?=\])/dgv,endCaptures:{"0":{name:"punctuation.separator.array.toml"}},patterns:[{include:"#primatives"},{include:"#comments"},{include:"#invalid"}]},{include:"#comments"},{include:"#invalid"}]},{begin:/\{/dgvy,beginCaptures:{"0":{name:"punctuation.definition.inline-table.begin.toml"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.inline-table.end.toml"}},name:"meta.inline-table.toml",patterns:[{begin:/(?=\P{space})/dgv,end:/,|(?=\})/dgv,endCaptures:{"0":{name:"punctuation.separator.inline-table.toml"}},patterns:[{include:"#key_pair"}]},{include:"#comments"}]}]}},scopeName:"source.toml",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|