@shikijs/langs-precompiled 2.3.1 → 2.3.2
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/actionscript-3.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/bsl.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/docker.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fish.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/git-commit.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/haskell.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/html.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/jssm.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.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/nim.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/perl.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +3 -3
package/dist/stylus.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"Stylus",fileTypes:["styl","stylus","css.styl","css.stylus"],name:"stylus",patterns:[{include:"#comment"},{include:"#at_rule"},{include:"#language_keywords"},{include:"#language_constants"},{include:"#variable_declaration"},{include:"#function"},{include:"#selector"},{include:"#declaration"},{captures:{"1":{name:"punctuation.section.property-list.begin.css"},"2":{name:"punctuation.section.property-list.end.css"}},match:/(\{)(\})/dgv,name:"meta.brace.curly.css"},{match:/\{|\}/dgv,name:"meta.brace.curly.css"},{include:"#numeric"},{include:"#string"},{include:"#operator"}],repository:{at_rule:{patterns:[{begin:/\p{space}*((@)(import|require))\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.import.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.import.css",patterns:[{include:"#string"}]},{begin:/\p{space}*((@)(extend[s]?)\b)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.extend.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.extend.css",patterns:[{include:"#selector"}]},{captures:{"1":{name:"keyword.control.at-rule.fontface.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)font-face)\b/dgv,name:"meta.at-rule.fontface.stylus"},{captures:{"1":{name:"keyword.control.at-rule.css.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)css)\b/dgv,name:"meta.at-rule.css.stylus"},{begin:/\p{space}*((@)charset)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.charset.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,name:"meta.at-rule.charset.stylus",patterns:[{include:"#string"}]},{begin:/\p{space}*((@)keyframes)\b\p{space}+([a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.keyframes.stylus"},"2":{name:"punctuation.definition.keyword.stylus"},"3":{name:"entity.name.function.keyframe.stylus"}},end:/\p{space}*((?=\{|(?=\n?$)|\n))/dgv,name:"meta.at-rule.keyframes.stylus"},{begin:/(?=(\b(\p{Nd}+%|from\b|to\b)))/dgv,end:/(?=(\{|\n))/dgv,name:"meta.at-rule.keyframes.stylus",patterns:[{match:/(\b(\p{Nd}+%|from\b|to\b))/dgv,name:"entity.other.attribute-name.stylus"}]},{captures:{"1":{name:"keyword.control.at-rule.media.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)media)\b/dgv,name:"meta.at-rule.media.stylus"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(width|scan|resolution|orientation|monochrome|min-width|min-resolution|min-monochrome|min-height|min-device-width|min-device-height|min-device-aspect-ratio|min-color-index|min-color|min-aspect-ratio|max-width|max-resolution|max-monochrome|max-height|max-device-width|max-device-height|max-device-aspect-ratio|max-color-index|max-color|max-aspect-ratio|height|grid|device-width|device-height|device-aspect-ratio|color-index|color|aspect-ratio)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.type.property-name.media-feature.media.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.media-type.media.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(portrait|landscape)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.media-property.media.css"}]},char_escape:{match:/\\([^\n])/dgv,name:"constant.character.escape.stylus"},color:{patterns:[{begin:/\b(rgb|rgba|hsl|hsla)(\()/dgv,beginCaptures:{"1":{name:"support.function.color.css"},"2":{name:"punctuation.section.function.css"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.css"}},name:"meta.function.color.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#property_variable"}]},{captures:{"1":{name:"punctuation.definition.constant.css"}},match:/(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b/dgv,name:"constant.other.color.rgb-value.css"},{comment:"http://www.w3.org/TR/CSS21/syndata.html#value-def-color",match:/\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b/dgv,name:"support.constant.color.w3c-standard-color-name.css"},{comment:"http://www.w3.org/TR/css3-color/#svg-color",match:/\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b/dgv,name:"support.constant.color.w3c-extended-color-name.css"}]},comment:{patterns:[{include:"#comment_block"},{include:"#comment_line"}]},comment_block:{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.css"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.css"}},name:"comment.block.css"},comment_line:{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.stylus"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.stylus"}},end:/(?=\n)/dgv,name:"comment.line.double-slash.stylus"}]},declaration:{begin:/((?<=^)[^\P{space}\n]+)|((?<=;)[^\P{space}\n]*)|((?<=\{)[^\P{space}\n]*)/dgv,end:/(?=\n)|(;)|(?=\})|(\n)/dgv,endCaptures:{"2":{name:"punctuation.terminator.rule.css"}},name:"meta.property-list.css",patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{include:"#language_keywords"},{include:"#language_constants"},{match:/(?<=^)[^\P{space}\n]+(\n)/dgv},{captures:{"1":{name:"support.type.property-name.css"},"2":{name:"punctuation.separator.key-value.css"},"3":{name:"variable.section.css"}},match:/\p{space}*(counter-reset|counter-increment)(?:(:)|[^\P{space}\n])[^\P{space}\n]*([a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgvy,name:"meta.property.counter.css"},{begin:/\p{space}*(filter)(?:(:)|[^\P{space}\n])[^\P{space}\n]*/dgvy,beginCaptures:{"1":{name:"support.type.property-name.css"},"2":{name:"punctuation.separator.key-value.css"}},end:/(?=\n|;|\}|(?=\n?$))/dgv,name:"meta.property.filter.css",patterns:[{include:"#function"},{include:"#property_values"}]},{include:"#property"},{include:"#interpolation"},{include:"$self"}]},font_name:{match:/(\b(?:arial|century|comic|courier|cursive|fantasy|futura|garamond|georgia|helvetica|impact|lucida|monospace|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif)\b)/dgiv,name:"support.constant.font-name.css"},function:{begin:/(?=[a-zA-Z_\-][a-zA-Z0-9_\-]*\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.css"}},patterns:[{begin:/(format|url|local)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.css",patterns:[{match:/(?<=\()[^\)\p{space}]*(?=\))/dgv,name:"string.css"},{include:"#string"},{include:"#variable"},{include:"#operator"},{match:/\p{space}*/dgv}]},{captures:{"1":{name:"support.function.misc.counter.css"},"2":{name:"punctuation.section.function.css"},"3":{name:"variable.section.css"}},match:/(counter)(\()([a-zA-Z_\-][a-zA-Z0-9_\-]*)(?=\))/dgv,name:"meta.function.misc.counter.css"},{begin:/(counters)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.counters.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.counters.css",patterns:[{match:/[a-zA-Z_\-][a-zA-Z0-9_\-]*/dgvy,name:"variable.section.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#string"},{include:"#interpolation"}]},{begin:/(attr)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.attr.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.attr.css",patterns:[{match:/[a-zA-Z_\-][a-zA-Z0-9_\-]*/dgvy,name:"entity.other.attribute-name.attribute.css"},{match:/(?<=[a-zA-Z0-9_\-])\p{space}*\b(string|color|url|integer|number|length|em|ex|px|rem|vw|vh|vmin|vmax|mm|cm|in|pt|pc|angle|deg|grad|rad|time|s|ms|frequency|Hz|kHz|%)\b/dgv,name:"support.type.attr.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#string"},{include:"#interpolation"}]},{begin:/(calc)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.calc.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.calc.css",patterns:[{include:"#property_values"}]},{begin:/(cubic-bezier)(\()/dgv,beginCaptures:{"1":{name:"support.function.timing.cubic-bezier.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.timing.cubic-bezier.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#interpolation"}]},{begin:/(steps)(\()/dgv,beginCaptures:{"1":{name:"support.function.timing.steps.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.timing.steps.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{match:/\b(start|end)\b/dgv,name:"support.constant.timing.steps.direction.css"},{include:"#interpolation"}]},{begin:/(linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient)(\()/dgv,beginCaptures:{"1":{name:"support.function.gradient.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.gradient.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#color"},{match:/\b(to|bottom|right|left|top|circle|ellipse|center|closest-side|closest-corner|farthest-side|farthest-corner|at)\b/dgv,name:"support.constant.gradient.css"},{include:"#interpolation"}]},{begin:/(blur|brightness|contrast|grayscale|hue-rotate|invert|opacity|saturate|sepia)(\()/dgv,beginCaptures:{"1":{name:"support.function.filter.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.filter.css",patterns:[{include:"#numeric"},{include:"#property_variable"},{include:"#interpolation"}]},{begin:/(drop-shadow)(\()/dgv,beginCaptures:{"1":{name:"support.function.filter.drop-shadow.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.filter.drop-shadow.css",patterns:[{include:"#numeric"},{include:"#color"},{include:"#property_variable"},{include:"#interpolation"}]},{begin:/(matrix|matrix3d|perspective|rotate|rotate3d|rotate[Xx]|rotate[yY]|rotate[zZ]|scale|scale3d|scale[xX]|scale[yY]|scale[zZ]|skew|skew[xX]|skew[yY]|translate|translate3d|translate[xX]|translate[yY]|translate[zZ])(\()/dgv,beginCaptures:{"1":{name:"support.function.transform.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.transform.css",patterns:[{include:"#numeric"},{include:"#property_variable"},{include:"#interpolation"}]},{match:/(url|local|format|counter|counters|attr|calc)(?=\()/dgv,name:"support.function.misc.css"},{match:/(cubic-bezier|steps)(?=\()/dgv,name:"support.function.timing.css"},{match:/(linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient)(?=\()/dgv,name:"support.function.gradient.css"},{match:/(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)(?=\()/dgv,name:"support.function.filter.css"},{match:/(matrix|matrix3d|perspective|rotate|rotate3d|rotate[Xx]|rotate[yY]|rotate[zZ]|scale|scale3d|scale[xX]|scale[yY]|scale[zZ]|skew|skew[xX]|skew[yY]|translate|translate3d|translate[xX]|translate[yY]|translate[zZ])(?=\()/dgv,name:"support.function.transform.css"},{begin:/([a-zA-Z_\-][a-zA-Z0-9_\-]*)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.stylus"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.stylus",patterns:[{match:/--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.argument.stylus"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#interpolation"},{include:"#property_values"}]},{match:/\(/dgv,name:"punctuation.section.function.css"}]},interpolation:{begin:/(\{)[^\P{space}\n]*(?=[^\;\=]*[^\P{space}\n]*\})/dgv,beginCaptures:{"1":{name:"meta.brace.curly"}},end:/[^\P{space}\n]*(\})|\n|(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.curly"}},name:"meta.interpolation.stylus",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#string"},{include:"#operator"}]},language_constants:{match:/\b(true|false|null)\b/dgv,name:"constant.language.stylus"},language_keywords:{patterns:[{match:/(\b|\p{space})(return|else|for|unless|if|else)\b/dgv,name:"keyword.control.stylus"},{match:/(\b|\p{space})(!important|in|is defined|is a)\b/dgv,name:"keyword.other.stylus"},{match:/\barguments\b/dgv,name:"variable.language.stylus"}]},numeric:{patterns:[{captures:{"1":{name:"keyword.other.unit.css"}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}]|-)(?:(?:-|\+)?[0-9]+(?:\.[0-9]+)?|\.[0-9]+)((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|dppx|fr|ms|s|turn|vh|vmax|vmin|vw)\b|%)?/dgv,name:"constant.numeric.css"}]},operator:{patterns:[{match:/((?:\?|:|!|~|\+|(\p{space}-\p{space})|(?:\*)?\*|\/|%|(\.)?\.\.|<|>|(?:=|:|\?|\+|-|\*|\/|%|<|>)?=|!=)|\b(?:in|is(?:nt)?|(?<!:)not|or|and)\b)/dgv,name:"keyword.operator.stylus"},{include:"#char_escape"}]},property:{begin:/*@__PURE__*/ new EmulatedRegExp("\\p{space}*(?:(-webkit-[\\-A-Za-z]+|-moz-[\\-A-Za-z]+|-o-[\\-A-Za-z]+|-ms-[\\-A-Za-z]+|-khtml-[\\-A-Za-z]+|zoom|z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|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|variant|user-select|up|unicode-bidi|unicode-range|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|mix-blend-mode|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|mask-image|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-height|line-break|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|gap|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-start|grid-row|grid-row-end|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|row-gap|gap|font-kerning|font-language-override|font-weight|font-variant-caps|font-variant|font-style|font-synthesis|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|family|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|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|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-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|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-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-blend-mode|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation-fill-mode|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust|will-change)|(writing-mode|text-anchor|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|shape-rendering|marker-start|marker-mid|marker-end|lighting-color|kerning|image-rendering|glyph-orientation-vertical|glyph-orientation-horizontal|flood-opacity|flood-color|fill-rule|fill-opacity|fill|enable-background|color-rendering|color-interpolation-filters|color-interpolation|clip-rule|clip-path)|([a-zA-Z_\\-][a-zA-Z0-9_\\-]*))(?!([^\\P{space}\\n]*&)|([^\\P{space}\\n]*\\{))(?=:|([^\\P{space}\\n]+[^\\p{space}]))","dgvy",{"lazyCompile":true}),beginCaptures:{"1":{name:"support.type.property-name.css"},"2":{name:"support.type.property-name.svg.css"},"3":{name:"support.function.mixin.stylus"}},end:/(;)|(?=\n|\}|(?=\n?$))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"#property_value"}]},property_value:{begin:/(?:(:)|(\p{space}))(\p{space}*)(?!&)/dgvy,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"},"2":{name:"punctuation.separator.key-value.css"}},end:/(?=\n|;|\})/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.property-value.css",patterns:[{include:"#property_values"},{match:/[^\n]+?/dgv}]},property_values:{patterns:[{include:"#function"},{include:"#comment"},{include:"#language_keywords"},{include:"#language_constants"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(wrap-reverse|wrap|whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|unicase|underline|ultra-expanded|ultra-condensed|transparent|transform|top|titling-caps|thin|thick|text-top|text-bottom|text|tb-rl|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table|sw-resize|super|strict|stretch|step-start|step-end|static|square|space-between|space-around|space|solid|soft-light|small-caps|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|saturation|s-resize|running|rtl|row-reverse|row-resize|row|round|right|ridge|reverse|repeat-y|repeat-x|repeat|relative|progressive|progress|pre-wrap|pre-line|pre|pointer|petite-caps|paused|pan-x|pan-left|pan-right|pan-y|pan-up|pan-down|padding-box|overline|overlay|outside|outset|optimizeSpeed|optimizeLegibility|opacity|oblique|nw-resize|nowrap|not-allowed|normal|none|no-repeat|no-drop|newspaper|ne-resize|n-resize|multiply|move|middle|medium|max-height|manipulation|main-size|luminosity|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|local|list-item|linear(?!-)|line-through|line-edge|line|lighter|lighten|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline-block|inline|inherit|infinite|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|hue|horizontal|hidden|help|hard-light|hand|groove|geometricPrecision|forwards|flex-start|flex-end|flex|fixed|extra-expanded|extra-condensed|expanded|exclusion|ellipsis|ease-out|ease-in-out|ease-in|ease|e-resize|double|dotted|distribute-space|distribute-letter|distribute-all-lines|distribute|disc|disabled|difference|default|decimal|dashed|darken|currentColor|crosshair|cover|content-box|contain|condensed|column-reverse|column|color-dodge|color-burn|color|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|border-box|bolder|bold|block|bidi-override|below|baseline|balance|backwards|auto|antialiased|always|alternate-reverse|alternate|all-small-caps|all-scroll|all-petite-caps|all|absolute)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.svg.css"},{include:"#font_name"},{include:"#numeric"},{include:"#color"},{include:"#string"},{match:/!\p{space}*important/dgv,name:"keyword.other.important.css"},{include:"#operator"},{include:"#stylus_keywords"},{include:"#property_variable"}]},property_variable:{patterns:[{include:"#variable"},{match:/(?<!^)(@[a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,name:"variable.property.stylus"}]},selector:{patterns:[{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|main|map|mark|math|menu|menuitem|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|rb|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"entity.name.tag.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(vkern|view|use|tspan|tref|title|textPath|text|symbol|switch|svg|style|stop|set|script|rect|radialGradient|polyline|polygon|pattern|path|mpath|missing-glyph|metadata|mask|marker|linearGradient|line|image|hkern|glyphRef|glyph|g|foreignObject|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|ellipse|desc|defs|cursor|color-profile|clipPath|circle|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|a)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"entity.name.tag.svg.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"meta.selector.stylus"},{match:/\*/dgv,name:"meta.selector.stylus"},{captures:{"2":{name:"entity.other.attribute-name.parent-selector-suffix.stylus"}},match:/\p{space}*(&)([a-zA-Z0-9_\-]+)\p{space}*/dgv,name:"meta.selector.stylus"},{match:/\p{space}*(&)\p{space}*/dgv,name:"meta.selector.stylus"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(\.)[a-zA-Z0-9_\-]+/dgv,name:"entity.other.attribute-name.class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(#)[a-zA-Z][a-zA-Z0-9_\-]*/dgv,name:"entity.other.attribute-name.id.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:+)(after|before|content|first-letter|first-line|host|(-(moz|webkit|ms)-)?selection)\b/dgv,name:"entity.other.attribute-name.pseudo-element.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)((first|last)-child|(first|last|only)-of-type|empty|root|target|first|left|right)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)(checked|enabled|default|disabled|indeterminate|invalid|optional|required|valid)\b/dgv,name:"entity.other.attribute-name.pseudo-class.ui-state.css"},{begin:/((:)not)(\()/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.css"}},patterns:[{include:"#selector"}]},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.numeric.css"},"5":{name:"punctuation.section.function.css"}},match:/((:)nth-(?:(?:last-)?child|(?:last-)?of-type))(\()(-?(?:\p{Nd}+n?|n)(?:\+\p{Nd}+)?|even|odd)(\))/dgv},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"puncutation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.language.css"},"5":{name:"punctuation.section.function.css"}},match:/((:)dir)\p{space}*(?:(\()(ltr|rtl)?(\)))?/dgv},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"puncutation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.language.css"},"6":{name:"punctuation.section.function.css"}},match:/((:)lang)\p{space}*(?:(\()([\p{L}\p{M}\p{N}\p{Pc}]+(-[\p{L}\p{M}\p{N}\p{Pc}]+)?)?(\)))?/dgv},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)(active|hover|link|visited|focus)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(::)(shadow)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{name:"entity.other.attribute-name.attribute.css"},"3":{name:"punctuation.separator.operator.css"},"4":{name:"string.unquoted.attribute-value.css"},"5":{name:"string.quoted.double.attribute-value.css"},"6":{name:"punctuation.definition.string.begin.css"},"7":{name:"punctuation.definition.string.end.css"},"8":{name:"punctuation.definition.entity.css"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\[)\\p{space}*(-?[_a-z\\\\\\P{ASCII}][_a-z0-9\\-\\\\\\P{ASCII}]*)(?:\\p{space}*([\\~\\|\\^\\$\\*]?=)\\p{space}*(?:(-?[_a-z\\\\\\P{ASCII}][_a-z0-9\\-\\\\\\P{ASCII}]*)|((?:(?=((['\"])(?:[^\\\\]|\\\\[^\\n])*?(\\7)))\\6))))?\\p{space}*(\\])","dgiv",{"hiddenCaptures":[6]}),name:"meta.attribute-selector.css"},{include:"#interpolation"},{include:"#variable"}]},string:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.double.css",patterns:[{match:/\\([a-fA-F0-9]{1,6}|[^\n])/dgv,name:"constant.character.escape.css"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.single.css",patterns:[{match:/\\([a-fA-F0-9]{1,6}|[^\n])/dgv,name:"constant.character.escape.css"}]}]},variable:{match:/(\$[a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,name:"variable.stylus"},variable_declaration:{begin:/^[^\P{space}\n]*(\$?[a-zA-Z_\-][a-zA-Z0-9_\-]*)[^\P{space}\n]*(=|\?=|:=)/dgv,beginCaptures:{"1":{name:"variable.stylus"},"2":{name:"keyword.operator.stylus"}},end:/(\n)|(;)|(?=\})/dgv,endCaptures:{"2":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"#property_values"}]}},scopeName:"source.stylus",embeddedLangs:undefined,aliases:["styl"]})
|
|
3
|
+
const lang = Object.freeze({displayName:"Stylus",fileTypes:["styl","stylus","css.styl","css.stylus"],name:"stylus",patterns:[{include:"#comment"},{include:"#at_rule"},{include:"#language_keywords"},{include:"#language_constants"},{include:"#variable_declaration"},{include:"#function"},{include:"#selector"},{include:"#declaration"},{captures:{"1":{name:"punctuation.section.property-list.begin.css"},"2":{name:"punctuation.section.property-list.end.css"}},match:/(\{)(\})/dgv,name:"meta.brace.curly.css"},{match:/\{|\}/dgv,name:"meta.brace.curly.css"},{include:"#numeric"},{include:"#string"},{include:"#operator"}],repository:{at_rule:{patterns:[{begin:/\p{space}*((@)(import|require))\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.import.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.import.css",patterns:[{include:"#string"}]},{begin:/\p{space}*((@)(extend[s]?)\b)\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.extend.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.at-rule.extend.css",patterns:[{include:"#selector"}]},{captures:{"1":{name:"keyword.control.at-rule.fontface.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)font-face)\b/dgv,name:"meta.at-rule.fontface.stylus"},{captures:{"1":{name:"keyword.control.at-rule.css.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)css)\b/dgv,name:"meta.at-rule.css.stylus"},{begin:/\p{space}*((@)charset)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.charset.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},end:/\p{space}*((?=;|(?=\n?$)|\n))/dgv,name:"meta.at-rule.charset.stylus",patterns:[{include:"#string"}]},{begin:/\p{space}*((@)keyframes)\b\p{space}+([a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,beginCaptures:{"1":{name:"keyword.control.at-rule.keyframes.stylus"},"2":{name:"punctuation.definition.keyword.stylus"},"3":{name:"entity.name.function.keyframe.stylus"}},end:/\p{space}*((?=\{|(?=\n?$)|\n))/dgv,name:"meta.at-rule.keyframes.stylus"},{begin:/(?=(\b(\p{Nd}+%|from\b|to\b)))/dgv,end:/(?=(\{|\n))/dgv,name:"meta.at-rule.keyframes.stylus",patterns:[{match:/(\b(\p{Nd}+%|from\b|to\b))/dgv,name:"entity.other.attribute-name.stylus"}]},{captures:{"1":{name:"keyword.control.at-rule.media.stylus"},"2":{name:"punctuation.definition.keyword.stylus"}},match:/^\p{space}*((@)media)\b/dgv,name:"meta.at-rule.media.stylus"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(width|scan|resolution|orientation|monochrome|min-width|min-resolution|min-monochrome|min-height|min-device-width|min-device-height|min-device-aspect-ratio|min-color-index|min-color|min-aspect-ratio|max-width|max-resolution|max-monochrome|max-height|max-device-width|max-device-height|max-device-aspect-ratio|max-color-index|max-color|max-aspect-ratio|height|grid|device-width|device-height|device-aspect-ratio|color-index|color|aspect-ratio)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.type.property-name.media-feature.media.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.media-type.media.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(portrait|landscape)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.media-property.media.css"}]},char_escape:{match:/\\([^\n])/dgv,name:"constant.character.escape.stylus"},color:{patterns:[{begin:/\b(rgb|rgba|hsl|hsla)(\()/dgv,beginCaptures:{"1":{name:"support.function.color.css"},"2":{name:"punctuation.section.function.css"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.css"}},name:"meta.function.color.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#property_variable"}]},{captures:{"1":{name:"punctuation.definition.constant.css"}},match:/(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\b/dgv,name:"constant.other.color.rgb-value.css"},{match:/\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\b/dgv,name:"support.constant.color.w3c-standard-color-name.css"},{match:/\b(aliceblue|antiquewhite|aquamarine|azure|beige|bisque|blanchedalmond|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|gainsboro|ghostwhite|gold|goldenrod|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|limegreen|linen|magenta|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|oldlace|olivedrab|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\b/dgv,name:"support.constant.color.w3c-extended-color-name.css"}]},comment:{patterns:[{include:"#comment_block"},{include:"#comment_line"}]},comment_block:{begin:/\/\*/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.css"}},end:/\*\//dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.css"}},name:"comment.block.css"},comment_line:{begin:/(^[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.stylus"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"clip_search"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.stylus"}},end:/(?=\n)/dgv,name:"comment.line.double-slash.stylus"}]},declaration:{begin:/((?<=^)[^\P{space}\n]+)|((?<=;)[^\P{space}\n]*)|((?<=\{)[^\P{space}\n]*)/dgv,end:/(?=\n)|(;)|(?=\})|(\n)/dgv,endCaptures:{"2":{name:"punctuation.terminator.rule.css"}},name:"meta.property-list.css",patterns:[{match:/(?<![\p{L}\p{M}\p{N}\p{Pc}\-])--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.css"},{include:"#language_keywords"},{include:"#language_constants"},{match:/(?<=^)[^\P{space}\n]+(\n)/dgv},{captures:{"1":{name:"support.type.property-name.css"},"2":{name:"punctuation.separator.key-value.css"},"3":{name:"variable.section.css"}},match:/\p{space}*(counter-reset|counter-increment)(?:(:)|[^\P{space}\n])[^\P{space}\n]*([a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgvy,name:"meta.property.counter.css"},{begin:/\p{space}*(filter)(?:(:)|[^\P{space}\n])[^\P{space}\n]*/dgvy,beginCaptures:{"1":{name:"support.type.property-name.css"},"2":{name:"punctuation.separator.key-value.css"}},end:/(?=\n|;|\}|(?=\n?$))/dgv,name:"meta.property.filter.css",patterns:[{include:"#function"},{include:"#property_values"}]},{include:"#property"},{include:"#interpolation"},{include:"$self"}]},font_name:{match:/(\b(?:arial|century|comic|courier|cursive|fantasy|futura|garamond|georgia|helvetica|impact|lucida|monospace|symbol|system|tahoma|times|trebuchet|utopia|verdana|webdings|sans-serif|serif)\b)/dgiv,name:"support.constant.font-name.css"},function:{begin:/(?=[a-zA-Z_\-][a-zA-Z0-9_\-]*\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.css"}},patterns:[{begin:/(format|url|local)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.css",patterns:[{match:/(?<=\()[^\)\p{space}]*(?=\))/dgv,name:"string.css"},{include:"#string"},{include:"#variable"},{include:"#operator"},{match:/\p{space}*/dgv}]},{captures:{"1":{name:"support.function.misc.counter.css"},"2":{name:"punctuation.section.function.css"},"3":{name:"variable.section.css"}},match:/(counter)(\()([a-zA-Z_\-][a-zA-Z0-9_\-]*)(?=\))/dgv,name:"meta.function.misc.counter.css"},{begin:/(counters)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.counters.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.counters.css",patterns:[{match:/[a-zA-Z_\-][a-zA-Z0-9_\-]*/dgvy,name:"variable.section.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#string"},{include:"#interpolation"}]},{begin:/(attr)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.attr.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.attr.css",patterns:[{match:/[a-zA-Z_\-][a-zA-Z0-9_\-]*/dgvy,name:"entity.other.attribute-name.attribute.css"},{match:/(?<=[a-zA-Z0-9_\-])\p{space}*\b(string|color|url|integer|number|length|em|ex|px|rem|vw|vh|vmin|vmax|mm|cm|in|pt|pc|angle|deg|grad|rad|time|s|ms|frequency|Hz|kHz|%)\b/dgv,name:"support.type.attr.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#string"},{include:"#interpolation"}]},{begin:/(calc)(\()/dgv,beginCaptures:{"1":{name:"support.function.misc.calc.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.misc.calc.css",patterns:[{include:"#property_values"}]},{begin:/(cubic-bezier)(\()/dgv,beginCaptures:{"1":{name:"support.function.timing.cubic-bezier.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.timing.cubic-bezier.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#interpolation"}]},{begin:/(steps)(\()/dgv,beginCaptures:{"1":{name:"support.function.timing.steps.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.timing.steps.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{match:/\b(start|end)\b/dgv,name:"support.constant.timing.steps.direction.css"},{include:"#interpolation"}]},{begin:/(linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient)(\()/dgv,beginCaptures:{"1":{name:"support.function.gradient.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.gradient.css",patterns:[{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#numeric"},{include:"#color"},{match:/\b(to|bottom|right|left|top|circle|ellipse|center|closest-side|closest-corner|farthest-side|farthest-corner|at)\b/dgv,name:"support.constant.gradient.css"},{include:"#interpolation"}]},{begin:/(blur|brightness|contrast|grayscale|hue-rotate|invert|opacity|saturate|sepia)(\()/dgv,beginCaptures:{"1":{name:"support.function.filter.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.filter.css",patterns:[{include:"#numeric"},{include:"#property_variable"},{include:"#interpolation"}]},{begin:/(drop-shadow)(\()/dgv,beginCaptures:{"1":{name:"support.function.filter.drop-shadow.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.filter.drop-shadow.css",patterns:[{include:"#numeric"},{include:"#color"},{include:"#property_variable"},{include:"#interpolation"}]},{begin:/(matrix|matrix3d|perspective|rotate|rotate3d|rotate[Xx]|rotate[yY]|rotate[zZ]|scale|scale3d|scale[xX]|scale[yY]|scale[zZ]|skew|skew[xX]|skew[yY]|translate|translate3d|translate[xX]|translate[yY]|translate[zZ])(\()/dgv,beginCaptures:{"1":{name:"support.function.transform.css"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.transform.css",patterns:[{include:"#numeric"},{include:"#property_variable"},{include:"#interpolation"}]},{match:/(url|local|format|counter|counters|attr|calc)(?=\()/dgv,name:"support.function.misc.css"},{match:/(cubic-bezier|steps)(?=\()/dgv,name:"support.function.timing.css"},{match:/(linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient)(?=\()/dgv,name:"support.function.gradient.css"},{match:/(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)(?=\()/dgv,name:"support.function.filter.css"},{match:/(matrix|matrix3d|perspective|rotate|rotate3d|rotate[Xx]|rotate[yY]|rotate[zZ]|scale|scale3d|scale[xX]|scale[yY]|scale[zZ]|skew|skew[xX]|skew[yY]|translate|translate3d|translate[xX]|translate[yY]|translate[zZ])(?=\()/dgv,name:"support.function.transform.css"},{begin:/([a-zA-Z_\-][a-zA-Z0-9_\-]*)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.stylus"},"2":{name:"punctuation.section.function.css"}},end:/(?=\))/dgv,name:"meta.function.stylus",patterns:[{match:/--(?:[\-a-zA-Z_]|[^\x00-\x7F])(?:[\-a-zA-Z0-9_]|[^\x00-\x7F]|\\(?:[0-9a-fA-F]{1,6}|[^\n]))*/dgv,name:"variable.argument.stylus"},{match:/\p{space}*(,)\p{space}*/dgv,name:"punctuation.separator.parameter.css"},{include:"#interpolation"},{include:"#property_values"}]},{match:/\(/dgv,name:"punctuation.section.function.css"}]},interpolation:{begin:/(\{)[^\P{space}\n]*(?=[^\;\=]*[^\P{space}\n]*\})/dgv,beginCaptures:{"1":{name:"meta.brace.curly"}},end:/[^\P{space}\n]*(\})|\n|(?=\n?$)/dgv,endCaptures:{"1":{name:"meta.brace.curly"}},name:"meta.interpolation.stylus",patterns:[{include:"#variable"},{include:"#numeric"},{include:"#string"},{include:"#operator"}]},language_constants:{match:/\b(true|false|null)\b/dgv,name:"constant.language.stylus"},language_keywords:{patterns:[{match:/(\b|\p{space})(return|else|for|unless|if|else)\b/dgv,name:"keyword.control.stylus"},{match:/(\b|\p{space})(!important|in|is defined|is a)\b/dgv,name:"keyword.other.stylus"},{match:/\barguments\b/dgv,name:"variable.language.stylus"}]},numeric:{patterns:[{captures:{"1":{name:"keyword.other.unit.css"}},match:/(?<![\p{L}\p{M}\p{N}\p{Pc}]|-)(?:(?:-|\+)?[0-9]+(?:\.[0-9]+)?|\.[0-9]+)((?:px|pt|ch|cm|mm|in|r?em|ex|pc|deg|g?rad|dpi|dpcm|dppx|fr|ms|s|turn|vh|vmax|vmin|vw)\b|%)?/dgv,name:"constant.numeric.css"}]},operator:{patterns:[{match:/((?:\?|:|!|~|\+|(\p{space}-\p{space})|(?:\*)?\*|\/|%|(\.)?\.\.|<|>|(?:=|:|\?|\+|-|\*|\/|%|<|>)?=|!=)|\b(?:in|is(?:nt)?|(?<!:)not|or|and)\b)/dgv,name:"keyword.operator.stylus"},{include:"#char_escape"}]},property:{begin:/*@__PURE__*/ new EmulatedRegExp("\\p{space}*(?:(-webkit-[\\-A-Za-z]+|-moz-[\\-A-Za-z]+|-o-[\\-A-Za-z]+|-ms-[\\-A-Za-z]+|-khtml-[\\-A-Za-z]+|zoom|z-index|y|x|wrap|word-wrap|word-spacing|word-break|word|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|variant|user-select|up|unicode-bidi|unicode-range|unicode|trim|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-transform|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-justify|text-indent|text-height|text-emphasis|text-decoration|text-align-last|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|style-type|style-position|style-image|style|string-set|stretch|stress|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak|span|spacing|space-collapse|space|sizing|size-adjust|size|shadow|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-align|ruby|rows|rotation-point|rotation|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resize|reset|replace|repeat|rendering-intent|rate|radius|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-bottom|padding|pack|overhang|overflow-y|overflow-x|overflow-style|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset|numeral|new|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|model|mix-blend-mode|min-width|min-height|min|max-width|max-height|max|marquee-style|marquee-speed|marquee-play-count|marquee-direction|marquee|marks|mark-before|mark-after|mark|margin-top|margin-right|margin-left|margin-bottom|margin|mask-image|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-height|line-break|level|letter-spacing|length|left-width|left-style|left-color|left|label|justify-content|justify|iteration-count|inline-box-align|initial-value|initial-size|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-resolution|image-orientation|image|icon|hyphens|hyphenate-resource|hyphenate-lines|hyphenate-character|hyphenate-before|hyphenate-after|hyphenate|height|header|hanging-punctuation|gap|grid|grid-area|grid-auto-columns|grid-auto-flow|grid-auto-rows|grid-column|grid-column-end|grid-column-start|grid-row|grid-row-end|grid-row-start|grid-template|grid-template-areas|grid-template-columns|grid-template-rows|row-gap|gap|font-kerning|font-language-override|font-weight|font-variant-caps|font-variant|font-style|font-synthesis|font-stretch|font-size-adjust|font-size|font-family|font|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|fill|filter|family|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|cursor|cue-before|cue-after|cue|crop|counter-reset|counter-increment|counter|count|content|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-profile|color|collapse|clip|clear|character|caption-side|break-inside|break-before|break-after|break|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-length|border-left-width|border-left-style|border-left-color|border-left|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|bookmark-target|bookmark-level|bookmark-label|bookmark|binding|bidi|before|baseline-shift|baseline|balance|background-blend-mode|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-break|background-attachment|background|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-duration|animation-direction|animation-delay|animation-fill-mode|animation|alignment-baseline|alignment-adjust|alignment|align-self|align-last|align-items|align-content|align|after|adjust|will-change)|(writing-mode|text-anchor|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|stop-opacity|stop-color|shape-rendering|marker-start|marker-mid|marker-end|lighting-color|kerning|image-rendering|glyph-orientation-vertical|glyph-orientation-horizontal|flood-opacity|flood-color|fill-rule|fill-opacity|fill|enable-background|color-rendering|color-interpolation-filters|color-interpolation|clip-rule|clip-path)|([a-zA-Z_\\-][a-zA-Z0-9_\\-]*))(?!([^\\P{space}\\n]*&)|([^\\P{space}\\n]*\\{))(?=:|([^\\P{space}\\n]+[^\\p{space}]))","dgvy",{"lazyCompile":true}),beginCaptures:{"1":{name:"support.type.property-name.css"},"2":{name:"support.type.property-name.svg.css"},"3":{name:"support.function.mixin.stylus"}},end:/(;)|(?=\n|\}|(?=\n?$))/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"#property_value"}]},property_value:{begin:/(?:(:)|(\p{space}))(\p{space}*)(?!&)/dgvy,beginCaptures:{"1":{name:"punctuation.separator.key-value.css"},"2":{name:"punctuation.separator.key-value.css"}},end:/(?=\n|;|\})/dgv,endCaptures:{"1":{name:"punctuation.terminator.rule.css"}},name:"meta.property-value.css",patterns:[{include:"#property_values"},{match:/[^\n]+?/dgv}]},property_values:{patterns:[{include:"#function"},{include:"#comment"},{include:"#language_keywords"},{include:"#language_constants"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(wrap-reverse|wrap|whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|unicase|underline|ultra-expanded|ultra-condensed|transparent|transform|top|titling-caps|thin|thick|text-top|text-bottom|text|tb-rl|table-row-group|table-row|table-header-group|table-footer-group|table-column-group|table-column|table-cell|table|sw-resize|super|strict|stretch|step-start|step-end|static|square|space-between|space-around|space|solid|soft-light|small-caps|separate|semi-expanded|semi-condensed|se-resize|scroll|screen|saturation|s-resize|running|rtl|row-reverse|row-resize|row|round|right|ridge|reverse|repeat-y|repeat-x|repeat|relative|progressive|progress|pre-wrap|pre-line|pre|pointer|petite-caps|paused|pan-x|pan-left|pan-right|pan-y|pan-up|pan-down|padding-box|overline|overlay|outside|outset|optimizeSpeed|optimizeLegibility|opacity|oblique|nw-resize|nowrap|not-allowed|normal|none|no-repeat|no-drop|newspaper|ne-resize|n-resize|multiply|move|middle|medium|max-height|manipulation|main-size|luminosity|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|local|list-item|linear(?!-)|line-through|line-edge|line|lighter|lighten|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline-block|inline|inherit|infinite|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|hue|horizontal|hidden|help|hard-light|hand|groove|geometricPrecision|forwards|flex-start|flex-end|flex|fixed|extra-expanded|extra-condensed|expanded|exclusion|ellipsis|ease-out|ease-in-out|ease-in|ease|e-resize|double|dotted|distribute-space|distribute-letter|distribute-all-lines|distribute|disc|disabled|difference|default|decimal|dashed|darken|currentColor|crosshair|cover|content-box|contain|condensed|column-reverse|column|color-dodge|color-burn|color|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|border-box|bolder|bold|block|bidi-override|below|baseline|balance|backwards|auto|antialiased|always|alternate-reverse|alternate|all-small-caps|all-scroll|all-petite-caps|all|absolute)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(start|sRGB|square|round|optimizeSpeed|optimizeQuality|nonzero|miter|middle|linearRGB|geometricPrecision |evenodd |end |crispEdges|butt|bevel)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"support.constant.property-value.svg.css"},{include:"#font_name"},{include:"#numeric"},{include:"#color"},{include:"#string"},{match:/!\p{space}*important/dgv,name:"keyword.other.important.css"},{include:"#operator"},{include:"#stylus_keywords"},{include:"#property_variable"}]},property_variable:{patterns:[{include:"#variable"},{match:/(?<!^)(@[a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,name:"variable.property.stylus"}]},selector:{patterns:[{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(a|abbr|acronym|address|area|article|aside|audio|b|base|bdi|bdo|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|main|map|mark|math|menu|menuitem|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|rb|rp|rt|rtc|ruby|s|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|svg|table|tbody|td|template|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"entity.name.tag.css"},{match:/(?=[\p{L}\p{M}\p{N}\p{Pc}])(?<![\p{L}\p{M}\p{N}\p{Pc}\-])(vkern|view|use|tspan|tref|title|textPath|text|symbol|switch|svg|style|stop|set|script|rect|radialGradient|polyline|polygon|pattern|path|mpath|missing-glyph|metadata|mask|marker|linearGradient|line|image|hkern|glyphRef|glyph|g|foreignObject|font-face-uri|font-face-src|font-face-name|font-face-format|font-face|font|filter|feTurbulence|feTile|feSpotLight|feSpecularLighting|fePointLight|feOffset|feMorphology|feMergeNode|feMerge|feImage|feGaussianBlur|feFuncR|feFuncG|feFuncB|feFuncA|feFlood|feDistantLight|feDisplacementMap|feDiffuseLighting|feConvolveMatrix|feComposite|feComponentTransfer|feColorMatrix|feBlend|ellipse|desc|defs|cursor|color-profile|clipPath|circle|animateTransform|animateMotion|animateColor|animate|altGlyphItem|altGlyphDef|altGlyph|a)(?<=[\p{L}\p{M}\p{N}\p{Pc}])(?![\p{L}\p{M}\p{N}\p{Pc}\-])/dgv,name:"entity.name.tag.svg.css"},{match:/\p{space}*(,)\p{space}*/dgv,name:"meta.selector.stylus"},{match:/\*/dgv,name:"meta.selector.stylus"},{captures:{"2":{name:"entity.other.attribute-name.parent-selector-suffix.stylus"}},match:/\p{space}*(&)([a-zA-Z0-9_\-]+)\p{space}*/dgv,name:"meta.selector.stylus"},{match:/\p{space}*(&)\p{space}*/dgv,name:"meta.selector.stylus"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(\.)[a-zA-Z0-9_\-]+/dgv,name:"entity.other.attribute-name.class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(#)[a-zA-Z][a-zA-Z0-9_\-]*/dgv,name:"entity.other.attribute-name.id.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:+)(after|before|content|first-letter|first-line|host|(-(moz|webkit|ms)-)?selection)\b/dgv,name:"entity.other.attribute-name.pseudo-element.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)((first|last)-child|(first|last|only)-of-type|empty|root|target|first|left|right)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)(checked|enabled|default|disabled|indeterminate|invalid|optional|required|valid)\b/dgv,name:"entity.other.attribute-name.pseudo-class.ui-state.css"},{begin:/((:)not)(\()/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.css"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.css"}},patterns:[{include:"#selector"}]},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"punctuation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.numeric.css"},"5":{name:"punctuation.section.function.css"}},match:/((:)nth-(?:(?:last-)?child|(?:last-)?of-type))(\()(-?(?:\p{Nd}+n?|n)(?:\+\p{Nd}+)?|even|odd)(\))/dgv},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"puncutation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.language.css"},"5":{name:"punctuation.section.function.css"}},match:/((:)dir)\p{space}*(?:(\()(ltr|rtl)?(\)))?/dgv},{captures:{"1":{name:"entity.other.attribute-name.pseudo-class.css"},"2":{name:"puncutation.definition.entity.css"},"3":{name:"punctuation.section.function.css"},"4":{name:"constant.language.css"},"6":{name:"punctuation.section.function.css"}},match:/((:)lang)\p{space}*(?:(\()([\p{L}\p{M}\p{N}\p{Pc}]+(-[\p{L}\p{M}\p{N}\p{Pc}]+)?)?(\)))?/dgv},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(:)(active|hover|link|visited|focus)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"}},match:/(::)(shadow)\b/dgv,name:"entity.other.attribute-name.pseudo-class.css"},{captures:{"1":{name:"punctuation.definition.entity.css"},"2":{name:"entity.other.attribute-name.attribute.css"},"3":{name:"punctuation.separator.operator.css"},"4":{name:"string.unquoted.attribute-value.css"},"5":{name:"string.quoted.double.attribute-value.css"},"6":{name:"punctuation.definition.string.begin.css"},"7":{name:"punctuation.definition.string.end.css"},"8":{name:"punctuation.definition.entity.css"}},match:/*@__PURE__*/ new EmulatedRegExp("(\\[)\\p{space}*(-?[_a-z\\\\\\P{ASCII}][_a-z0-9\\-\\\\\\P{ASCII}]*)(?:\\p{space}*([\\~\\|\\^\\$\\*]?=)\\p{space}*(?:(-?[_a-z\\\\\\P{ASCII}][_a-z0-9\\-\\\\\\P{ASCII}]*)|((?:(?=((['\"])(?:[^\\\\]|\\\\[^\\n])*?(\\7)))\\6))))?\\p{space}*(\\])","dgiv",{"hiddenCaptures":[6]}),name:"meta.attribute-selector.css"},{include:"#interpolation"},{include:"#variable"}]},string:{patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.double.css",patterns:[{match:/\\([a-fA-F0-9]{1,6}|[^\n])/dgv,name:"constant.character.escape.css"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.css"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.css"}},name:"string.quoted.single.css",patterns:[{match:/\\([a-fA-F0-9]{1,6}|[^\n])/dgv,name:"constant.character.escape.css"}]}]},variable:{match:/(\$[a-zA-Z_\-][a-zA-Z0-9_\-]*)/dgv,name:"variable.stylus"},variable_declaration:{begin:/^[^\P{space}\n]*(\$?[a-zA-Z_\-][a-zA-Z0-9_\-]*)[^\P{space}\n]*(=|\?=|:=)/dgv,beginCaptures:{"1":{name:"variable.stylus"},"2":{name:"keyword.operator.stylus"}},end:/(\n)|(;)|(?=\})/dgv,endCaptures:{"2":{name:"punctuation.terminator.rule.css"}},patterns:[{include:"#property_values"}]}},scopeName:"source.stylus",embeddedLangs:undefined,aliases:["styl"]})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/tcl.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Tcl",fileTypes:["tcl"],foldingStartMarker:/\{\p{space}*(?=\n?$)/dgv,foldingStopMarker:/^\p{space}*\}/dgv,name:"tcl",patterns:[{begin:/(?<=^|;)\p{space}*((#))/dgv,beginCaptures:{"1":{name:"comment.line.number-sign.tcl"},"2":{name:"punctuation.definition.comment.tcl"}},contentName:"comment.line.number-sign.tcl",end:/\n/dgv,patterns:[{match:/(\\\\|\\\n)/dgv}]},{captures:{"1":{name:"keyword.control.tcl"}},match:/(?<=^|[\[\{\;])\p{space}*(if|while|for|catch|default|return|break|continue|switch|exit|foreach|try|throw)\b/dgv},{captures:{"1":{name:"keyword.control.tcl"}},match:/(?<=^|\})\p{space}*(then|elseif|else)\b/dgv},{captures:{"1":{name:"keyword.other.tcl"},"2":{name:"entity.name.function.tcl"}},match:/(?<=^|\{)\p{space}*(proc)\p{space}+([^\p{space}]+)/dgv},{captures:{"1":{name:"keyword.other.tcl"}},match:/(?<=^|[\[\{\;])\p{space}*(after|append|array|auto_execok|auto_import|auto_load|auto_mkindex|auto_mkindex_old|auto_qualify|auto_reset|bgerror|binary|cd|clock|close|concat|dde|encoding|eof|error|eval|exec|expr|fblocked|fconfigure|fcopy|file|fileevent|filename|flush|format|gets|glob|global|history|http|incr|info|interp|join|lappend|library|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|memory|msgcat|namespace|open|package|parray|pid|pkg::create|pkg_mkIndex|proc|puts|pwd|re_syntax|read|registry|rename|resource|scan|seek|set|socket|SafeBase|source|split|string|subst|Tcl|tcl_endOfWord|tcl_findLibrary|tcl_startOfNextWord|tcl_startOfPreviousWord|tcl_wordBreakAfter|tcl_wordBreakBefore|tcltest|tclvars|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait)\b/dgv},{begin:/(?<=^|[\[\{\;])\p{space}*(regexp|regsub)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.tcl"}},
|
|
1
|
+
const lang = Object.freeze({displayName:"Tcl",fileTypes:["tcl"],foldingStartMarker:/\{\p{space}*(?=\n?$)/dgv,foldingStopMarker:/^\p{space}*\}/dgv,name:"tcl",patterns:[{begin:/(?<=^|;)\p{space}*((#))/dgv,beginCaptures:{"1":{name:"comment.line.number-sign.tcl"},"2":{name:"punctuation.definition.comment.tcl"}},contentName:"comment.line.number-sign.tcl",end:/\n/dgv,patterns:[{match:/(\\\\|\\\n)/dgv}]},{captures:{"1":{name:"keyword.control.tcl"}},match:/(?<=^|[\[\{\;])\p{space}*(if|while|for|catch|default|return|break|continue|switch|exit|foreach|try|throw)\b/dgv},{captures:{"1":{name:"keyword.control.tcl"}},match:/(?<=^|\})\p{space}*(then|elseif|else)\b/dgv},{captures:{"1":{name:"keyword.other.tcl"},"2":{name:"entity.name.function.tcl"}},match:/(?<=^|\{)\p{space}*(proc)\p{space}+([^\p{space}]+)/dgv},{captures:{"1":{name:"keyword.other.tcl"}},match:/(?<=^|[\[\{\;])\p{space}*(after|append|array|auto_execok|auto_import|auto_load|auto_mkindex|auto_mkindex_old|auto_qualify|auto_reset|bgerror|binary|cd|clock|close|concat|dde|encoding|eof|error|eval|exec|expr|fblocked|fconfigure|fcopy|file|fileevent|filename|flush|format|gets|glob|global|history|http|incr|info|interp|join|lappend|library|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|memory|msgcat|namespace|open|package|parray|pid|pkg::create|pkg_mkIndex|proc|puts|pwd|re_syntax|read|registry|rename|resource|scan|seek|set|socket|SafeBase|source|split|string|subst|Tcl|tcl_endOfWord|tcl_findLibrary|tcl_startOfNextWord|tcl_startOfPreviousWord|tcl_wordBreakAfter|tcl_wordBreakBefore|tcltest|tclvars|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait)\b/dgv},{begin:/(?<=^|[\[\{\;])\p{space}*(regexp|regsub)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.tcl"}},end:/[\n\;\]]/dgv,patterns:[{match:/\\(?:[^\n]|\n)/dgv,name:"constant.character.escape.tcl"},{match:/-[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*/dgv},{applyEndPatternLast:1,begin:/--\p{space}*/dgv,end:"",patterns:[{include:"#regexp"}]},{include:"#regexp"}]},{include:"#escape"},{include:"#variable"},{include:"#operator"},{include:"#numeric"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.tcl"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.tcl"}},name:"string.quoted.double.tcl",patterns:[{include:"#escape"},{include:"#variable"},{include:"#embedded"}]}],repository:{"bare-string":{begin:/(?:^|(?<=\p{space}))"/dgv,end:/"([^\p{space}\]]*)/dgv,endCaptures:{"1":{name:"invalid.illegal.tcl"}},patterns:[{include:"#escape"},{include:"#variable"}]},braces:{begin:/(?:^|(?<=\p{space}))\{/dgv,end:/\}([^\p{space}\]]*)/dgv,endCaptures:{"1":{name:"invalid.illegal.tcl"}},patterns:[{match:/\\[\{\}\n]/dgv,name:"constant.character.escape.tcl"},{include:"#inner-braces"}]},embedded:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.tcl"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.tcl"}},name:"source.tcl.embedded",patterns:[{include:"source.tcl"}]},escape:{match:/\\(\p{Nd}{1,3}|x[a-fA-F0-9]+|u[a-fA-F0-9]{1,4}|[^\n]|\n)/dgv,name:"constant.character.escape.tcl"},"inner-braces":{begin:/\{/dgv,end:/\}/dgv,patterns:[{match:/\\[\{\}\n]/dgv,name:"constant.character.escape.tcl"},{include:"#inner-braces"}]},numeric:{match:/(?<![a-zA-Z])([\+\-]?([0-9]*[\.])?[0-9]+f?)(?![\.a-zA-Z])/dgv,name:"constant.numeric.tcl"},operator:{match:/(?<= |\p{Nd})(-|\+|~|&{1,2}|\|{1,2}|<{1,2}|>{1,2}|\*{1,2}|!|%|\/|<=|>=|={1,2}|!=|\^)(?= |\p{Nd})/dgv,name:"keyword.operator.tcl"},regexp:{begin:/(?=\P{space})(?![\n\;\]])/dgv,end:/(?=[\n\;\]])/dgv,patterns:[{begin:/(?=[^ \t\n\;])/dgv,end:/(?=[ \t\n\;])/dgv,name:"string.regexp.tcl",patterns:[{include:"#braces"},{include:"#bare-string"},{include:"#escape"},{include:"#variable"}]},{begin:/[ \t]/dgv,end:/(?=[\n\;\]])/dgv,patterns:[{include:"#variable"},{include:"#embedded"},{include:"#escape"},{include:"#braces"},{include:"#string"}]}]},string:{applyEndPatternLast:1,begin:/(?:^|(?<=\p{space}))(?=")/dgv,end:"",name:"string.quoted.double.tcl",patterns:[{include:"#bare-string"}]},variable:{captures:{"1":{name:"punctuation.definition.variable.tcl"}},match:/(\$)((?:[a-zA-Z0-9_]|::)+(\([^\)]+\))?|\{[^\}]*\})/dgv,name:"support.function.tcl"}},scopeName:"source.tcl",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
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"}},comment:"Matches traversal attribute access such as .attr",end:/[\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}\-]*|\p{Nd}*/dgv,endCaptures:{"0":{patterns:[{comment:"Attribute name",match:/(?!null|false|true)[\p{Alpha}][\p{L}\p{M}\p{N}\p{Pc}\-]*/dgv,name:"variable.other.member.hcl"},{comment:"Optional attribute index",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"}},comment:"Identifier \"=\" with optional parens",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"}},comment:"Legacy attribute-only splat",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:[{comment:"Known block type",match:/\bdata|check|import|locals|module|output|provider|resource|terraform|variable\b/dgv,name:"entity.name.type.terraform"},{comment:"Unknown block type",match:/\b(?!null|false|true)[\p{Alpha}][\p{Alpha}\p{Nd}_\-]*\b/dgv,name:"entity.name.type.hcl"}]},"2":{patterns:[{comment:"Block label",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"}},comment:"This will match Terraform blocks like `resource \"aws_instance\" \"web\" {` or `module {`",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"}},comment:"Inline comments start with the /* sequence and end with the */ sequence, and may have any characters within except the ending sequence. An inline comment is considered equivalent to a whitespace sequence",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:[{comment:"Splat operator",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:{comment:"Character Escapes",match:/\\[nrt"\\]|\\u(\p{AHex}{8}|\p{AHex}{4})/dgv,name:"constant.character.escape.hcl"},comma:{comment:"Commas - used in certain expressions",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"}},comment:"Line comments start with // sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",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:[{comment:"in keyword",match:/\bin\b/dgv,name:"keyword.operator.word.hcl"},{comment:"if keyword",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"}},comment:"Built-in function calls",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"}},comment:"Line comments start with # sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",end:/(?=\n?$)\n?/dgv,name:"comment.line.number-sign.hcl"},hcl_type_keywords:{comment:"Type keywords known to HCL.",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"}},comment:"String Heredoc",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:{comment:"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:{comment:"Local Identifiers",match:/\b(?!null|false|true)[\p{Alpha}][\p{Alpha}\p{Nd}_\-]*\b/dgv,name:"variable.other.readwrite.hcl"},named_value_references:{comment:"Constant values available only to Terraform.",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"}},comment:"Integer, no fraction, optional exponent",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"}},comment:"Integer, fraction, optional exponent",match:/\b\p{Nd}+(\.)\p{Nd}+(?:([Ee][\+\-]?)\p{Nd}+)?\b/dgv,name:"constant.numeric.float.hcl"},{comment:"Integers",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"}]}},comment:"Literal, named object key",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"}},comment:"String object key",match:/\b((")[^\n]*("))\p{space}*(=)\p{space}*/dgv},{begin:/^\p{space}*\(/dgv,beginCaptures:{"0":{name:"punctuation.section.parens.begin.hcl"}},comment:"Computed object key (any expression between parens)",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"}},comment:"Parens - matched *after* function syntax",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"}},comment:"String interpolation",end:/\}/dgv,endCaptures:{"0":{name:"keyword.other.interpolation.end.hcl"}},name:"meta.interpolation.hcl",patterns:[{comment:"Trim left whitespace",match:/~\p{space}/dgv,name:"keyword.operator.template.left.trim.hcl"},{comment:"Trim right whitespace",match:/\p{space}~/dgv,name:"keyword.operator.template.right.trim.hcl"},{comment:"if/else/endif and for/in/endfor directives",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"}},comment:"Strings",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\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"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
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:/(^[ \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:/([A-Za-z0-9_\-]+)\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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\]/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:/(((?:[A-Za-z0-9_\-]+|"(?:[^"\\]|\\[^\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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\]/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"}},
|
|
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:/([A-Za-z0-9_\-]+)\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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\]/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:/(((?:[A-Za-z0-9_\-]+|"(?:[^"\\]|\\[^\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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\]/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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\\n]/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:/\\([btnfr"\\]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape.toml"},{match:/\\[^btnfr"\\]/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])[0-2][0-9]:[0-5][0-9]:(?!6[1-9])[0-6][0-9](\.[0-9]+)?(Z|[\+\-](?!2[5-9])[0-2][0-9]:[0-5][0-9])?)?/dgvy,name:"constant.other.date.toml"},{match:/(?!2[5-9])[0-2][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}|_\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
|
package/dist/twig.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import php from './php.mjs'
|
|
|
6
6
|
import python from './python.mjs'
|
|
7
7
|
import ruby from './ruby.mjs'
|
|
8
8
|
|
|
9
|
-
const lang = Object.freeze({displayName:"Twig",fileTypes:["twig","html.twig"],firstLineMatch:/<!DOCTYPE|<html|<\?php|\{\{|\{%|\{#/dgiv,foldingStartMarker:/*@__PURE__*/ new EmulatedRegExp("(<(?:[Bb][Oo][Dd][Yy]|[Dd][Ii][Vv]|[Dd][Ll]|[Ff][Ii][Ee][Ll][Dd][Ssſ][Ee][Tt]|[Ff][Oo][Rr][Mm]|[Hh][Ee][Aa][Dd]|[Ll][Ii]|[Oo][Ll]|[Ssſ][Cc][Rr][Ii][Pp][Tt]|[Ssſ][Ee][Ll][Ee][Cc][Tt]|[Ssſ][Tt][Yy][Ll][Ee]|[Tt][Aa][Bb][Ll][Ee]|[Tt][Bb][Oo][Dd][Yy]|[Tt][Ff][Oo][Oo][Tt]|[Tt][Hh][Ee][Aa][Dd]|[Tt][Rr]|[Uu][Ll])\\b[^\\n]*?>|<!--(?![^\\n]*--\\p{space}*>)|^<!-- #tminclude (?:(?=([^\\n]*?-->))\\2)(?=\\n?$)|\\{%\\p{space}+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","dgv",{"hiddenCaptures":[2]}),foldingStopMarker:/(<\/(?:[Bb][Oo][Dd][Yy]|[Dd][Ii][Vv]|[Dd][Ll]|[Ff][Ii][Ee][Ll][Dd][Ssſ][Ee][Tt]|[Ff][Oo][Rr][Mm]|[Hh][Ee][Aa][Dd]|[Ll][Ii]|[Oo][Ll]|[Ssſ][Cc][Rr][Ii][Pp][Tt]|[Ssſ][Ee][Ll][Ee][Cc][Tt]|[Ssſ][Tt][Yy][Ll][Ee]|[Tt][Aa][Bb][Ll][Ee]|[Tt][Bb][Oo][Dd][Yy]|[Tt][Ff][Oo][Oo][Tt]|[Tt][Hh][Ee][Aa][Dd]|[Tt][Rr]|[Uu][Ll])>|^(?![^\n]*?<!--)[^\n]*?--\p{space}*>|^<!-- end tminclude -->(?=\n?$)|\{%\p{space}+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))/dgv,name:"twig",patterns:[{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"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/--\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"},{include:"#embedded-code"}]},{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"}]},{include:"#embedded-code"},{begin:/(?:^\p{space}+)?(<)(style)\b(?![^\>]*\/>)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.style.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(style)(>)(?:\p{space}*\n)?/dgiv,name:"source.css.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"}},end:/(?=<\/style)/dgiv,patterns:[{include:"#embedded-code"},{include:"source.css"}]}]},{begin:/(?:^\p{space}+)?(<)(script)\b(?![^\>]*\/>)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.js.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{captures:{"1":{name:"punctuation.definition.comment.js"}},match:/(\/\/)[^\n]*?((?=<\/script)|(?=\n?$)\n?)/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"#php"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"},{include:"source.js"}]}]},{begin:/(?<=\{%\p{space}js\p{space}%\}|\{%\p{space}includejs\p{space}%\})/dgiv,comment:"Add JS support to set tags that use the pattern \"css\" in their name",end:/(?=\{%\p{space}endjs\p{space}%\}|\{%\p{space}endincludejs\p{space}%\})/dgiv,name:"source.js.embedded.twig",patterns:[{include:"source.js"}]},{begin:/(?<=\{%\p{space}css\p{space}%\}|\{%\p{space}includecss\p{space}%\}|\{%\p{space}includehirescss\p{space}%\})/dgiv,comment:"Add CSS support to set tags that use the pattern \"css\" in their name",end:/(?=\{%\p{space}endcss\p{space}%\}|\{%\p{space}endincludecss\p{space}%\}|\{%\p{space}endincludehirescss\p{space}%\})/dgiv,name:"source.css.embedded.twig",patterns:[{include:"source.css"}]},{begin:/(?<=\{%\p{space}scss\p{space}%\}|\{%\p{space}includescss\p{space}%\}|\{%\p{space}includehiresscss\p{space}%\})/dgiv,comment:"Add SCSS support to set tags that use the pattern \"scss\" in their name",end:/(?=\{%\p{space}endscss\p{space}%\}|\{%\p{space}endincludescss\p{space}%\}|\{%\p{space}endincludehiresscss\p{space}%\})/dgiv,name:"source.css.scss.embedded.twig",patterns:[{include:"source.css.scss"}]},{begin:/(<\/?)((?:body|head|html)\b)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-zA-Z0-9\:]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"}],repository:{"embedded-code":{patterns:[{include:"#ruby"},{include:"#php"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"},{include:"#python"}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},php:{begin:/(?=(^\p{space}*)?<\?)/dgv,end:/(?!(^\p{space}*)?<\?)/dgv,patterns:[{include:"source.php"}]},python:{begin:/^\p{space}*<\?python(?![^\n]*\?>)/dgv,end:/\?>(?:\p{space}*(?=\n?$)\n)?/dgv,name:"source.python.embedded.html",patterns:[{include:"source.python"}]},ruby:{patterns:[{begin:/<%+#/dgv,captures:{"0":{name:"punctuation.definition.comment.erb"}},end:/%>/dgv,name:"comment.block.erb"},{begin:/<%+(?!>)=?/dgv,captures:{"0":{name:"punctuation.section.embedded.ruby"}},end:/-?%>/dgv,name:"source.ruby.embedded.html",patterns:[{captures:{"1":{name:"punctuation.definition.comment.ruby"}},match:/(#)[^\n]*?(?=-?%>)/dgv,name:"comment.line.number-sign.ruby"},{include:"source.ruby"}]},{begin:/<\?r(?!>)=?/dgv,captures:{"0":{name:"punctuation.section.embedded.ruby.nitro"}},end:/-?\?>/dgv,name:"source.ruby.nitro.embedded.html",patterns:[{captures:{"1":{name:"punctuation.definition.comment.ruby.nitro"}},match:/(#)[^\n]*?(?=-?\?>)/dgv,name:"comment.line.number-sign.ruby.nitro"},{include:"source.ruby"}]}]},"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:"#embedded-code"},{include:"#entities"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#embedded-code"},{include:"#entities"}]},"tag-generic-attribute":{match:/\b([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:/(?<='|")/dgv,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:"#embedded-code"},{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:"#embedded-code"},{include:"#entities"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#embedded-code"}]},"twig-arrays":{begin:/(?<=[\p{space}\(\{\[\:\,])\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.twig"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.twig"}},name:"meta.array.twig",patterns:[{include:"#twig-arrays"},{include:"#twig-hashes"},{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-strings"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{match:/,/dgv,name:"punctuation.separator.object.twig"}]},"twig-comment-tag":{begin:/\{#-?/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.twig"}},end:/-?#\}/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.twig"}},name:"comment.block.twig"},"twig-constants":{patterns:[{match:/(?<=[\p{space}\[\(\{\:\,])(?:true|false|null|none)(?=[\p{space}\)\]\}\,])/dgiv,name:"constant.language.twig"},{match:/(?<=[\p{space}\[\(\{\:\,]|\.\.|\*\*)[0-9]+(?:\.[0-9]+)?(?=[\p{space}\)\]\}\,]|\.\.|\*\*)/dgv,name:"constant.numeric.twig"}]},"twig-filters":{captures:{"1":{name:"support.function.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[\p{space}\|\]\}\)\:\,]|\.\.|\*\*)/dgv},"twig-filters-ud":{captures:{"1":{name:"meta.function-call.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)/dgv},"twig-filters-warg":{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\()/dgv,beginCaptures:{"1":{name:"support.function.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-filters-warg-ud":{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\()/dgv,beginCaptures:{"1":{name:"meta.function-call.other.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-functions":{captures:{"1":{name:"support.function.twig"}},match:/(?<=is\p{space})(defined|empty|even|iterable|odd)/dgv},"twig-functions-warg":{begin:/(?<=[\p{space}\(\[\{\:\,])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\()/dgv,beginCaptures:{"1":{name:"support.function.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"}]},"twig-hashes":{begin:/(?<=[\p{space}\(\{\[\:\,])\{/dgv,beginCaptures:{"0":{name:"punctuation.section.hash.begin.twig"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.hash.end.twig"}},name:"meta.hash.twig",patterns:[{include:"#twig-hashes"},{include:"#twig-arrays"},{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-strings"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{match:/:/dgv,name:"punctuation.separator.key-value.twig"},{match:/,/dgv,name:"punctuation.separator.object.twig"}]},"twig-keywords":{match:/(?<=\p{space})((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\p{space})/dgv,name:"keyword.control.twig"},"twig-macros":{begin:/(?<=[\p{space}\(\[\{\:\,])([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?:(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*))?(\()/dgv,beginCaptures:{"1":{name:"meta.function-call.twig"},"2":{name:"punctuation.separator.property.twig"},"3":{name:"variable.other.property.twig"},"4":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-objects":{captures:{"1":{name:"variable.other.twig"}},match:/(?<=[\p{space}\{\[\(\:\,])([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?=[\p{space}\}\[\]\(\)\.\|\,\:])/dgv},"twig-operators":{patterns:[{captures:{"1":{name:"keyword.operator.arithmetic.twig"}},match:/(?<=\p{space})(\+|-|\/\/?|%|\*\*?)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.assignment.twig"}},match:/(?<=\p{space})(=|~)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.bitwise.twig"}},match:/(?<=\p{space})(b-(?:and|or|xor))(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.comparison.twig"}},match:/(?<=\p{space})((?:!|=)=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.logical.twig"}},match:/(?<=\p{space})(\?|:|\?:|\?\?|and|not|or)(?=\p{space})/dgv},{captures:{"0":{name:"keyword.operator.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"])\.\.(?=[a-zA-Z0-9_\x7F-ÿ'"])/dgv},{captures:{"0":{name:"keyword.operator.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\}\)'"])\|(?=[a-zA-Z_\x7F-ÿ])/dgv}]},"twig-print-tag":{begin:/\{\{-?/dgv,beginCaptures:{"0":{name:"punctuation.section.tag.twig"}},end:/-?\}\}/dgv,endCaptures:{"0":{name:"punctuation.section.tag.twig"}},name:"meta.tag.template.value.twig",patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-properties":{patterns:[{captures:{"1":{name:"punctuation.separator.property.twig"},"2":{name:"variable.other.property.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ])(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?=[\.\p{space}\|\[\)\]\}\:\,])/dgv},{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ])(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\()/dgv,beginCaptures:{"1":{name:"punctuation.separator.property.twig"},"2":{name:"variable.other.property.twig"},"3":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"}]},{captures:{"1":{name:"punctuation.section.array.begin.twig"},"2":{name:"variable.other.property.twig"},"3":{name:"punctuation.section.array.end.twig"},"4":{name:"punctuation.section.array.begin.twig"},"5":{name:"variable.other.property.twig"},"6":{name:"punctuation.section.array.end.twig"},"7":{name:"punctuation.section.array.begin.twig"},"8":{name:"variable.other.property.twig"},"9":{name:"punctuation.section.array.end.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]])(?:(\[)('[a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*')(\])|(\[)("[a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*")(\])|(\[)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\]))/dgv}]},"twig-statement-tag":{begin:/\{%-?/dgv,beginCaptures:{"0":{name:"punctuation.section.tag.twig"}},end:/-?%\}/dgv,endCaptures:{"0":{name:"punctuation.section.tag.twig"}},name:"meta.tag.template.block.twig",patterns:[{include:"#twig-constants"},{include:"#twig-keywords"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-strings":{patterns:[{begin:/(?:(?<!\\)|(?<=\\\\))'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.twig"}},end:/(?:(?<!\\)|(?<=\\\\))'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.twig"}},name:"string.quoted.single.twig"},{begin:/(?:(?<!\\)|(?<=\\\\))"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.twig"}},end:/(?:(?<!\\)|(?<=\\\\))"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.twig"}},name:"string.quoted.double.twig"}]}},scopeName:"text.html.twig",embeddedLangs:["css","javascript","scss","php","python","ruby"],aliases:undefined})
|
|
9
|
+
const lang = Object.freeze({displayName:"Twig",fileTypes:["twig","html.twig"],firstLineMatch:/<!DOCTYPE|<html|<\?php|\{\{|\{%|\{#/dgiv,foldingStartMarker:/*@__PURE__*/ new EmulatedRegExp("(<(?:[Bb][Oo][Dd][Yy]|[Dd][Ii][Vv]|[Dd][Ll]|[Ff][Ii][Ee][Ll][Dd][Ssſ][Ee][Tt]|[Ff][Oo][Rr][Mm]|[Hh][Ee][Aa][Dd]|[Ll][Ii]|[Oo][Ll]|[Ssſ][Cc][Rr][Ii][Pp][Tt]|[Ssſ][Ee][Ll][Ee][Cc][Tt]|[Ssſ][Tt][Yy][Ll][Ee]|[Tt][Aa][Bb][Ll][Ee]|[Tt][Bb][Oo][Dd][Yy]|[Tt][Ff][Oo][Oo][Tt]|[Tt][Hh][Ee][Aa][Dd]|[Tt][Rr]|[Uu][Ll])\\b[^\\n]*?>|<!--(?![^\\n]*--\\p{space}*>)|^<!-- #tminclude (?:(?=([^\\n]*?-->))\\2)(?=\\n?$)|\\{%\\p{space}+(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))","dgv",{"hiddenCaptures":[2]}),foldingStopMarker:/(<\/(?:[Bb][Oo][Dd][Yy]|[Dd][Ii][Vv]|[Dd][Ll]|[Ff][Ii][Ee][Ll][Dd][Ssſ][Ee][Tt]|[Ff][Oo][Rr][Mm]|[Hh][Ee][Aa][Dd]|[Ll][Ii]|[Oo][Ll]|[Ssſ][Cc][Rr][Ii][Pp][Tt]|[Ssſ][Ee][Ll][Ee][Cc][Tt]|[Ssſ][Tt][Yy][Ll][Ee]|[Tt][Aa][Bb][Ll][Ee]|[Tt][Bb][Oo][Dd][Yy]|[Tt][Ff][Oo][Oo][Tt]|[Tt][Hh][Ee][Aa][Dd]|[Tt][Rr]|[Uu][Ll])>|^(?![^\n]*?<!--)[^\n]*?--\p{space}*>|^<!-- end tminclude -->(?=\n?$)|\{%\p{space}+end(autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim))/dgv,name:"twig",patterns:[{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"}]},{begin:/(<\?)(xml)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.xml.html"}},end:/(\?>)/dgv,name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.html"}},end:/--\p{space}*>/dgv,name:"comment.block.html",patterns:[{match:/--/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"},{include:"#embedded-code"}]},{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"}]},{include:"#embedded-code"},{begin:/(?:^\p{space}+)?(<)(style)\b(?![^\>]*\/>)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.style.html"},"3":{name:"punctuation.definition.tag.html"}},end:/(<\/)(style)(>)(?:\p{space}*\n)?/dgiv,name:"source.css.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"}},end:/(?=<\/style)/dgiv,patterns:[{include:"#embedded-code"},{include:"source.css"}]}]},{begin:/(?:^\p{space}+)?(<)(script)\b(?![^\>]*\/>)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(?<=<\/(script|SCRIPT))(>)(?:\p{space}*\n)?/dgv,endCaptures:{"2":{name:"punctuation.definition.tag.html"}},name:"source.js.embedded.html",patterns:[{include:"#tag-stuff"},{begin:/(?<!<\/(?:script|SCRIPT))(>)/dgv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.script.html"}},end:/(<\/)(script)/dgiv,patterns:[{captures:{"1":{name:"punctuation.definition.comment.js"}},match:/(\/\/)[^\n]*?((?=<\/script)|(?=\n?$)\n?)/dgv,name:"comment.line.double-slash.js"},{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.js"}},end:/\*\/|(?=<\/script)/dgv,name:"comment.block.js"},{include:"#php"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"},{include:"source.js"}]}]},{begin:/(?<=\{%\p{space}js\p{space}%\}|\{%\p{space}includejs\p{space}%\})/dgiv,end:/(?=\{%\p{space}endjs\p{space}%\}|\{%\p{space}endincludejs\p{space}%\})/dgiv,name:"source.js.embedded.twig",patterns:[{include:"source.js"}]},{begin:/(?<=\{%\p{space}css\p{space}%\}|\{%\p{space}includecss\p{space}%\}|\{%\p{space}includehirescss\p{space}%\})/dgiv,end:/(?=\{%\p{space}endcss\p{space}%\}|\{%\p{space}endincludecss\p{space}%\}|\{%\p{space}endincludehirescss\p{space}%\})/dgiv,name:"source.css.embedded.twig",patterns:[{include:"source.css"}]},{begin:/(?<=\{%\p{space}scss\p{space}%\}|\{%\p{space}includescss\p{space}%\}|\{%\p{space}includehiresscss\p{space}%\})/dgiv,end:/(?=\{%\p{space}endscss\p{space}%\}|\{%\p{space}endincludescss\p{space}%\}|\{%\p{space}endincludehiresscss\p{space}%\})/dgiv,name:"source.css.scss.embedded.twig",patterns:[{include:"source.css.scss"}]},{begin:/(<\/?)((?:body|head|html)\b)/dgiv,captures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.structure.any.html"}},end:/(>)/dgv,name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\b)/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:/(<\/?)([a-zA-Z0-9\:]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:/<>/dgv,name:"invalid.illegal.incomplete.html"},{match:/</dgv,name:"invalid.illegal.bad-angle-bracket.html"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"}],repository:{"embedded-code":{patterns:[{include:"#ruby"},{include:"#php"},{include:"#twig-print-tag"},{include:"#twig-statement-tag"},{include:"#twig-comment-tag"},{include:"#python"}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},php:{begin:/(?=(^\p{space}*)?<\?)/dgv,end:/(?!(^\p{space}*)?<\?)/dgv,patterns:[{include:"source.php"}]},python:{begin:/^\p{space}*<\?python(?![^\n]*\?>)/dgv,end:/\?>(?:\p{space}*(?=\n?$)\n)?/dgv,name:"source.python.embedded.html",patterns:[{include:"source.python"}]},ruby:{patterns:[{begin:/<%+#/dgv,captures:{"0":{name:"punctuation.definition.comment.erb"}},end:/%>/dgv,name:"comment.block.erb"},{begin:/<%+(?!>)=?/dgv,captures:{"0":{name:"punctuation.section.embedded.ruby"}},end:/-?%>/dgv,name:"source.ruby.embedded.html",patterns:[{captures:{"1":{name:"punctuation.definition.comment.ruby"}},match:/(#)[^\n]*?(?=-?%>)/dgv,name:"comment.line.number-sign.ruby"},{include:"source.ruby"}]},{begin:/<\?r(?!>)=?/dgv,captures:{"0":{name:"punctuation.section.embedded.ruby.nitro"}},end:/-?\?>/dgv,name:"source.ruby.nitro.embedded.html",patterns:[{captures:{"1":{name:"punctuation.definition.comment.ruby.nitro"}},match:/(#)[^\n]*?(?=-?\?>)/dgv,name:"comment.line.number-sign.ruby.nitro"},{include:"source.ruby"}]}]},"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:"#embedded-code"},{include:"#entities"}]},"string-single-quoted":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#embedded-code"},{include:"#entities"}]},"tag-generic-attribute":{match:/\b([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:/(?<='|")/dgv,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:"#embedded-code"},{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:"#embedded-code"},{include:"#entities"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#embedded-code"}]},"twig-arrays":{begin:/(?<=[\p{space}\(\{\[\:\,])\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.twig"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.twig"}},name:"meta.array.twig",patterns:[{include:"#twig-arrays"},{include:"#twig-hashes"},{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-strings"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{match:/,/dgv,name:"punctuation.separator.object.twig"}]},"twig-comment-tag":{begin:/\{#-?/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.twig"}},end:/-?#\}/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.twig"}},name:"comment.block.twig"},"twig-constants":{patterns:[{match:/(?<=[\p{space}\[\(\{\:\,])(?:true|false|null|none)(?=[\p{space}\)\]\}\,])/dgiv,name:"constant.language.twig"},{match:/(?<=[\p{space}\[\(\{\:\,]|\.\.|\*\*)[0-9]+(?:\.[0-9]+)?(?=[\p{space}\)\]\}\,]|\.\.|\*\*)/dgv,name:"constant.numeric.twig"}]},"twig-filters":{captures:{"1":{name:"support.function.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})(abs|capitalize|e(?:scape)?|first|join|(?:json|url)_encode|keys|last|length|lower|nl2br|number_format|raw|reverse|round|sort|striptags|title|trim|upper)(?=[\p{space}\|\]\}\)\:\,]|\.\.|\*\*)/dgv},"twig-filters-ud":{captures:{"1":{name:"meta.function-call.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)/dgv},"twig-filters-warg":{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})(batch|convert_encoding|date|date_modify|default|e(?:scape)?|format|join|merge|number_format|replace|round|slice|split|trim)(\()/dgv,beginCaptures:{"1":{name:"support.function.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-filters-warg-ud":{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"]\||\{%\p{space}filter\p{space})([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\()/dgv,beginCaptures:{"1":{name:"meta.function-call.other.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-functions":{captures:{"1":{name:"support.function.twig"}},match:/(?<=is\p{space})(defined|empty|even|iterable|odd)/dgv},"twig-functions-warg":{begin:/(?<=[\p{space}\(\[\{\:\,])(attribute|block|constant|cycle|date|divisible by|dump|include|max|min|parent|random|range|same as|source|template_from_string)(\()/dgv,beginCaptures:{"1":{name:"support.function.twig"},"2":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"}]},"twig-hashes":{begin:/(?<=[\p{space}\(\{\[\:\,])\{/dgv,beginCaptures:{"0":{name:"punctuation.section.hash.begin.twig"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.hash.end.twig"}},name:"meta.hash.twig",patterns:[{include:"#twig-hashes"},{include:"#twig-arrays"},{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-strings"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{match:/:/dgv,name:"punctuation.separator.key-value.twig"},{match:/,/dgv,name:"punctuation.separator.object.twig"}]},"twig-keywords":{match:/(?<=\p{space})((?:end)?(?:autoescape|block|embed|filter|for|if|macro|raw|sandbox|set|spaceless|trans|verbatim)|as|do|else|elseif|extends|flush|from|ignore missing|import|include|only|use|with)(?=\p{space})/dgv,name:"keyword.control.twig"},"twig-macros":{begin:/(?<=[\p{space}\(\[\{\:\,])([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?:(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*))?(\()/dgv,beginCaptures:{"1":{name:"meta.function-call.twig"},"2":{name:"punctuation.separator.property.twig"},"3":{name:"variable.other.property.twig"},"4":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-objects":{captures:{"1":{name:"variable.other.twig"}},match:/(?<=[\p{space}\{\[\(\:\,])([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?=[\p{space}\}\[\]\(\)\.\|\,\:])/dgv},"twig-operators":{patterns:[{captures:{"1":{name:"keyword.operator.arithmetic.twig"}},match:/(?<=\p{space})(\+|-|\/\/?|%|\*\*?)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.assignment.twig"}},match:/(?<=\p{space})(=|~)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.bitwise.twig"}},match:/(?<=\p{space})(b-(?:and|or|xor))(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.comparison.twig"}},match:/(?<=\p{space})((?:!|=)=|<=?|>=?|(?:not )?in|is(?: not)?|(?:ends|starts) with|matches)(?=\p{space})/dgv},{captures:{"1":{name:"keyword.operator.logical.twig"}},match:/(?<=\p{space})(\?|:|\?:|\?\?|and|not|or)(?=\p{space})/dgv},{captures:{"0":{name:"keyword.operator.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\)'"])\.\.(?=[a-zA-Z0-9_\x7F-ÿ'"])/dgv},{captures:{"0":{name:"keyword.operator.other.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]\}\)'"])\|(?=[a-zA-Z_\x7F-ÿ])/dgv}]},"twig-print-tag":{begin:/\{\{-?/dgv,beginCaptures:{"0":{name:"punctuation.section.tag.twig"}},end:/-?\}\}/dgv,endCaptures:{"0":{name:"punctuation.section.tag.twig"}},name:"meta.tag.template.value.twig",patterns:[{include:"#twig-constants"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-properties":{patterns:[{captures:{"1":{name:"punctuation.separator.property.twig"},"2":{name:"variable.other.property.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ])(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(?=[\.\p{space}\|\[\)\]\}\:\,])/dgv},{begin:/(?<=[a-zA-Z0-9_\x7F-ÿ])(\.)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\()/dgv,beginCaptures:{"1":{name:"punctuation.separator.property.twig"},"2":{name:"variable.other.property.twig"},"3":{name:"punctuation.definition.parameters.begin.twig"}},contentName:"meta.function.arguments.twig",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.end.twig"}},patterns:[{include:"#twig-constants"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-strings"},{include:"#twig-arrays"}]},{captures:{"1":{name:"punctuation.section.array.begin.twig"},"2":{name:"variable.other.property.twig"},"3":{name:"punctuation.section.array.end.twig"},"4":{name:"punctuation.section.array.begin.twig"},"5":{name:"variable.other.property.twig"},"6":{name:"punctuation.section.array.end.twig"},"7":{name:"punctuation.section.array.begin.twig"},"8":{name:"variable.other.property.twig"},"9":{name:"punctuation.section.array.end.twig"}},match:/(?<=[a-zA-Z0-9_\x7F-ÿ\]])(?:(\[)('[a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*')(\])|(\[)("[a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*")(\])|(\[)([a-zA-Z_\x7F-ÿ][a-zA-Z0-9_\x7F-ÿ]*)(\]))/dgv}]},"twig-statement-tag":{begin:/\{%-?/dgv,beginCaptures:{"0":{name:"punctuation.section.tag.twig"}},end:/-?%\}/dgv,endCaptures:{"0":{name:"punctuation.section.tag.twig"}},name:"meta.tag.template.block.twig",patterns:[{include:"#twig-constants"},{include:"#twig-keywords"},{include:"#twig-operators"},{include:"#twig-functions-warg"},{include:"#twig-functions"},{include:"#twig-macros"},{include:"#twig-filters-warg"},{include:"#twig-filters"},{include:"#twig-filters-warg-ud"},{include:"#twig-filters-ud"},{include:"#twig-objects"},{include:"#twig-properties"},{include:"#twig-strings"},{include:"#twig-arrays"},{include:"#twig-hashes"}]},"twig-strings":{patterns:[{begin:/(?:(?<!\\)|(?<=\\\\))'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.twig"}},end:/(?:(?<!\\)|(?<=\\\\))'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.twig"}},name:"string.quoted.single.twig"},{begin:/(?:(?<!\\)|(?<=\\\\))"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.twig"}},end:/(?:(?<!\\)|(?<=\\\\))"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.twig"}},name:"string.quoted.double.twig"}]}},scopeName:"text.html.twig",embeddedLangs:["css","javascript","scss","php","python","ruby"],aliases:undefined})
|
|
10
10
|
|
|
11
11
|
export default [
|
|
12
12
|
...css,
|
package/dist/typst.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Typst",name:"typst",patterns:[{include:"#markup"}],repository:{arguments:{patterns:[{match:/\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*(?=:)/dgv,name:"variable.parameter.typst"},{include:"#code"}]},code:{patterns:[{include:"#common"},{begin:/\{/dgv,captures:{"0":{name:"punctuation.definition.block.code.typst"}},end:/\}/dgv,name:"meta.block.code.typst",patterns:[{include:"#code"}]},{begin:/\[/dgv,captures:{"0":{name:"punctuation.definition.block.content.typst"}},end:/\]/dgv,name:"meta.block.content.typst",patterns:[{include:"#markup"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\n/dgv,name:"comment.line.double-slash.typst"},{match:/:/dgv,name:"punctuation.separator.colon.typst"},{match:/,/dgv,name:"punctuation.separator.comma.typst"},{match:/=>|\.\./dgv,name:"keyword.operator.typst"},{match:/==|!=|<=|<|>=|>/dgv,name:"keyword.operator.relational.typst"},{match:/\+=|-=|\*=|\/=|=/dgv,name:"keyword.operator.assignment.typst"},{match:/\+|\*|\/|(?<![\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*)-(?![\:alnum\:]_-\]*[\p{Alpha}_])/dgv,name:"keyword.operator.arithmetic.typst"},{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.word.typst"},{match:/\b(let|as|in|set|show)\b/dgv,name:"keyword.other.typst"},{match:/\b(if|else)\b/dgv,name:"keyword.control.conditional.typst"},{match:/\b(for|while|break|continue)\b/dgv,name:"keyword.control.loop.typst"},{match:/\b(import|include|export)\b/dgv,name:"keyword.control.import.typst"},{match:/\b(return)\b/dgv,name:"keyword.control.flow.typst"},{include:"#constants"},{
|
|
1
|
+
const lang = Object.freeze({displayName:"Typst",name:"typst",patterns:[{include:"#markup"}],repository:{arguments:{patterns:[{match:/\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*(?=:)/dgv,name:"variable.parameter.typst"},{include:"#code"}]},code:{patterns:[{include:"#common"},{begin:/\{/dgv,captures:{"0":{name:"punctuation.definition.block.code.typst"}},end:/\}/dgv,name:"meta.block.code.typst",patterns:[{include:"#code"}]},{begin:/\[/dgv,captures:{"0":{name:"punctuation.definition.block.content.typst"}},end:/\]/dgv,name:"meta.block.content.typst",patterns:[{include:"#markup"}]},{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\n/dgv,name:"comment.line.double-slash.typst"},{match:/:/dgv,name:"punctuation.separator.colon.typst"},{match:/,/dgv,name:"punctuation.separator.comma.typst"},{match:/=>|\.\./dgv,name:"keyword.operator.typst"},{match:/==|!=|<=|<|>=|>/dgv,name:"keyword.operator.relational.typst"},{match:/\+=|-=|\*=|\/=|=/dgv,name:"keyword.operator.assignment.typst"},{match:/\+|\*|\/|(?<![\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*)-(?![\:alnum\:]_-\]*[\p{Alpha}_])/dgv,name:"keyword.operator.arithmetic.typst"},{match:/\b(and|or|not)\b/dgv,name:"keyword.operator.word.typst"},{match:/\b(let|as|in|set|show)\b/dgv,name:"keyword.other.typst"},{match:/\b(if|else)\b/dgv,name:"keyword.control.conditional.typst"},{match:/\b(for|while|break|continue)\b/dgv,name:"keyword.control.loop.typst"},{match:/\b(import|include|export)\b/dgv,name:"keyword.control.import.typst"},{match:/\b(return)\b/dgv,name:"keyword.control.flow.typst"},{include:"#constants"},{match:/\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*!?(?=\[|\()/dgv,name:"entity.name.function.typst"},{match:/(?<=\bshow\p{space}*)\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*(?=\p{space}*[\:\.])/dgv,name:"entity.name.function.typst"},{begin:/(?<=\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*!?)\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},end:/\)/dgv,patterns:[{include:"#arguments"}]},{match:/\b[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*\b/dgv,name:"variable.other.typst"},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},end:/\)|(?=;)/dgv,name:"meta.group.typst",patterns:[{include:"#code"}]}]},comments:{patterns:[{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\*\//dgv,name:"comment.block.typst",patterns:[{include:"#comments"}]},{begin:/(?<!:)\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.typst"}},end:/\n/dgv,name:"comment.line.double-slash.typst",patterns:[{include:"#comments"}]}]},common:{patterns:[{include:"#comments"}]},constants:{patterns:[{match:/\bnone\b/dgv,name:"constant.language.none.typst"},{match:/\bauto\b/dgv,name:"constant.language.auto.typst"},{match:/\b(true|false)\b/dgv,name:"constant.language.boolean.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?(mm|pt|cm|in|em)\b/dgv,name:"constant.numeric.length.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?(rad|deg)\b/dgv,name:"constant.numeric.angle.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?%/dgv,name:"constant.numeric.percentage.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?fr/dgv,name:"constant.numeric.fr.typst"},{match:/\b\p{Nd}+\b/dgv,name:"constant.numeric.integer.typst"},{match:/\b(\p{Nd}*)?\.?\p{Nd}+([eE][\+\-]?\p{Nd}+)?\b/dgv,name:"constant.numeric.float.typst"},{begin:/"/dgv,captures:{"0":{name:"punctuation.definition.string.typst"}},end:/"/dgv,name:"string.quoted.double.typst",patterns:[{match:/\\([\\"nrt]|u\{?[0-9a-zA-Z]*\}?)/dgv,name:"constant.character.escape.string.typst"}]},{begin:/\$/dgv,captures:{"0":{name:"punctuation.definition.string.math.typst"}},end:/\$/dgv,name:"string.other.math.typst"}]},markup:{patterns:[{include:"#common"},{match:/\\([\\\/\[\]\{\}\#\*_\=\~\`\$-\.]|u\{[0-9a-zA-Z]*\}?)/dgv,name:"constant.character.escape.content.typst"},{match:/\\/dgv,name:"punctuation.definition.linebreak.typst"},{match:/~/dgv,name:"punctuation.definition.nonbreaking-space.typst"},{match:/-\?/dgv,name:"punctuation.definition.shy.typst"},{match:/---/dgv,name:"punctuation.definition.em-dash.typst"},{match:/--/dgv,name:"punctuation.definition.en-dash.typst"},{match:/\.\.\./dgv,name:"punctuation.definition.ellipsis.typst"},{match:/:([a-zA-Z0-9]+:)+/dgv,name:"constant.symbol.typst"},{begin:/(^\*|\*(?=\n?$)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)\*)|(\*(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))/dgv,captures:{"0":{name:"punctuation.definition.bold.typst"}},end:/(^\*|\*(?=\n?$)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)\*)|(\*(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))|\n|(?=\])/dgv,name:"markup.bold.typst",patterns:[{include:"#markup"}]},{begin:/(^_|_(?=\n?$)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)_)|(_(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))/dgv,captures:{"0":{name:"punctuation.definition.italic.typst"}},end:/(^_|_(?=\n?$)|((?<=[^\p{L}\p{M}\p{N}\p{Pc}]|_)_)|(_(?=[^\p{L}\p{M}\p{N}\p{Pc}]|_)))|\n|(?=\])/dgv,name:"markup.italic.typst",patterns:[{include:"#markup"}]},{match:/https?:\/\/[0-9a-zA-Z\~\/\%\#\&\='\,\;\.\+\?]*/dgv,name:"markup.underline.link.typst"},{begin:/`{3,}/dgv,captures:{"0":{name:"punctuation.definition.raw.typst"}},end:/\x00/dgv,name:"markup.raw.block.typst"},{begin:/`/dgv,captures:{"0":{name:"punctuation.definition.raw.typst"}},end:/`/dgv,name:"markup.raw.inline.typst"},{begin:/\$/dgv,captures:{"0":{name:"punctuation.definition.string.math.typst"}},end:/\$/dgv,name:"string.other.math.typst"},{begin:/^\p{space}*=+\p{space}+/dgv,beginCaptures:{"0":{name:"punctuation.definition.heading.typst"}},contentName:"entity.name.section.typst",end:/\n|(?=<)/dgv,name:"markup.heading.typst",patterns:[{include:"#markup"}]},{match:/^\p{space}*-\p{space}+/dgv,name:"punctuation.definition.list.unnumbered.typst"},{match:/^\p{space}*([0-9]*\.|\+)\p{space}+/dgv,name:"punctuation.definition.list.numbered.typst"},{captures:{"1":{name:"punctuation.definition.list.description.typst"},"2":{name:"markup.list.term.typst"}},match:/^\p{space}*(\/)\p{space}+([^\:]*:)/dgv},{captures:{"1":{name:"punctuation.definition.label.typst"}},match:/<[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*>/dgv,name:"entity.other.label.typst"},{captures:{"1":{name:"punctuation.definition.reference.typst"}},match:/(@)[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*/dgv,name:"entity.other.reference.typst"},{begin:/(#)(let|set|show)\b/dgv,beginCaptures:{"0":{name:"keyword.other.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(;)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.terminator.statement.typst"}},patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(as|in)\b/dgv,name:"keyword.other.typst"},{begin:/((#)if|(?<=(\}|\])\p{space}*)else)\b/dgv,beginCaptures:{"0":{name:"keyword.control.conditional.typst"},"2":{name:"punctuation.definition.keyword.typst"}},end:/\n|(?=\])|(?<=\}|\])/dgv,patterns:[{include:"#code"}]},{begin:/(#)(for|while)\b/dgv,beginCaptures:{"0":{name:"keyword.control.loop.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(?=\])|(?<=\}|\])/dgv,patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(break|continue)\b/dgv,name:"keyword.control.loop.typst"},{begin:/(#)(import|include|export)\b/dgv,beginCaptures:{"0":{name:"keyword.control.import.typst"},"1":{name:"punctuation.definition.keyword.typst"}},end:/\n|(;)|(?=\])/dgv,endCaptures:{"1":{name:"punctuation.terminator.statement.typst"}},patterns:[{include:"#code"}]},{captures:{"1":{name:"punctuation.definition.keyword.typst"}},match:/(#)(return)\b/dgv,name:"keyword.control.flow.typst"},{captures:{"2":{name:"punctuation.definition.function.typst"}},match:/((#)[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*!?)(?=\[|\()/dgv,name:"entity.name.function.typst"},{begin:/(?<=#[\p{Alpha}_][\p{Alpha}\p{Nd}_\-]*!?)\(/dgv,captures:{"0":{name:"punctuation.definition.group.typst"}},end:/\)/dgv,patterns:[{include:"#arguments"}]},{captures:{"1":{name:"punctuation.definition.variable.typst"}},match:/(#)[\p{Alpha}_][\.\p{Alpha}\p{Nd}_\-]*/dgv,name:"entity.other.interpolated.typst"},{begin:/#/dgv,end:/\p{space}/dgv,name:"meta.block.content.typst",patterns:[{include:"#code"}]}]}},scopeName:"source.typst",embeddedLangs:undefined,aliases:["typ"]})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|