@shikijs/langs-precompiled 1.27.0 → 1.27.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/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/gdscript.mjs +3 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/ini.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +2 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/nginx.mjs +2 -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/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.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 +2 -1
- package/dist/python.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/systemd.mjs +3 -1
- package/dist/templ.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/package.json +3 -3
package/dist/ssh-config.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"SSH Config",fileTypes:["ssh_config",".ssh/config","sshd_config"],name:"ssh-config",patterns:[{match:/\b(A(cceptEnv|dd(ressFamily|KeysToAgent)|llow(AgentForwarding|Groups|StreamLocalForwarding|TcpForwarding|Users)|uth(enticationMethods|orized((Keys(Command(User)?|File)|Principals(Command(User)?|File)))))|B(anner|atchMode|ind(Address|Interface))|C(anonical(Domains|ize(FallbackLocal|Hostname|MaxDots|PermittedCNAMEs))|ertificateFile|hallengeResponseAuthentication|heckHostIP|hrootDirectory|iphers?|learAllForwardings|ientAlive(CountMax|Interval)|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath|ontrolPersist)|D(eny(Groups|Users)|isableForwarding|ynamicForward)|E(nableSSHKeysign|scapeChar|xitOnForwardFailure|xposeAuthInfo)|F(ingerprintHash|orceCommand|orward(Agent|X11(Timeout|Trusted)?))|G(atewayPorts|SSAPI(Authentication|CleanupCredentials|ClientIdentity|DelegateCredentials|KeyExchange|RenewalForcesRekey|ServerIdentity|StrictAcceptorCheck|TrustDns)|atewayPorts|lobalKnownHostsFile)|H(ashKnownHosts|ost(based(AcceptedKeyTypes|Authentication|KeyTypes|UsesNameFromPacketOnly)|Certificate|Key(Agent|Algorithms|Alias)?|Name))|I(dentit(iesOnly|y(Agent|File))|gnore(Rhosts|Unknown|UserKnownHosts)|nclude|PQoS)|K(bdInteractive(Authentication|Devices)|erberos(Authentication|GetAFSToken|OrLocalPasswd|TicketCleanup)|exAlgorithms)|L(istenAddress|ocal(Command|Forward)|oginGraceTime|ogLevel)|M(ACs|atch|ax(AuthTries|Sessions|Startups))|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(KCS11Provider|asswordAuthentication|ermit(EmptyPasswords|LocalCommand|Open|RootLogin|TTY|Tunnel|User(Environment|RC))|idFile|ort|referredAuthentications|rint(LastLog|Motd)|rotocol|roxy(Command|Jump|UseFdpass)|ubkey(AcceptedKeyTypes|Authentication))|R(Domain|SAAuthentication|ekeyLimit|emote(Command|Forward)|equestTTY|evoked(HostKeys|Keys)|hostsRSAAuthentication)|S(endEnv|erverAlive(CountMax|Interval)|treamLocalBind(Mask|Unlink)|trict(HostKeyChecking|Modes)|ubsystem|yslogFacility)|T(CPKeepAlive|rustedUserCAKeys|unnel(Device)?)|U(pdateHostKeys|se(BlacklistedKeys|DNS|Keychain|PAM|PrivilegedPort|r(KnownHostsFile)?))|V(erifyHostKeyDNS|ersionAddendum|isualHostKey)|X(11(DisplayOffset|Forwarding|UseLocalhost)|AuthLocation))\b/dgv,name:"keyword.other.ssh-config"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ssh-config"}},end
|
|
3
|
+
const lang = Object.freeze({displayName:"SSH Config",fileTypes:["ssh_config",".ssh/config","sshd_config"],name:"ssh-config",patterns:[{match:/\b(A(cceptEnv|dd(ressFamily|KeysToAgent)|llow(AgentForwarding|Groups|StreamLocalForwarding|TcpForwarding|Users)|uth(enticationMethods|orized((Keys(Command(User)?|File)|Principals(Command(User)?|File)))))|B(anner|atchMode|ind(Address|Interface))|C(anonical(Domains|ize(FallbackLocal|Hostname|MaxDots|PermittedCNAMEs))|ertificateFile|hallengeResponseAuthentication|heckHostIP|hrootDirectory|iphers?|learAllForwardings|ientAlive(CountMax|Interval)|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath|ontrolPersist)|D(eny(Groups|Users)|isableForwarding|ynamicForward)|E(nableSSHKeysign|scapeChar|xitOnForwardFailure|xposeAuthInfo)|F(ingerprintHash|orceCommand|orward(Agent|X11(Timeout|Trusted)?))|G(atewayPorts|SSAPI(Authentication|CleanupCredentials|ClientIdentity|DelegateCredentials|KeyExchange|RenewalForcesRekey|ServerIdentity|StrictAcceptorCheck|TrustDns)|atewayPorts|lobalKnownHostsFile)|H(ashKnownHosts|ost(based(AcceptedKeyTypes|Authentication|KeyTypes|UsesNameFromPacketOnly)|Certificate|Key(Agent|Algorithms|Alias)?|Name))|I(dentit(iesOnly|y(Agent|File))|gnore(Rhosts|Unknown|UserKnownHosts)|nclude|PQoS)|K(bdInteractive(Authentication|Devices)|erberos(Authentication|GetAFSToken|OrLocalPasswd|TicketCleanup)|exAlgorithms)|L(istenAddress|ocal(Command|Forward)|oginGraceTime|ogLevel)|M(ACs|atch|ax(AuthTries|Sessions|Startups))|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(KCS11Provider|asswordAuthentication|ermit(EmptyPasswords|LocalCommand|Open|RootLogin|TTY|Tunnel|User(Environment|RC))|idFile|ort|referredAuthentications|rint(LastLog|Motd)|rotocol|roxy(Command|Jump|UseFdpass)|ubkey(AcceptedKeyTypes|Authentication))|R(Domain|SAAuthentication|ekeyLimit|emote(Command|Forward)|equestTTY|evoked(HostKeys|Keys)|hostsRSAAuthentication)|S(endEnv|erverAlive(CountMax|Interval)|treamLocalBind(Mask|Unlink)|trict(HostKeyChecking|Modes)|ubsystem|yslogFacility)|T(CPKeepAlive|rustedUserCAKeys|unnel(Device)?)|U(pdateHostKeys|se(BlacklistedKeys|DNS|Keychain|PAM|PrivilegedPort|r(KnownHostsFile)?))|V(erifyHostKeyDNS|ersionAddendum|isualHostKey)|X(11(DisplayOffset|Forwarding|UseLocalhost)|AuthLocation))\b/dgv,name:"keyword.other.ssh-config"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ssh-config"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ssh-config"}},end:/\n/dgv,name:"comment.line.number-sign.ssh-config"}]},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ssh-config"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ssh-config"}},end:/\n/dgv,name:"comment.line.double-slash.ssh-config"}]},{captures:{"1":{name:"storage.type.ssh-config"},"2":{name:"entity.name.section.ssh-config"},"3":{name:"meta.toc-list.ssh-config"}},match:/(?:(?<=^|\n(?!$))| |\t)(Host)\p{space}+(([^\n]*))(?=$|\n)/dgv},{match:/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/dgv,name:"constant.numeric.ssh-config"},{match:/\b[0-9]+\b/dgv,name:"constant.numeric.ssh-config"},{match:/\b(yes|no)\b/dgv,name:"constant.language.ssh-config"},{match:/\b[A-Z_]+\b/dgv,name:"constant.language.ssh-config"}],scopeName:"source.ssh-config",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
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:/(?<=^|\n(?!$))\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:/(?<=^|\n(?!$))\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:/(?<=^|\n(?!$))\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:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.stylus"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.stylus"}},end:/(?=\n)/dgv,name:"comment.line.double-slash.stylus"}]},declaration:{begin:/((?<=(?<=^|\n(?!$)))[^\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:/(?<=(?<=^|\n(?!$)))[^\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:/\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,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:/(?<!(?<=^|\n(?!$)))(@[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: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}]*)|((?:(?=($E$(['\"])(?:[^\\\\]|\\\\[^\\n])*?(\\7)))\\6))))?\\p{space}*(\\])","dgiv",{"useEmulationGroups":true}),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:/(?<=^|\n(?!$))[^\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:/(?<=^|\n(?!$))\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:/(?<=^|\n(?!$))\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:/(?<=^|\n(?!$))\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:/((?<=^|\n(?!$))[ \t]+)?(?=\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.stylus"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/\/\//dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.stylus"}},end:/(?=\n)/dgv,name:"comment.line.double-slash.stylus"}]},declaration:{begin:/((?<=(?<=^|\n(?!$)))[^\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:/(?<=(?<=^|\n(?!$)))[^\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:/\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,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:/(?<!(?<=^|\n(?!$)))(@[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}]*)|((?:(?=($E$(['\"])(?:[^\\\\]|\\\\[^\\n])*?(\\7)))\\6))))?\\p{space}*(\\])","dgiv",{"useEmulationGroups":true}),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:/(?<=^|\n(?!$))[^\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/svelte.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import typescript from './typescript.mjs'
|
|
|
4
4
|
import css from './css.mjs'
|
|
5
5
|
import postcss from './postcss.mjs'
|
|
6
6
|
|
|
7
|
-
const lang = Object.freeze({displayName:"Svelte",fileTypes:["svelte"],injections:{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.js",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.ts",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.ts"}]}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.coffee",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{patterns:[{match:"(?<![_$./'\"[:alnum:]])\\$(?=[_[:alpha:]][_$[:alnum:]]*)",name:"punctuation.definition.variable.svelte"},{match:"(?<![_$./'\"[:alnum:]])(\\$\\$)(?=props|restProps|slots)",name:"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.js",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.less",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.postcss",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.sass",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.scss",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.stylus",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)\\s",end:"(?=</template)",patterns:[{include:"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"text.pug",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"text.pug"}]}]}},name:"svelte",patterns:[{include:"#scope"}],repository:{attributes:{patterns:[{include:"#attributes-directives"},{include:"#attributes-keyvalue"},{include:"#attributes-interpolated"}]},"attributes-directives":{begin:/(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*(?=\p{space}*=))|((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*))((\|[\p{L}\p{M}\p{N}\p{Pc}]+)*)/dgv,beginCaptures:{"1":{patterns:[{include:"#attributes-directives-keywords"}]},"2":{name:"punctuation.definition.keyword.svelte"},"3":{patterns:[{include:"#attributes-directives-types-assigned"}]},"4":{patterns:[{include:"#attributes-directives-types"}]},"5":{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"support.function.svelte"},{match:/\|/dgv,name:"punctuation.separator.svelte"}]}},end:new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.directive.$1.svelte",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.svelte"}},end:/(?<=[^\p{space}\=])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-directives-keywords":{patterns:[{match:/on|use|bind/dgv,name:"keyword.control.svelte"},{match:/transition|in|out|animate/dgv,name:"keyword.other.animation.svelte"},{match:/let/dgv,name:"storage.type.svelte"},{match:/class|style/dgv,name:"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{patterns:[{match:/(?<=(on):)[^\n]*(?=$|\n)/dgv,name:"entity.name.type.svelte"},{match:/(?<=(bind):)[^\n]*(?=$|\n)/dgv,name:"variable.parameter.svelte"},{match:/(?<=(use|transition|in|out|animate):)[^\n]*(?=$|\n)/dgv,name:"variable.function.svelte"},{match:/(?<=(let|class|style):)[^\n]*(?=$|\n)/dgv,name:"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{patterns:[{match:/(?<=(bind):)this(?=$|\n)/dgv,name:"variable.language.svelte"},{match:/(?<=(bind):)[^\n]*(?=$|\n)/dgv,name:"entity.name.type.svelte"},{match:/(?<=(class):)[^\n]*(?=$|\n)/dgv,name:"entity.other.attribute-name.class.svelte"},{match:/(?<=(style):)[^\n]*(?=$|\n)/dgv,name:"support.type.property-name.svelte"},{include:"#attributes-directives-types"}]},"attributes-generics":{begin:/(generics)(=)(["'])/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.svelte"},"2":{name:"punctuation.separator.key-value.svelte"},"3":{name:"punctuation.definition.string.begin.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/(\3)()()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.svelte"}},patterns:[{include:"#type-parameters"}]},"attributes-interpolated":{begin:/(?<!:|=)\p{space}*(\{)/dgv,captures:{"1":{name:"entity.other.attribute-name.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/(\})/dgv,patterns:[{include:"source.ts"}]},"attributes-keyvalue":{begin:/((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*)/dgv,beginCaptures:{"0":{patterns:[{match:/--[^\n]*/dgv,name:"support.type.property-name.svelte"},{match:/[^\n]*/dgv,name:"entity.other.attribute-name.svelte"}]}},end:new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.attribute.$1.svelte",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.svelte"}},end:/(?<=[^\p{space}\=])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-value":{patterns:[{include:"#interpolation"},{captures:{"1":{name:"punctuation.definition.string.begin.svelte"},"2":{name:"constant.numeric.decimal.svelte"},"3":{name:"punctuation.definition.string.end.svelte"},"4":{name:"constant.numeric.decimal.svelte"}},match:/(['"])([0-9\._]+[\p{L}\p{M}\p{N}\p{Pc}\%]{0,4})(\1)|([0-9\._]+[\p{L}\p{M}\p{N}\p{Pc}\%]{0,4})(?=\p{space}|\/?>)/dgv},{match:/([^\p{space}"'\=\<\>\`\/]|\/(?!>))+/dgv,name:"string.unquoted.svelte",patterns:[{include:"#interpolation"}]},{begin:/(['"])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.svelte"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.svelte"}},name:"string.quoted.svelte",patterns:[{include:"#interpolation"}]}]},comments:{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.svelte"}},end:/-->/dgv,name:"comment.block.svelte",patterns:[{begin:/(@)(component)/dgv,beginCaptures:{"1":{name:"punctuation.definition.keyword.svelte"},"2":{name:"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},contentName:"comment.block.documentation.svelte",end:/(?=-->)/dgv,patterns:[{captures:{"0":{patterns:[{include:"text.html.markdown"}]}},match:/[^\n]*?(?=-->)/dgv},{include:"text.html.markdown"}]},{match:/-?>|<!--(?!>)|<!-(?=-->)|--!>/dgv,name:"invalid.illegal.characters-not-allowed-here.svelte"}]},destructuring:{patterns:[{begin:/(?=\{)/dgv,end:/(?<=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#object-binding-pattern"}]},{begin:/(?=\[)/dgv,end:/(?<=\])/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#array-binding-pattern"}]}]},"destructuring-const":{patterns:[{begin:/(?=\{)/dgv,end:/(?<=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#object-binding-pattern-const"}]},{begin:/(?=\[)/dgv,end:/(?<=\])/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#array-binding-pattern-const"}]}]},interpolation:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.svelte"}},patterns:[{begin:/\p{space}*(?=\{)/dgvy,end:/(?<=\})/dgv,patterns:[{include:"source.ts#object-literal"}]},{include:"source.ts"}]}]},scope:{patterns:[{include:"#comments"},{include:"#special-tags"},{include:"#tags"},{include:"#interpolation"},{begin:/(?<=>|\})/dgv,end:/(?=<|\{)/dgv,name:"text.svelte"}]},"special-tags":{patterns:[{include:"#special-tags-void"},{include:"#special-tags-block-begin"},{include:"#special-tags-block-end"}]},"special-tags-block-begin":{begin:/(\{)\p{space}*(#([a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte meta.special.start.svelte",patterns:[{include:"#special-tags-modes"}]},"special-tags-block-end":{begin:/(\{)\p{space}*(\/([a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{captures:{"1":{name:"punctuation.definition.keyword.svelte"},"2":{patterns:[{match:/if|else\p{space}+if|else/dgv,name:"keyword.control.conditional.svelte"},{match:/each|key/dgv,name:"keyword.control.svelte"},{match:/await|then|catch/dgv,name:"keyword.control.flow.svelte"},{match:/snippet/dgv,name:"keyword.control.svelte"},{match:/html/dgv,name:"keyword.other.svelte"},{match:/render/dgv,name:"keyword.other.svelte"},{match:/debug/dgv,name:"keyword.other.debugger.svelte"},{match:/const/dgv,name:"storage.type.svelte"}]}},match:/([\#\@\/\:])(else\p{space}+if|[a-z]*)/dgv},"special-tags-modes":{patterns:[{begin:/(?<=(if|key|then|catch|snippet|html|render)[^\n]*?)/dgvy,end:/(?=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]},{begin:/(?<=const[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{include:"#destructuring-const"},{begin:/\p{space}*([_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]+)\p{space}*/dgvy,beginCaptures:{"1":{name:"variable.other.constant.svelte"}},end:/(?==)/dgv},{begin:/(?==)/dgv,end:/(?=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}]},{begin:/(?<=each[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{begin:/\p{space}*?(?=\P{space})/dgvy,contentName:"meta.embedded.expression.svelte source.ts",end:/(?=(?:(?<=^|\n(?!$))\p{space}*|\p{space}+)(as)|\p{space}*(\}|,))/dgv,patterns:[{include:"source.ts"}]},{begin:/(as)|(?=\}|,)/dgv,beginCaptures:{"1":{name:"keyword.control.as.svelte"}},end:/(?=\})/dgv,patterns:[{include:"#destructuring"},{begin:/\(/dgv,captures:{"0":{name:"meta.brace.round.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/\)|(?=\})/dgv,patterns:[{include:"source.ts"}]},{captures:{"1":{name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}},match:/(\p{space}*([_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*)\p{space}*)/dgv},{match:/,/dgv,name:"punctuation.separator.svelte"}]}]},{begin:/(?<=await[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{begin:/\p{space}*?(?=\P{space})/dgvy,contentName:"meta.embedded.expression.svelte source.ts",end:/\p{space}+(then)|(?=\})/dgv,endCaptures:{"1":{name:"keyword.control.flow.svelte"}},patterns:[{include:"source.ts"}]},{begin:/(?<=then\b)/dgv,contentName:"meta.embedded.expression.svelte source.ts",end:/(?=\})/dgv,patterns:[{include:"source.ts"}]}]},{begin:/(?<=debug[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{captures:{"0":{name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}},match:/[_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*/dgv},{match:/,/dgv,name:"punctuation.separator.svelte"}]}]},"special-tags-void":{begin:/(\{)\p{space}*([\@\:](else\p{space}+if|[a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte",patterns:[{include:"#special-tags-modes"}]},tags:{patterns:[{include:"#tags-lang"},{include:"#tags-void"},{include:"#tags-general-end"},{include:"#tags-general-start"}]},"tags-end-node":{captures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{name:"meta.tag.end.svelte",patterns:[{include:"#tags-name"}]},"3":{name:"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{name:"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},match:/(<\/)([^\n]*?)\p{space}*(>)|(\/>)/dgv},"tags-general-end":{begin:/(<\/)([^\/\p{space}\>]*)/dgv,beginCaptures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{name:"meta.tag.end.svelte",patterns:[{include:"#tags-name"}]}},end:/(>)/dgv,endCaptures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},name:"meta.scope.tag.$2.svelte"},"tags-general-start":{begin:/(<)([^\/\p{space}\>\/]*)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},name:"meta.scope.tag.$2.svelte",patterns:[{include:"#tags-start-attributes"}]},"tags-lang":{begin:/<(script|style|template)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.$1.svelte",patterns:[{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(['"]|)(?:text\/)?([\p{L}\p{M}\p{N}\p{Pc}]+)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.$3.svelte",patterns:[{include:"#tags-lang-start-attributes"}]},{include:"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{begin:/(?:)/dgv,end:/(?=\/>)|>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.svelte"}},name:"meta.tag.start.svelte",patterns:[{include:"#attributes-generics"},{include:"#attributes"}]},"tags-name":{patterns:[{captures:{"1":{name:"keyword.control.svelte"},"2":{name:"punctuation.definition.keyword.svelte"},"3":{name:"entity.name.tag.svelte"}},match:/(svelte)(:)([a-z][\p{L}\p{M}\p{N}\p{Pc}\:\-]*)/dgv},{match:/slot/dgv,name:"keyword.control.svelte"},{captures:{"1":{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"support.class.component.svelte"},{match:/\./dgv,name:"punctuation.definition.keyword.svelte"}]},"2":{name:"support.class.component.svelte"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+(?:\.[\p{L}\p{M}\p{N}\p{Pc}]+)+)|([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)/dgv},{match:/[a-z][\p{L}\p{M}\p{N}\p{Pc}0-9\:]*-[\p{L}\p{M}\p{N}\p{Pc}0-9\:\-]*/dgv,name:"meta.tag.custom.svelte entity.name.tag.svelte"},{match:/[a-z][\p{L}\p{M}\p{N}\p{Pc}0-9\:\-]*/dgv,name:"entity.name.tag.svelte"}]},"tags-start-attributes":{begin:/(?:)/dgv,end:/(?=\/?>)/dgv,name:"meta.tag.start.svelte",patterns:[{include:"#attributes"}]},"tags-start-node":{captures:{"1":{name:"punctuation.definition.tag.begin.svelte"},"2":{patterns:[{include:"#tags-name"}]}},match:/(<)([^\/\p{space}\>\/]*)/dgv,name:"meta.tag.start.svelte"},"tags-void":{begin:/(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\p{space}|\/?>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.svelte"},"2":{name:"entity.name.tag.svelte"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.begin.svelte"}},name:"meta.tag.void.svelte",patterns:[{include:"#attributes"}]},"type-parameters":{name:"meta.type.parameters.ts",patterns:[{include:"source.ts#comment"},{match:/(?<![_\$\p{Alpha}\p{Nd}])(?:(?<=\.\.\.)|(?<!\.))(extends|in|out|const)(?![_\$\p{Alpha}\p{Nd}])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:/(=)(?!>)/dgv,name:"keyword.operator.assignment.ts"}]}},scopeName:"source.svelte",embeddedLangs:["javascript","typescript","css","postcss"],aliases:undefined,embeddedLangsLazy:["coffee","stylus","sass","scss","less","pug","markdown"]})
|
|
7
|
+
const lang = Object.freeze({displayName:"Svelte",fileTypes:["svelte"],injections:{"L:(meta.script.svelte | meta.style.svelte) (meta.lang.js | meta.lang.javascript) - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.js",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.js"}]}]},"L:(meta.script.svelte | meta.style.svelte) (meta.lang.ts | meta.lang.typescript) - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.ts",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.ts"}]}]},"L:(meta.script.svelte | meta.style.svelte) meta.lang.coffee - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.coffee",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.coffee"}]}]},"L:(source.ts, source.js, source.coffee)":{patterns:[{match:"(?<![_$./'\"[:alnum:]])\\$(?=[_[:alpha:]][_$[:alnum:]]*)",name:"punctuation.definition.variable.svelte"},{match:"(?<![_$./'\"[:alnum:]])(\\$\\$)(?=props|restProps|slots)",name:"punctuation.definition.variable.svelte"}]},"L:meta.script.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.js",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.js"}]}]},"L:meta.style.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css"}]}]},"L:meta.style.svelte meta.lang.css - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css"}]}]},"L:meta.style.svelte meta.lang.less - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.less",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.less"}]}]},"L:meta.style.svelte meta.lang.postcss - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.postcss",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.postcss"}]}]},"L:meta.style.svelte meta.lang.sass - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.sass",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.sass"}]}]},"L:meta.style.svelte meta.lang.scss - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.css.scss",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.css.scss"}]}]},"L:meta.style.svelte meta.lang.stylus - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"source.stylus",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"source.stylus"}]}]},"L:meta.template.svelte - meta.lang - (meta source)":{patterns:[{begin:"(?<=>)\\s",end:"(?=</template)",patterns:[{include:"#scope"}]}]},"L:meta.template.svelte meta.lang.pug - (meta source)":{patterns:[{begin:"(?<=>)(?!</)",contentName:"text.pug",end:"(?=</)",name:"meta.embedded.block.svelte",patterns:[{include:"text.pug"}]}]}},name:"svelte",patterns:[{include:"#scope"}],repository:{attributes:{patterns:[{include:"#attributes-directives"},{include:"#attributes-keyvalue"},{include:"#attributes-interpolated"}]},"attributes-directives":{begin:/(?<!<)(on|use|bind|transition|in|out|animate|let|class|style)(:)(?:((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*(?=\p{space}*=))|((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*))((\|[\p{L}\p{M}\p{N}\p{Pc}]+)*)/dgv,beginCaptures:{"1":{patterns:[{include:"#attributes-directives-keywords"}]},"2":{name:"punctuation.definition.keyword.svelte"},"3":{patterns:[{include:"#attributes-directives-types-assigned"}]},"4":{patterns:[{include:"#attributes-directives-types"}]},"5":{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"support.function.svelte"},{match:/\|/dgv,name:"punctuation.separator.svelte"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.directive.$1.svelte",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.svelte"}},end:/(?<=[^\p{space}\=])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-directives-keywords":{patterns:[{match:/on|use|bind/dgv,name:"keyword.control.svelte"},{match:/transition|in|out|animate/dgv,name:"keyword.other.animation.svelte"},{match:/let/dgv,name:"storage.type.svelte"},{match:/class|style/dgv,name:"entity.other.attribute-name.svelte"}]},"attributes-directives-types":{patterns:[{match:/(?<=(on):)[^\n]*(?=$|\n)/dgv,name:"entity.name.type.svelte"},{match:/(?<=(bind):)[^\n]*(?=$|\n)/dgv,name:"variable.parameter.svelte"},{match:/(?<=(use|transition|in|out|animate):)[^\n]*(?=$|\n)/dgv,name:"variable.function.svelte"},{match:/(?<=(let|class|style):)[^\n]*(?=$|\n)/dgv,name:"variable.parameter.svelte"}]},"attributes-directives-types-assigned":{patterns:[{match:/(?<=(bind):)this(?=$|\n)/dgv,name:"variable.language.svelte"},{match:/(?<=(bind):)[^\n]*(?=$|\n)/dgv,name:"entity.name.type.svelte"},{match:/(?<=(class):)[^\n]*(?=$|\n)/dgv,name:"entity.other.attribute-name.class.svelte"},{match:/(?<=(style):)[^\n]*(?=$|\n)/dgv,name:"support.type.property-name.svelte"},{include:"#attributes-directives-types"}]},"attributes-generics":{begin:/(generics)(=)(["'])/dgv,beginCaptures:{"1":{name:"entity.other.attribute-name.svelte"},"2":{name:"punctuation.separator.key-value.svelte"},"3":{name:"punctuation.definition.string.begin.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/(\3)()()/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.svelte"}},patterns:[{include:"#type-parameters"}]},"attributes-interpolated":{begin:/(?<!:|=)\p{space}*(\{)/dgv,captures:{"1":{name:"entity.other.attribute-name.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/(\})/dgv,patterns:[{include:"source.ts"}]},"attributes-keyvalue":{begin:/((?:--)?[_\$\p{Alpha}][_\-\$\p{Alpha}\p{Nd}]*)/dgv,beginCaptures:{"0":{patterns:[{match:/--[^\n]*/dgv,name:"support.type.property-name.svelte"},{match:/[^\n]*/dgv,name:"entity.other.attribute-name.svelte"}]}},end:/*@__PURE__*/ new EmulatedRegExp("(?=(?:(?=($E$\\p{space}*))\\1)[^\\=\\p{space}])","dgv",{"useEmulationGroups":true}),name:"meta.attribute.$1.svelte",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"punctuation.separator.key-value.svelte"}},end:/(?<=[^\p{space}\=])(?!\p{space}*=)|(?=\/?>)/dgv,patterns:[{include:"#attributes-value"}]}]},"attributes-value":{patterns:[{include:"#interpolation"},{captures:{"1":{name:"punctuation.definition.string.begin.svelte"},"2":{name:"constant.numeric.decimal.svelte"},"3":{name:"punctuation.definition.string.end.svelte"},"4":{name:"constant.numeric.decimal.svelte"}},match:/(['"])([0-9\._]+[\p{L}\p{M}\p{N}\p{Pc}\%]{0,4})(\1)|([0-9\._]+[\p{L}\p{M}\p{N}\p{Pc}\%]{0,4})(?=\p{space}|\/?>)/dgv},{match:/([^\p{space}"'\=\<\>\`\/]|\/(?!>))+/dgv,name:"string.unquoted.svelte",patterns:[{include:"#interpolation"}]},{begin:/(['"])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.svelte"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.svelte"}},name:"string.quoted.svelte",patterns:[{include:"#interpolation"}]}]},comments:{begin:/<!--/dgv,captures:{"0":{name:"punctuation.definition.comment.svelte"}},end:/-->/dgv,name:"comment.block.svelte",patterns:[{begin:/(@)(component)/dgv,beginCaptures:{"1":{name:"punctuation.definition.keyword.svelte"},"2":{name:"storage.type.class.component.svelte keyword.declaration.class.component.svelte"}},contentName:"comment.block.documentation.svelte",end:/(?=-->)/dgv,patterns:[{captures:{"0":{patterns:[{include:"text.html.markdown"}]}},match:/[^\n]*?(?=-->)/dgv},{include:"text.html.markdown"}]},{match:/*@__PURE__*/ new EmulatedRegExp("^-?>|<!--(?!>)|<!-(?=-->)|--!>","dgv",{"strategy":"search_start_clip"}),name:"invalid.illegal.characters-not-allowed-here.svelte"}]},destructuring:{patterns:[{begin:/(?=\{)/dgv,end:/(?<=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#object-binding-pattern"}]},{begin:/(?=\[)/dgv,end:/(?<=\])/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#array-binding-pattern"}]}]},"destructuring-const":{patterns:[{begin:/(?=\{)/dgv,end:/(?<=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#object-binding-pattern-const"}]},{begin:/(?=\[)/dgv,end:/(?<=\])/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts#array-binding-pattern-const"}]}]},interpolation:{patterns:[{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.svelte"}},patterns:[{begin:/\p{space}*(?=\{)/dgvy,end:/(?<=\})/dgv,patterns:[{include:"source.ts#object-literal"}]},{include:"source.ts"}]}]},scope:{patterns:[{include:"#comments"},{include:"#special-tags"},{include:"#tags"},{include:"#interpolation"},{begin:/(?<=>|\})/dgv,end:/(?=<|\{)/dgv,name:"text.svelte"}]},"special-tags":{patterns:[{include:"#special-tags-void"},{include:"#special-tags-block-begin"},{include:"#special-tags-block-end"}]},"special-tags-block-begin":{begin:/(\{)\p{space}*(#([a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/(\})/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte meta.special.start.svelte",patterns:[{include:"#special-tags-modes"}]},"special-tags-block-end":{begin:/(\{)\p{space}*(\/([a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte meta.special.end.svelte"},"special-tags-keywords":{captures:{"1":{name:"punctuation.definition.keyword.svelte"},"2":{patterns:[{match:/if|else\p{space}+if|else/dgv,name:"keyword.control.conditional.svelte"},{match:/each|key/dgv,name:"keyword.control.svelte"},{match:/await|then|catch/dgv,name:"keyword.control.flow.svelte"},{match:/snippet/dgv,name:"keyword.control.svelte"},{match:/html/dgv,name:"keyword.other.svelte"},{match:/render/dgv,name:"keyword.other.svelte"},{match:/debug/dgv,name:"keyword.other.debugger.svelte"},{match:/const/dgv,name:"storage.type.svelte"}]}},match:/([\#\@\/\:])(else\p{space}+if|[a-z]*)/dgv},"special-tags-modes":{patterns:[{begin:/(?<=(if|key|then|catch|snippet|html|render)[^\n]*?)/dgvy,end:/(?=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]},{begin:/(?<=const[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{include:"#destructuring-const"},{begin:/\p{space}*([_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]+)\p{space}*/dgvy,beginCaptures:{"1":{name:"variable.other.constant.svelte"}},end:/(?==)/dgv},{begin:/(?==)/dgv,end:/(?=\})/dgv,name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}]},{begin:/(?<=each[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{begin:/\p{space}*?(?=\P{space})/dgvy,contentName:"meta.embedded.expression.svelte source.ts",end:/(?=(?:(?<=^|\n(?!$))\p{space}*|\p{space}+)(as)|\p{space}*(\}|,))/dgv,patterns:[{include:"source.ts"}]},{begin:/(as)|(?=\}|,)/dgv,beginCaptures:{"1":{name:"keyword.control.as.svelte"}},end:/(?=\})/dgv,patterns:[{include:"#destructuring"},{begin:/\(/dgv,captures:{"0":{name:"meta.brace.round.svelte"}},contentName:"meta.embedded.expression.svelte source.ts",end:/\)|(?=\})/dgv,patterns:[{include:"source.ts"}]},{captures:{"1":{name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}},match:/(\p{space}*([_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*)\p{space}*)/dgv},{match:/,/dgv,name:"punctuation.separator.svelte"}]}]},{begin:/(?<=await[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{begin:/\p{space}*?(?=\P{space})/dgvy,contentName:"meta.embedded.expression.svelte source.ts",end:/\p{space}+(then)|(?=\})/dgv,endCaptures:{"1":{name:"keyword.control.flow.svelte"}},patterns:[{include:"source.ts"}]},{begin:/(?<=then\b)/dgv,contentName:"meta.embedded.expression.svelte source.ts",end:/(?=\})/dgv,patterns:[{include:"source.ts"}]}]},{begin:/(?<=debug[^\n]*?)/dgvy,end:/(?=\})/dgv,patterns:[{captures:{"0":{name:"meta.embedded.expression.svelte source.ts",patterns:[{include:"source.ts"}]}},match:/[_\$\p{Alpha}][_\$\p{Alpha}\p{Nd}]*/dgv},{match:/,/dgv,name:"punctuation.separator.svelte"}]}]},"special-tags-void":{begin:/(\{)\p{space}*([\@\:](else\p{space}+if|[a-z]*))/dgv,beginCaptures:{"1":{name:"punctuation.definition.block.begin.svelte"},"2":{patterns:[{include:"#special-tags-keywords"}]}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.block.end.svelte"}},name:"meta.special.$3.svelte",patterns:[{include:"#special-tags-modes"}]},tags:{patterns:[{include:"#tags-lang"},{include:"#tags-void"},{include:"#tags-general-end"},{include:"#tags-general-start"}]},"tags-end-node":{captures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{name:"meta.tag.end.svelte",patterns:[{include:"#tags-name"}]},"3":{name:"meta.tag.end.svelte punctuation.definition.tag.end.svelte"},"4":{name:"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},match:/(<\/)([^\n]*?)\p{space}*(>)|(\/>)/dgv},"tags-general-end":{begin:/(<\/)([^\/\p{space}\>]*)/dgv,beginCaptures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.begin.svelte"},"2":{name:"meta.tag.end.svelte",patterns:[{include:"#tags-name"}]}},end:/(>)/dgv,endCaptures:{"1":{name:"meta.tag.end.svelte punctuation.definition.tag.end.svelte"}},name:"meta.scope.tag.$2.svelte"},"tags-general-start":{begin:/(<)([^\/\p{space}\>\/]*)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/(\/?>)/dgv,endCaptures:{"1":{name:"meta.tag.start.svelte punctuation.definition.tag.end.svelte"}},name:"meta.scope.tag.$2.svelte",patterns:[{include:"#tags-start-attributes"}]},"tags-lang":{begin:/<(script|style|template)/dgv,beginCaptures:{"0":{patterns:[{include:"#tags-start-node"}]}},end:/<\/\1\p{space}*>|\/>()/dgv,endCaptures:{"0":{patterns:[{include:"#tags-end-node"}]}},name:"meta.$1.svelte",patterns:[{begin:/(?=\p{space}*[^\>]*?(type|lang)\p{space}*=\p{space}*(['"]|)(?:text\/)?([\p{L}\p{M}\p{N}\p{Pc}]+)\2)/dgvy,end:/(?=<\/|\/>)/dgv,name:"meta.lang.$3.svelte",patterns:[{include:"#tags-lang-start-attributes"}]},{include:"#tags-lang-start-attributes"}]},"tags-lang-start-attributes":{begin:/(?:)/dgv,end:/(?=\/>)|>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.end.svelte"}},name:"meta.tag.start.svelte",patterns:[{include:"#attributes-generics"},{include:"#attributes"}]},"tags-name":{patterns:[{captures:{"1":{name:"keyword.control.svelte"},"2":{name:"punctuation.definition.keyword.svelte"},"3":{name:"entity.name.tag.svelte"}},match:/(svelte)(:)([a-z][\p{L}\p{M}\p{N}\p{Pc}\:\-]*)/dgv},{match:/slot/dgv,name:"keyword.control.svelte"},{captures:{"1":{patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"support.class.component.svelte"},{match:/\./dgv,name:"punctuation.definition.keyword.svelte"}]},"2":{name:"support.class.component.svelte"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+(?:\.[\p{L}\p{M}\p{N}\p{Pc}]+)+)|([A-Z][\p{L}\p{M}\p{N}\p{Pc}]+)/dgv},{match:/[a-z][\p{L}\p{M}\p{N}\p{Pc}0-9\:]*-[\p{L}\p{M}\p{N}\p{Pc}0-9\:\-]*/dgv,name:"meta.tag.custom.svelte entity.name.tag.svelte"},{match:/[a-z][\p{L}\p{M}\p{N}\p{Pc}0-9\:\-]*/dgv,name:"entity.name.tag.svelte"}]},"tags-start-attributes":{begin:/(?:)/dgv,end:/(?=\/?>)/dgv,name:"meta.tag.start.svelte",patterns:[{include:"#attributes"}]},"tags-start-node":{captures:{"1":{name:"punctuation.definition.tag.begin.svelte"},"2":{patterns:[{include:"#tags-name"}]}},match:/(<)([^\/\p{space}\>\/]*)/dgv,name:"meta.tag.start.svelte"},"tags-void":{begin:/(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\p{space}|\/?>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.svelte"},"2":{name:"entity.name.tag.svelte"}},end:/\/?>/dgv,endCaptures:{"0":{name:"punctuation.definition.tag.begin.svelte"}},name:"meta.tag.void.svelte",patterns:[{include:"#attributes"}]},"type-parameters":{name:"meta.type.parameters.ts",patterns:[{include:"source.ts#comment"},{match:/(?<![_\$\p{Alpha}\p{Nd}])(?:(?<=\.\.\.)|(?<!\.))(extends|in|out|const)(?![_\$\p{Alpha}\p{Nd}])(?:(?=\.\.\.)|(?!\.))/dgv,name:"storage.modifier.ts"},{include:"source.ts#type"},{include:"source.ts#punctuation-comma"},{match:/(=)(?!>)/dgv,name:"keyword.operator.assignment.ts"}]}},scopeName:"source.svelte",embeddedLangs:["javascript","typescript","css","postcss"],aliases:undefined,embeddedLangsLazy:["coffee","stylus","sass","scss","less","pug","markdown"]})
|
|
8
8
|
|
|
9
9
|
export default [
|
|
10
10
|
...javascript,
|
package/dist/systemd.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
|
+
|
|
3
|
+
const lang = Object.freeze({displayName:"Systemd Units",name:"systemd",patterns:[{include:"#comments"},{begin:/(?<=^|\n(?!$))\p{space}*(InaccessableDirectories|InaccessibleDirectories|ReadOnlyDirectories|ReadWriteDirectories|Capabilities|TableId|UseDomainName|IPv6AcceptRouterAdvertisements|SysVStartPriority|StartLimitInterval|RequiresOverridable|RequisiteOverridable|PropagateReloadTo|PropagateReloadFrom|OnFailureIsolate|BindTo)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"invalid.deprecated"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,patterns:[{include:"#comments"},{include:"#variables"},{include:"#quotedString"},{include:"#booleans"},{include:"#timeSpans"},{include:"#sizes"},{include:"#numbers"}]},{begin:/(?<=^|\n(?!$))\p{space}*(Environment)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{captures:{"1":{name:"variable.parameter"},"2":{name:"keyword.operator.assignment"}},match:/*@__PURE__*/ new EmulatedRegExp("(?<=^|[\\p{space}\"'])([A-Za-z0-9_]+)(=)(?=[^\\p{space}\"'])","dgv",{"strategy":"search_start_clip"})},{include:"#variables"},{include:"#booleans"},{include:"#numbers"}]},{begin:/(?<=^|\n(?!$))\p{space}*(OnCalendar)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#variables"},{include:"#calendarShorthands"},{include:"#numbers"}]},{begin:/(?<=^|\n(?!$))\p{space}*(CapabilityBoundingSet|AmbientCapabilities|AddCapability|DropCapability)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#capabilities"}]},{begin:/(?<=^|\n(?!$))\p{space}*(Restart)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#variables"},{include:"#restartOptions"}]},{begin:/(?<=^|\n(?!$))\p{space}*(Type)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#variables"},{include:"#typeOptions"}]},{begin:/(?<=^|\n(?!$))\p{space}*(Exec(?:Start(?:Pre|Post)?|Reload|Stop(?:Post)?))\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#executablePrefixes"},{include:"#variables"},{include:"#quotedString"},{include:"#booleans"},{include:"#numbers"}]},{begin:/(?<=^|\n(?!$))\p{space}*([\p{L}\p{M}\p{N}\p{Pc}\-\.]+)\p{space}*(=)[ \t]*/dgv,beginCaptures:{"1":{name:"entity.name.tag"},"2":{name:"keyword.operator.assignment"}},end:/(?<!\\)\n/dgv,name:"meta.config-entry.systemd",patterns:[{include:"#comments"},{include:"#variables"},{include:"#quotedString"},{include:"#booleans"},{include:"#timeSpans"},{include:"#sizes"},{include:"#numbers"}]},{include:"#sections"}],repository:{booleans:{patterns:[{match:/\b(?<![\-\/\.])(true|false|on|off|yes|no)(?![\-\/\.])\b/dgv,name:"constant.language"}]},calendarShorthands:{patterns:[{match:/\b(?:minute|hour|dai|month|week|quarter|semiannual)ly\b/dgv,name:"constant.language"}]},capabilities:{patterns:[{match:/\bCAP_(?:AUDIT_CONTROL|AUDIT_READ|AUDIT_WRITE|BLOCK_SUSPEND|BPF|CHECKPOINT_RESTORE|CHOWN|DAC_OVERRIDE|DAC_READ_SEARCH|FOWNER|FSETID|IPC_LOCK|IPC_OWNER|KILL|LEASE|LINUX_IMMUTABLE|MAC_ADMIN|MAC_OVERRIDE|MKNOD|NET_ADMIN|NET_BIND_SERVICE|NET_BROADCAST|NET_RAW|PERFMON|SETFCAP|SETGID|SETPCAP|SETUID|SYS_ADMIN|SYS_BOOT|SYS_CHROOT|SYS_MODULE|SYS_NICE|SYS_PACCT|SYS_PTRACE|SYS_RAWIO|SYS_RESOURCE|SYS_TIME|SYS_TTY_CONFIG|SYSLOG|WAKE_ALARM)\b/dgv,name:"constant.other.systemd"}]},comments:{patterns:[{match:/(?<=^|\n(?!$))\p{space}*[\#\;][^\n]*\n/dgv,name:"comment.line.number-sign"}]},executablePrefixes:{patterns:[{match:/([\@\-\:]+(?:\+|!!?)?|(?:\+|!!?)[\@\-\:]*)/dgvy,name:"keyword.operator.prefix.systemd"}]},numbers:{patterns:[{match:/(?<=\p{space}|=)\p{Nd}+(?:\.\p{Nd}+)?(?=[\p{space}\:]|(?=$|\n))/dgv,name:"constant.numeric"}]},quotedString:{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\p{space})'","dgv",{"strategy":"search_start_clip"}),end:/['\n]/dgv,name:"string.quoted.single",patterns:[{match:/\\(?:[abfnrtvs\\"'\n]|x[0-9A-Fa-f]{2}|[0-8]{3}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"}]},{begin:/*@__PURE__*/ new EmulatedRegExp("(?<=^|\\p{space})\"","dgv",{"strategy":"search_start_clip"}),end:/["\n]/dgv,name:"string.quoted.double",patterns:[{match:/\\(?:[abfnrtvs\\"'\n]|x[0-9A-Fa-f]{2}|[0-8]{3}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/dgv,name:"constant.character.escape"}]}]},restartOptions:{patterns:[{match:/\b(no|always|on-(?:success|failure|abnormal|abort|watchdog))\b/dgv,name:"constant.language"}]},sections:{patterns:[{match:/(?<=^|\n(?!$))\p{space}*\[(Address|Automount|BFIFO|BandMultiQueueing|BareUDP|BatmanAdvanced|Bond|Bridge|BridgeFDB|BridgeMDB|BridgeVLAN|CAKE|CAN|ClassfulMultiQueueing|Container|Content|ControlledDelay|Coredump|D-BUS Service|DHCP|DHCPPrefixDelegation|DHCPServer|DHCPServerStaticLease|DHCPv4|DHCPv6|DHCPv6PrefixDelegation|DeficitRoundRobinScheduler|DeficitRoundRobinSchedulerClass|Distribution|EnhancedTransmissionSelection|Exec|FairQueueing|FairQueueingControlledDelay|Feature|Files|FlowQueuePIE|FooOverUDP|GENEVE|GenericRandomEarlyDetection|HeavyHitterFilter|HierarchyTokenBucket|HierarchyTokenBucketClass|Home|IOCost|IPVLAN|IPVTAP|IPoIB|IPv6AcceptRA|IPv6AddressLabel|IPv6PREF64Prefix|IPv6Prefix|IPv6PrefixDelegation|IPv6RoutePrefix|IPv6SendRA|Image|Install|Journal|Kube|L2TP|L2TPSession|LLDP|Link|Login|MACVLAN|MACVTAP|MACsec|MACsecReceiveAssociation|MACsecReceiveChannel|MACsecTransmitAssociation|Manager|Match|Mount|Neighbor|NetDev|Network|NetworkEmulator|NextHop|OOM|Output|PFIFO|PFIFOFast|PFIFOHeadDrop|PIE|PStore|Packages|Partition|Path|Peer|Pod|QDisc|Quadlet|QuickFairQueueing|QuickFairQueueingClass|Remote|Resolve|Route|RoutingPolicyRule|SR-IOV|Scope|Service|Sleep|Socket|Source|StochasticFairBlue|StochasticFairnessQueueing|Swap|Tap|Target|Time|Timer|TokenBucketFilter|TrafficControlQueueingDiscipline|Transfer|TrivialLinkEqualizer|Tun|Tunnel|UKI|Unit|Upload|VLAN|VRF|VXCAN|VXLAN|Volume|WLAN|WireGuard|WireGuardPeer|Xfrm)\]/dgv,name:"entity.name.section"},{match:/\p{space}*\[[\p{L}\p{M}\p{N}\p{Pc}\-]+\]/dgv,name:"entity.name.unknown-section"}]},sizes:{patterns:[{match:/(?<=\p{space}|=)\p{Nd}+(?:\.\p{Nd}+)?[KMGT](?=[\p{space}\:]|(?=$|\n))/dgv,name:"constant.numeric"},{match:/(?<==)infinity(?=[\p{space}\:]|(?=$|\n))/dgv,name:"constant.numeric"}]},timeSpans:{patterns:[{match:/\b(?:\p{Nd}+(?:[uμ]s(?:ec)?|ms(?:ec)?|s(?:ec|econds?)?|m(?:in|inutes?)?|h(?:r|ours?)?|d(?:ays?)?|w(?:eeks)?|M|months?|y(?:ears?)?))+\b/dgv,name:"constant.numeric"}]},typeOptions:{patterns:[{match:/\b(?:simple|exec|forking|oneshot|dbus|notify(?:-reload)?|idle|unicast|local|broadcast|anycast|multicast|blackhole|unreachable|prohibit|throw|nat|xresolve|blackhole|unreachable|prohibit|ad-hoc|station|ap(?:-vlan)?|wds|monitor|mesh-point|p2p-(?:client|go|device)|ocb|nan)\b/dgv,name:"constant.language"}]},variables:{patterns:[{captures:{"1":{name:"punctuation.definition.variable.systemd"},"2":{name:"variable.other"}},match:/(\$)([A-Za-z0-9_]+)\b/dgv},{captures:{"1":{name:"punctuation.definition.variable.systemd"},"2":{name:"variable.other"},"3":{name:"punctuation.definition.variable.systemd"}},match:/(\$\{)([A-Za-z0-9_]+)(\})/dgv},{match:/%%/dgv,name:"constant.other.placeholder"},{match:/%[aAbBCEfgGhHiIjJlLmMnNopPsStTuUvVwW]\b/dgv,name:"constant.other.placeholder"}]}},scopeName:"source.systemd",embeddedLangs:undefined,aliases:undefined})
|
|
2
4
|
|
|
3
5
|
export default [
|
|
4
6
|
lang
|
package/dist/templ.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import go from './go.mjs'
|
|
|
3
3
|
import javascript from './javascript.mjs'
|
|
4
4
|
import css from './css.mjs'
|
|
5
5
|
|
|
6
|
-
const lang = Object.freeze({displayName:"Templ",name:"templ",patterns:[{include:"#script-template"},{include:"#css-template"},{include:"#html-template"},{include:"source.go"}],repository:{"block-element":{begin:/(<\/?)((?:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=\p{space}|\\|>))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},"call-expression":{begin:/(\{!)\p{space}+/dgv,beginCaptures:{"0":{name:"start.call-expression.templ"},"1":{name:"punctuation.brace.open"}},end:/(\})/dgv,endCaptures:{"0":{name:"end.call-expression.templ"},"1":{name:"punctuation.brace.close"}},name:"call-expression.templ",patterns:[{include:"source.go"}]},"case-expression":{begin:/(?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n)/dgv,captures:{"0":{name:"case.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/((?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n))|((?<=^|\n(?!$))\p{space}*default:(?=$|\n))|(\p{space}*(?=$|\n))/dgv,patterns:[{include:"#template-node"}]},"close-element":{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},"css-template":{begin:/(?<=^|\n(?!$))(css) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"css-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.css-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.css-template.templ",patterns:[{begin:/\p{space}*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|y|x|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\p{space}+/dgv,beginCaptures:{"1":{name:"support.type.property-name.css"}},end:/(?<=;(?=$|\n))/dgv,name:"property.css-template.templ",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(\})(;)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{name:"punctuation.terminator.rule.css"}},name:"expression.property.css-template.templ",patterns:[{include:"source.go"}]},{captures:{"1":{name:"support.type.property-value.css"},"2":{name:"punctuation.terminator.rule.css"}},match:/([^\n]*)(;)(?=$|\n)/dgv,name:"constant.property.css-template.templ"}]}]}]},"default-expression":{begin:/(?<=^|\n(?!$))\p{space}*default:(?=$|\n)/dgv,captures:{"0":{name:"default.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/((?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n))|((?<=^|\n(?!$))\p{space}*default:(?=$|\n))|(\p{space}*(?=$|\n))/dgv,patterns:[{include:"#template-node"}]},element:{begin:new EmulatedRegExp("(<)((?:(?=($E$[a-zA-Z0-9\\:\\-]+))\\3))(?=[^\\>]*></\\2>)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},"else-expression":{begin:/\p{space}+(else)\p{space}+(\{)\p{space}*(?=$|\n)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"else.html-template.templ",patterns:[{include:"#template-node"}]},"else-if-expression":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.else-if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.else-if.html-template.templ",patterns:[{include:"#template-node"}]}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#[xX][0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"for-expression":{begin:/(?<=^|\n(?!$))\p{space}*for [^\n]+\{/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/\p{space}*\}\p{space}*\n/dgv,name:"for.html-template.templ",patterns:[{include:"#template-node"}]},"go-comment-block":{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},"go-comment-double-slash":{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(?:\n|(?=$|\n))/dgv,name:"comment.line.double-slash.go"},"html-comment":{begin:/<!--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.html"}},name:"comment.block.html"},"html-template":{begin:/(?<=^|\n(?!$))(templ) ((?:\([A-z_][A-z_0-9]* \*?[A-z_][A-z_0-9]*\) )?[A-z_][A-z_0-9]*(\(|\[))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"html-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\[)/dgv,end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.square.go"}},name:"type-params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.html-template.templ",patterns:[{include:"#template-node"}]}]},"if-expression":{begin:/(?<=^|\n(?!$))\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.if.html-template.templ",patterns:[{include:"#template-node"}]}]},"import-expression":{patterns:[{begin:/(@)((?:[A-z_][A-z_0-9]*\.)?[A-z_][A-z_0-9]*(?:\(|\{|(?=$|\n)))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=\))(?=$|\n)|(?<=\})(?=$|\n)|(?<=(?=$|\n))/dgv,name:"import-expression.templ",patterns:[{begin:/(?<=[A-z_0-9]\{)/dgv,end:/\p{space}*(\})(\.[A-z_][A-z_0-9]*\()/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{patterns:[{include:"source.go"}]}},name:"struct-method.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}(\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.brace.open"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"children.import-expression.templ",patterns:[{include:"#template-node"}]}]}]},"inline-element":{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=\p{space}|\\|>))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},"raw-go":{begin:/\{\{/dgv,beginCaptures:{"0":{name:"start.raw-go.templ"},"1":{name:"punctuation.brace.open"}},end:/\}\}/dgv,endCaptures:{"0":{name:"end.raw-go.templ"},"1":{name:"punctuation.brace.open"}},name:"raw-go.templ",patterns:[{include:"source.go"}]},"script-element":{begin:/(<)(script)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/script>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.script.html",patterns:[{include:"source.js"}]},"script-template":{begin:/(?<=^|\n(?!$))(script) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"script-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.script-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.script-template.templ",patterns:[{include:"source.js"}]}]},sgml:{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},"string-expression":{begin:/\{\p{space}+/dgv,beginCaptures:{"0":{name:"start.string-expression.templ"}},end:/\}/dgv,endCaptures:{"0":{name:"end.string-expression.templ"}},name:"expression.html-template.templ",patterns:[{include:"source.go"}]},"style-element":{begin:/(<)(style)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/style>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.style.html",patterns:[{include:"source.css"}]},"switch-expression":{begin:/(?<=^|\n(?!$))\p{space}*switch [^\n]+?\{(?=$|\n)/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/(?<=^|\n(?!$))\p{space}*\}(?=$|\n)/dgv,name:"switch.html-template.templ",patterns:[{include:"#template-node"},{include:"#case-expression"},{include:"#default-expression"}]},"tag-else-attribute":{begin:/\p{space}(else)\p{space}(\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.brace.open"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"else.attribute.html",patterns:[{include:"#tag-stuff"}]},"tag-else-if-attribute":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.else-if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.else-if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:new EmulatedRegExp("(?<='|\"|[^\\p{space}\\<\\>\\/])","dgv",{"strategy":"not_search_start"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^\p{space}\{\}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-if-attribute":{begin:/(?<=^|\n(?!$))\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-expression"},{include:"#tag-if-attribute"},{include:"#tag-else-if-attribute"},{include:"#tag-else-attribute"}]},"template-node":{patterns:[{include:"#string-expression"},{include:"#call-expression"},{include:"#import-expression"},{include:"#script-element"},{include:"#style-element"},{include:"#element"},{include:"#html-comment"},{include:"#go-comment-block"},{include:"#go-comment-double-slash"},{include:"#sgml"},{include:"#block-element"},{include:"#inline-element"},{include:"#close-element"},{include:"#else-if-expression"},{include:"#if-expression"},{include:"#else-expression"},{include:"#for-expression"},{include:"#switch-expression"},{include:"#raw-go"}]}},scopeName:"source.templ",embeddedLangs:["go","javascript","css"],aliases:undefined})
|
|
6
|
+
const lang = Object.freeze({displayName:"Templ",name:"templ",patterns:[{include:"#script-template"},{include:"#css-template"},{include:"#html-template"},{include:"source.go"}],repository:{"block-element":{begin:/(<\/?)((?:address|blockquote|dd|div|section|article|aside|header|footer|nav|menu|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|pre)(?=\p{space}|\\|>))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.block.any.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},"call-expression":{begin:/(\{!)\p{space}+/dgv,beginCaptures:{"0":{name:"start.call-expression.templ"},"1":{name:"punctuation.brace.open"}},end:/(\})/dgv,endCaptures:{"0":{name:"end.call-expression.templ"},"1":{name:"punctuation.brace.close"}},name:"call-expression.templ",patterns:[{include:"source.go"}]},"case-expression":{begin:/(?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n)/dgv,captures:{"0":{name:"case.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/((?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n))|((?<=^|\n(?!$))\p{space}*default:(?=$|\n))|(\p{space}*(?=$|\n))/dgv,patterns:[{include:"#template-node"}]},"close-element":{begin:/(<\/?)([a-zA-Z0-9\:\-]+)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.other.html"}},end:/(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},"css-template":{begin:/(?<=^|\n(?!$))(css) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"css-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.css-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.css-template.templ",patterns:[{begin:/\p{space}*((?:-(?:webkit|moz|o|ms|khtml)-)?(?:zoom|z-index|y|x|writing-mode|wrap|wrap-through|wrap-inside|wrap-flow|wrap-before|wrap-after|word-wrap|word-spacing|word-break|word|will-change|width|widows|white-space-collapse|white-space|white|weight|volume|voice-volume|voice-stress|voice-rate|voice-pitch-range|voice-pitch|voice-family|voice-duration|voice-balance|voice|visibility|vertical-align|vector-effect|variant|user-zoom|user-select|up|unicode-(bidi|range)|trim|translate|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform-box|transform|touch-action|top-width|top-style|top-right-radius|top-left-radius|top-color|top|timing-function|text-wrap|text-underline-position|text-transform|text-spacing|text-space-trim|text-space-collapse|text-size-adjust|text-shadow|text-replace|text-rendering|text-overflow|text-outline|text-orientation|text-justify|text-indent|text-height|text-emphasis-style|text-emphasis-skip|text-emphasis-position|text-emphasis-color|text-emphasis|text-decoration-style|text-decoration-stroke|text-decoration-skip|text-decoration-line|text-decoration-fill|text-decoration-color|text-decoration|text-combine-upright|text-anchor|text-align-last|text-align-all|text-align|text|target-position|target-new|target-name|target|table-layout|tab-size|system|symbols|suffix|style-type|style-position|style-image|style|stroke-width|stroke-opacity|stroke-miterlimit|stroke-linejoin|stroke-linecap|stroke-dashoffset|stroke-dasharray|stroke|string-set|stretch|stress|stop-opacity|stop-color|stacking-strategy|stacking-shift|stacking-ruby|stacking|src|speed|speech-rate|speech|speak-punctuation|speak-numeral|speak-header|speak-as|speak|span|spacing|space-collapse|space|solid-opacity|solid-color|sizing|size-adjust|size|shape-rendering|shape-padding|shape-outside|shape-margin|shape-inside|shape-image-threshold|shadow|scroll-snap-type|scroll-snap-points-y|scroll-snap-points-x|scroll-snap-destination|scroll-snap-coordinate|scroll-behavior|scale|ry|rx|respond-to|rule-width|rule-style|rule-color|rule|ruby-span|ruby-position|ruby-overhang|ruby-merge|ruby-align|ruby|rows|rotation-point|rotation|rotate|role|right-width|right-style|right-color|right|richness|rest-before|rest-after|rest|resource|resolution|resize|reset|replace|repeat|rendering-intent|region-fragment|rate|range|radius|r|quotes|punctuation-trim|punctuation|property|profile|presentation-level|presentation|prefix|position|pointer-events|point|play-state|play-during|play-count|pitch-range|pitch|phonemes|perspective-origin|perspective|pause-before|pause-after|pause|page-policy|page-break-inside|page-break-before|page-break-after|page|padding-top|padding-right|padding-left|padding-inline-start|padding-inline-end|padding-bottom|padding-block-start|padding-block-end|padding|pad|pack|overhang|overflow-y|overflow-x|overflow-wrap|overflow-style|overflow-inline|overflow-block|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|origin|orientation|orient|ordinal-group|order|opacity|offset-start|offset-inline-start|offset-inline-end|offset-end|offset-block-start|offset-block-end|offset-before|offset-after|offset|object-position|object-fit|numeral|new|negative|nav-up|nav-right|nav-left|nav-index|nav-down|nav|name|move-to|motion-rotation|motion-path|motion-offset|motion|model|mix-blend-mode|min-zoom|min-width|min-inline-size|min-height|min-block-size|min|max-zoom|max-width|max-lines|max-inline-size|max-height|max-block-size|max|mask-type|mask-size|mask-repeat|mask-position|mask-origin|mask-mode|mask-image|mask-composite|mask-clip|mask-border-width|mask-border-source|mask-border-slice|mask-border-repeat|mask-border-outset|mask-border-mode|mask-border|mask|marquee-style|marquee-speed|marquee-play-count|marquee-loop|marquee-direction|marquee|marks|marker-start|marker-side|marker-mid|marker-end|marker|margin-top|margin-right|margin-left|margin-inline-start|margin-inline-end|margin-bottom|margin-block-start|margin-block-end|margin|list-style-type|list-style-position|list-style-image|list-style|list|lines|line-stacking-strategy|line-stacking-shift|line-stacking-ruby|line-stacking|line-snap|line-height|line-grid|line-break|line|lighting-color|level|letter-spacing|length|left-width|left-style|left-color|left|label|kerning|justify-self|justify-items|justify-content|justify|iteration-count|isolation|inline-size|inline-box-align|initial-value|initial-size|initial-letter-wrap|initial-letter-align|initial-letter|initial-before-align|initial-before-adjust|initial-after-align|initial-after-adjust|index|indent|increment|image-rendering|image-resolution|image-orientation|image|icon|hyphens|hyphenate-limit-zone|hyphenate-limit-lines|hyphenate-limit-last|hyphenate-limit-chars|hyphenate-character|hyphenate|height|header|hanging-punctuation|grid-template-rows|grid-template-columns|grid-template-areas|grid-template|grid-row-start|grid-row-gap|grid-row-end|grid-row|grid-rows|grid-gap|grid-column-start|grid-column-gap|grid-column-end|grid-column|grid-columns|grid-auto-rows|grid-auto-flow|grid-auto-columns|grid-area|grid|glyph-orientation-vertical|glyph-orientation-horizontal|gap|font-weight|font-variant-position|font-variant-numeric|font-variant-ligatures|font-variant-east-asian|font-variant-caps|font-variant-alternates|font-variant|font-synthesis|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|flow-into|flow-from|flow|flood-opacity|flood-color|float-offset|float|flex-wrap|flex-shrink|flex-grow|flex-group|flex-flow|flex-direction|flex-basis|flex|fit-position|fit|filter|fill-rule|fill-opacity|fill|family|fallback|enable-background|empty-cells|emphasis|elevation|duration|drop-initial-value|drop-initial-size|drop-initial-before-align|drop-initial-before-adjust|drop-initial-after-align|drop-initial-after-adjust|drop|down|dominant-baseline|display-role|display-model|display|direction|delay|decoration-break|decoration|cy|cx|cursor|cue-before|cue-after|cue|crop|counter-set|counter-reset|counter-increment|counter|count|corner-shape|corners|continue|content|contain|columns|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|column-break-before|column-break-after|column|color-rendering|color-profile|color-interpolation-filters|color-interpolation|color-adjust|color|collapse|clip-rule|clip-path|clip|clear|character|caret-shape|caret-color|caret|caption-side|buffered-rendering|break-inside|break-before|break-after|break|box-suppress|box-snap|box-sizing|box-shadow|box-pack|box-orient|box-ordinal-group|box-lines|box-flex-group|box-flex|box-direction|box-decoration-break|box-align|box|bottom-width|bottom-style|bottom-right-radius|bottom-left-radius|bottom-color|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-limit|border-length|border-left-width|border-left-style|border-left-color|border-left|border-inline-start-width|border-inline-start-style|border-inline-start-color|border-inline-start|border-inline-end-width|border-inline-end-style|border-inline-end-color|border-inline-end|border-image-width|border-image-transform|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-clip-top|border-clip-right|border-clip-left|border-clip-bottom|border-clip|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border-block-start-width|border-block-start-style|border-block-start-color|border-block-start|border-block-end-width|border-block-end-style|border-block-end-color|border-block-end|border|bookmark-target|bookmark-level|bookmark-label|bookmark|block-size|binding|bidi|before|baseline-shift|baseline|balance|background-size|background-repeat|background-position-y|background-position-x|background-position-inline|background-position-block|background-position|background-origin|background-image|background-color|background-clip|background-blend-mode|background-attachment|background|backface-visibility|backdrop-filter|azimuth|attachment|appearance|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|alt|all|alignment-baseline|alignment-adjust|alignment|align-last|align-self|align-items|align-content|align|after|adjust|additive-symbols)):\p{space}+/dgv,beginCaptures:{"1":{name:"support.type.property-name.css"}},end:/(?<=;(?=$|\n))/dgv,name:"property.css-template.templ",patterns:[{begin:/(\{)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(\})(;)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{name:"punctuation.terminator.rule.css"}},name:"expression.property.css-template.templ",patterns:[{include:"source.go"}]},{captures:{"1":{name:"support.type.property-value.css"},"2":{name:"punctuation.terminator.rule.css"}},match:/([^\n]*)(;)(?=$|\n)/dgv,name:"constant.property.css-template.templ"}]}]}]},"default-expression":{begin:/(?<=^|\n(?!$))\p{space}*default:(?=$|\n)/dgv,captures:{"0":{name:"default.switch.html-template.templ",patterns:[{include:"source.go"}]}},end:/((?<=^|\n(?!$))\p{space}*case [^\n]+?:(?=$|\n))|((?<=^|\n(?!$))\p{space}*default:(?=$|\n))|(\p{space}*(?=$|\n))/dgv,patterns:[{include:"#template-node"}]},element:{begin:/*@__PURE__*/ new EmulatedRegExp("(<)((?:(?=($E$[a-zA-Z0-9\\:\\-]+))\\3))(?=[^\\>]*></\\2>)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"}},end:/(>(<)\/)(\2)(>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"meta.scope.between-tag-pair.html"},"3":{name:"entity.name.tag.html"},"4":{name:"punctuation.definition.tag.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},"else-expression":{begin:/\p{space}+(else)\p{space}+(\{)\p{space}*(?=$|\n)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"else.html-template.templ",patterns:[{include:"#template-node"}]},"else-if-expression":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.else-if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.else-if.html-template.templ",patterns:[{include:"#template-node"}]}]},entities:{patterns:[{captures:{"1":{name:"punctuation.definition.entity.html"},"3":{name:"punctuation.definition.entity.html"}},match:/(&)([a-zA-Z0-9]+|#[0-9]+|#[xX][0-9a-fA-F]+)(;)/dgv,name:"constant.character.entity.html"},{match:/&/dgv,name:"invalid.illegal.bad-ampersand.html"}]},"for-expression":{begin:/(?<=^|\n(?!$))\p{space}*for [^\n]+\{/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/\p{space}*\}\p{space}*\n/dgv,name:"for.html-template.templ",patterns:[{include:"#template-node"}]},"go-comment-block":{begin:/(\/\*)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(\*\/)/dgv,endCaptures:{"1":{name:"punctuation.definition.comment.go"}},name:"comment.block.go"},"go-comment-double-slash":{begin:/(\/\/)/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.go"}},end:/(?:\n|(?=$|\n))/dgv,name:"comment.line.double-slash.go"},"html-comment":{begin:/<!--/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.html"}},end:/-->/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.html"}},name:"comment.block.html"},"html-template":{begin:/(?<=^|\n(?!$))(templ) ((?:\([A-z_][A-z_0-9]* \*?[A-z_][A-z_0-9]*\) )?[A-z_][A-z_0-9]*(\(|\[))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"html-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\[)/dgv,end:/(\])/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.square.go"}},name:"type-params.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.html-template.templ",patterns:[{include:"#template-node"}]}]},"if-expression":{begin:/(?<=^|\n(?!$))\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.html-template.templ",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},name:"expression.if.html-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.if.html-template.templ",patterns:[{include:"#template-node"}]}]},"import-expression":{patterns:[{begin:/(@)((?:[A-z_][A-z_0-9]*\.)?[A-z_][A-z_0-9]*(?:\(|\{|(?=$|\n)))/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=\))(?=$|\n)|(?<=\})(?=$|\n)|(?<=(?=$|\n))/dgv,name:"import-expression.templ",patterns:[{begin:/(?<=[A-z_0-9]\{)/dgv,end:/\p{space}*(\})(\.[A-z_][A-z_0-9]*\()/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"},"2":{patterns:[{include:"source.go"}]}},name:"struct-method.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.import-expression.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\))\p{space}(\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.brace.open"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"children.import-expression.templ",patterns:[{include:"#template-node"}]}]}]},"inline-element":{begin:/(<\/?)((?:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?=\p{space}|\\|>))/dgiv,beginCaptures:{"1":{name:"punctuation.definition.tag.begin.html"},"2":{name:"entity.name.tag.inline.any.html"}},end:/((?: ?\/)?>)/dgv,endCaptures:{"1":{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},"raw-go":{begin:/\{\{/dgv,beginCaptures:{"0":{name:"start.raw-go.templ"},"1":{name:"punctuation.brace.open"}},end:/\}\}/dgv,endCaptures:{"0":{name:"end.raw-go.templ"},"1":{name:"punctuation.brace.open"}},name:"raw-go.templ",patterns:[{include:"source.go"}]},"script-element":{begin:/(<)(script)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/script>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.script.html",patterns:[{include:"source.js"}]},"script-template":{begin:/(?<=^|\n(?!$))(script) ([A-z_][A-z_0-9]*\()/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{patterns:[{include:"source.go"}]}},end:/(?<=(?<=^|\n(?!$))\}(?=$|\n))/dgv,name:"script-template.templ",patterns:[{begin:/(?<=\()/dgv,end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.round.go"}},name:"params.script-template.templ",patterns:[{include:"source.go"}]},{begin:/(?<=\)) (\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"punctuation.definition.begin.bracket.curly.go"}},end:/(?<=^|\n(?!$))(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.definition.end.bracket.curly.go"}},name:"block.script-template.templ",patterns:[{include:"source.js"}]}]},sgml:{begin:/<!/dgv,captures:{"0":{name:"punctuation.definition.tag.html"}},end:/>/dgv,name:"meta.tag.sgml.html",patterns:[{begin:/DOCTYPE/dgiv,captures:{"1":{name:"entity.name.tag.doctype.html"}},end:/(?=>)/dgv,name:"meta.tag.sgml.doctype.html",patterns:[{match:/"[^"\>]*"/dgv,name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:/\[CDATA\[/dgv,end:/\]\](?=>)/dgv,name:"constant.other.inline-data.html"},{match:/(\p{space}*)(?!--|>)\P{space}(\p{space}*)/dgv,name:"invalid.illegal.bad-comments-or-CDATA.html"}]},"string-double-quoted":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},"string-expression":{begin:/\{\p{space}+/dgv,beginCaptures:{"0":{name:"start.string-expression.templ"}},end:/\}/dgv,endCaptures:{"0":{name:"end.string-expression.templ"}},name:"expression.html-template.templ",patterns:[{include:"source.go"}]},"style-element":{begin:/(<)(style)([^\>]*)(>)/dgv,beginCaptures:{"1":{name:"punctuation.definition.tag.html"},"2":{name:"entity.name.tag.html"},"3":{patterns:[{include:"#tag-stuff"}]},"4":{name:"punctuation.definition.tag.html"}},end:/<\/style>/dgv,endCaptures:{"0":{patterns:[{include:"#close-element"}]}},name:"meta.tag.style.html",patterns:[{include:"source.css"}]},"switch-expression":{begin:/(?<=^|\n(?!$))\p{space}*switch [^\n]+?\{(?=$|\n)/dgv,captures:{"0":{name:"meta.embedded.block.go",patterns:[{include:"source.go"}]}},end:/(?<=^|\n(?!$))\p{space}*\}(?=$|\n)/dgv,name:"switch.html-template.templ",patterns:[{include:"#template-node"},{include:"#case-expression"},{include:"#default-expression"}]},"tag-else-attribute":{begin:/\p{space}(else)\p{space}(\{)(?=$|\n)/dgv,beginCaptures:{"1":{name:"keyword.control.go"},"2":{name:"punctuation.brace.open"}},end:/(?<=^|\n(?!$))\p{space}*(\})(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"else.attribute.html",patterns:[{include:"#tag-stuff"}]},"tag-else-if-attribute":{begin:/\p{space}(else if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"else-if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.else-if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.else-if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-generic-attribute":{match:/(?<=[^\=])\b([a-zA-Z0-9\:\-]+)/dgv,name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:/\b(id)\b\p{space}*(=)/dgv,captures:{"1":{name:"entity.other.attribute-name.id.html"},"2":{name:"punctuation.separator.key-value.html"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)(?<='|\"|[^\\p{space}\\<\\>\\/])","dgv",{"strategy":"search_start_clip"}),name:"meta.attribute-with-value.id.html",patterns:[{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"#entities"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"#entities"}]},{captures:{"0":{name:"meta.toc-list.id.html"}},match:/(?<==)(?:[^\p{space}\{\}\<\>\/'"]|\/(?!>))+/dgv,name:"string.unquoted.html"}]},"tag-if-attribute":{begin:/(?<=^|\n(?!$))\p{space}*(if)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.go"}},end:/(?<=\})/dgv,name:"if.attribute.html",patterns:[{begin:/(?<=if\p{space})/dgv,end:/(\{)(?=$|\n)/dgv,endCaptures:{"1":{name:"punctuation.brace.open"}},name:"expression.if.attribute.html",patterns:[{include:"source.go"}]},{begin:/(?<=\{)(?=$|\n)/dgv,end:/(?<=^|\n(?!$))\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.brace.close"}},name:"block.if.attribute.html",patterns:[{include:"#tag-stuff"}]}]},"tag-stuff":{patterns:[{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-expression"},{include:"#tag-if-attribute"},{include:"#tag-else-if-attribute"},{include:"#tag-else-attribute"}]},"template-node":{patterns:[{include:"#string-expression"},{include:"#call-expression"},{include:"#import-expression"},{include:"#script-element"},{include:"#style-element"},{include:"#element"},{include:"#html-comment"},{include:"#go-comment-block"},{include:"#go-comment-double-slash"},{include:"#sgml"},{include:"#block-element"},{include:"#inline-element"},{include:"#close-element"},{include:"#else-if-expression"},{include:"#if-expression"},{include:"#else-expression"},{include:"#for-expression"},{include:"#switch-expression"},{include:"#raw-go"}]}},scopeName:"source.templ",embeddedLangs:["go","javascript","css"],aliases:undefined})
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
...go,
|
package/dist/tex.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
import r from './r.mjs'
|
|
3
3
|
|
|
4
|
-
const lang = Object.freeze({displayName:"TeX",name:"tex",patterns:[{begin:/(?<=(?<=^|\n(?!$))\p{space}*)((\\)iffalse)(?!\p{space}*[\{\}]\p{space}*\\fi)/dgv,beginCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},contentName:"comment.line.percentage.tex",end:/((\\)(?:else|fi))/dgv,endCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},patterns:[{include:"#comment"},{include:"#braces"},{include:"#conditionals"}]},{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![a-zA-Z\@])/dgv,name:"keyword.control.tex"},{captures:{"1":{name:"keyword.control.catcode.tex"},"2":{name:"punctuation.definition.keyword.tex"},"3":{name:"punctuation.separator.key-value.tex"},"4":{name:"constant.numeric.category.tex"}},match:/((\\)catcode)`(?:\\)?[^\n](=)(\p{Nd}+)/dgv,name:"meta.catcode.tex"},{include:"#comment"},{match:/[\[\]]/dgv,name:"punctuation.definition.brackets.tex"},{begin:/(\$\$|\$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.tex"}},end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.tex"}},name:"meta.math.block.tex support.class.math.block.tex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.tex"},{include:"#math"},{include:"$self"}]},{match:/\\\\/dgv,name:"keyword.control.newline.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)_*[\p{Alphabetic}\@]+(?:_[\p{Alphabetic}\@]+)*:[NncVvoxefTFpwD]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\.)[\p{Alphabetic}\@]+(?:_[\p{Alphabetic}\@]+)*:[NncVvoxefTFpwD]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)(?:[\,\;]|[\p{Alphabetic}\@]+)/dgv,name:"support.function.general.tex"},{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)[^a-zA-Z\@]/dgv,name:"constant.character.escape.tex"}],repository:{braces:{begin:/(?<!\\)\{/dgv,beginCaptures:{"0":{name:"punctuation.group.begin.tex"}},end:/(?<!\\)\}/dgv,endCaptures:{"0":{name:"punctuation.group.end.tex"}},name:"meta.group.braces.tex",patterns:[{include:"#braces"}]},comment:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.tex"}},end
|
|
4
|
+
const lang = Object.freeze({displayName:"TeX",name:"tex",patterns:[{begin:/(?<=(?<=^|\n(?!$))\p{space}*)((\\)iffalse)(?!\p{space}*[\{\}]\p{space}*\\fi)/dgv,beginCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},contentName:"comment.line.percentage.tex",end:/((\\)(?:else|fi))/dgv,endCaptures:{"1":{name:"keyword.control.tex"},"2":{name:"punctuation.definition.keyword.tex"}},patterns:[{include:"#comment"},{include:"#braces"},{include:"#conditionals"}]},{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)(?![a-zA-Z\@])/dgv,name:"keyword.control.tex"},{captures:{"1":{name:"keyword.control.catcode.tex"},"2":{name:"punctuation.definition.keyword.tex"},"3":{name:"punctuation.separator.key-value.tex"},"4":{name:"constant.numeric.category.tex"}},match:/((\\)catcode)`(?:\\)?[^\n](=)(\p{Nd}+)/dgv,name:"meta.catcode.tex"},{include:"#comment"},{match:/[\[\]]/dgv,name:"punctuation.definition.brackets.tex"},{begin:/(\$\$|\$)/dgv,beginCaptures:{"1":{name:"punctuation.definition.string.begin.tex"}},end:/((?!))/dgv,endCaptures:{"1":{name:"punctuation.definition.string.end.tex"}},name:"meta.math.block.tex support.class.math.block.tex",patterns:[{match:/\\\$/dgv,name:"constant.character.escape.tex"},{include:"#math"},{include:"$self"}]},{match:/\\\\/dgv,name:"keyword.control.newline.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)_*[\p{Alphabetic}\@]+(?:_[\p{Alphabetic}\@]+)*:[NncVvoxefTFpwD]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\.)[\p{Alphabetic}\@]+(?:_[\p{Alphabetic}\@]+)*:[NncVvoxefTFpwD]*/dgv,name:"support.class.general.latex3.tex"},{captures:{"1":{name:"punctuation.definition.function.tex"}},match:/(\\)(?:[\,\;]|[\p{Alphabetic}\@]+)/dgv,name:"support.function.general.tex"},{captures:{"1":{name:"punctuation.definition.keyword.tex"}},match:/(\\)[^a-zA-Z\@]/dgv,name:"constant.character.escape.tex"}],repository:{braces:{begin:/(?<!\\)\{/dgv,beginCaptures:{"0":{name:"punctuation.group.begin.tex"}},end:/(?<!\\)\}/dgv,endCaptures:{"0":{name:"punctuation.group.end.tex"}},name:"meta.group.braces.tex",patterns:[{include:"#braces"}]},comment:{begin:/((?<=^|\n(?!$))[ \t]+)?(?=%)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.tex"}},end:/*@__PURE__*/ new EmulatedRegExp("(?!^)","dgv",{"strategy":"search_start_clip"}),patterns:[{begin:/%:?/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.tex"}},end:/(?=$|\n)\n?/dgv,name:"comment.line.percentage.tex"},{begin:/(?<=^|\n(?!$))(%!TEX) (\P{space}*) =/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.tex"}},end:/(?=$|\n)\n?/dgv,name:"comment.line.percentage.directive.tex"}]},conditionals:{begin:/(?<=(?<=^|\n(?!$))\p{space}*)\\if[a-z]*/dgv,end:/(?<=(?<=^|\n(?!$))\p{space}*)\\fi/dgv,patterns:[{include:"#comment"},{include:"#conditionals"}]},math:{patterns:[{begin:/((\\)(?:text|mbox))(\{)/dgv,beginCaptures:{"1":{name:"constant.other.math.tex"},"2":{name:"punctuation.definition.function.tex"},"3":{name:"punctuation.definition.arguments.begin.tex meta.text.normal.tex"}},contentName:"meta.text.normal.tex",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.arguments.end.tex meta.text.normal.tex"}},patterns:[{include:"#math"},{include:"$self"}]},{match:/\\\{|\\\}/dgv,name:"punctuation.math.bracket.pair.tex"},{match:/\\(left|right|((big|bigg|Big|Bigg)[lr]?))([\(\[\<\>\]\)\.\|]|\\[\{\}\|]|\\[lr]?[Vv]ert|\\[lr]angle)/dgv,name:"punctuation.math.bracket.pair.big.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)(?![a-zA-Z\@])/dgv,name:"constant.character.math.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\b/dgv,name:"constant.character.math.tex"},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\b/dgv,name:"constant.other.math.tex"},{begin:/((\\)Sexpr(\{))/dgv,beginCaptures:{"1":{name:"support.function.sexpr.math.tex"},"2":{name:"punctuation.definition.function.math.tex"},"3":{name:"punctuation.section.embedded.begin.math.tex"}},contentName:"support.function.sexpr.math.tex",end:/(((\})))/dgv,endCaptures:{"1":{name:"support.function.sexpr.math.tex"},"2":{name:"punctuation.section.embedded.end.math.tex"},"3":{name:"source.r"}},name:"meta.embedded.line.r",patterns:[{begin:/(?!\})/dgvy,end:/(?=\})/dgv,name:"source.r",patterns:[{include:"source.r"}]}]},{captures:{"1":{name:"punctuation.definition.constant.math.tex"}},match:/(\\)(?!begin\{|verb)([A-Za-z]+)/dgv,name:"constant.other.general.math.tex"},{match:/(?<!\\)\{/dgv,name:"punctuation.math.begin.bracket.curly.tex"},{match:/(?<!\\)\}/dgv,name:"punctuation.math.end.bracket.curly.tex"},{match:/(?<!\\)\(/dgv,name:"punctuation.math.begin.bracket.round.tex"},{match:/(?<!\\)\)/dgv,name:"punctuation.math.end.bracket.round.tex"},{match:/(([0-9]*[\.][0-9]+)|[0-9]+)/dgv,name:"constant.numeric.math.tex"},{match:/[\+\*\/_\^\-]/dgv,name:"punctuation.math.operator.tex"}]}},scopeName:"text.tex",embeddedLangs:["r"],aliases:undefined})
|
|
5
5
|
|
|
6
6
|
export default [
|
|
7
7
|
...r,
|