@vue/devtools-electron 7.0.14 → 7.0.15
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/client/assets/{html-NT1OIsSF.js → html-KTYx-Ibi.js} +1 -1
- package/client/assets/index-1Frwp5tw.css +1 -0
- package/client/assets/{index-KXVUFBYX.js → index-pUxGHMED.js} +78 -78
- package/client/assets/{javascript-4rbEI_qn.js → javascript-JMZ6uy5M.js} +1 -1
- package/client/assets/{typescript-IWNmnGsa.js → typescript-HpdcmTOD.js} +1 -1
- package/client/assets/unocss-runtime-BUS5ojC8.js +2 -0
- package/client/assets/{vue-YzhXM3IG.js → vue-Wn5yI_YW.js} +8 -8
- package/client/assets/{vue-html-K7eG1nl_.js → vue-html-eZW7UT2w.js} +1 -1
- package/client/devtools-panel.css +1 -1
- package/client/devtools-panel.js +13206 -12940
- package/client/{html-WFjUqgJ3.js → html-5TX0KzMQ.js} +1 -1
- package/client/index.html +2 -2
- package/client/{javascript-_oSuCsY2.js → javascript-ewd2r-0o.js} +1 -1
- package/client/{typescript-Pt1W475c.js → typescript-Uom77LgO.js} +1 -1
- package/client/{unocss-runtime-Pdo20xvb.js → unocss-runtime-m4smMc_S.js} +597 -595
- package/client/{vue-CJRD3BeY.js → vue--7M_SvxI.js} +30 -24
- package/client/{vue-html-9E-FEOoO.js → vue-html-GGnAavHU.js} +4 -9
- package/dist/devtools.js +174 -174
- package/dist/index.cjs +68 -68
- package/dist/index.js +68 -68
- package/dist/user-app.cjs +68 -68
- package/dist/user-app.iife.js +69 -69
- package/dist/user-app.js +68 -68
- package/package.json +7 -7
- package/client/assets/index-fx3Lb9Fg.css +0 -1
- package/client/assets/unocss-runtime-TAqnQCrJ.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import e from "./javascript-
|
|
3
|
-
import
|
|
4
|
-
import a from "./typescript-
|
|
1
|
+
import n from "./html-5TX0KzMQ.js";
|
|
2
|
+
import e from "./javascript-ewd2r-0o.js";
|
|
3
|
+
import t from "./css-FzZ_BjSq.js";
|
|
4
|
+
import a from "./typescript-Uom77LgO.js";
|
|
5
5
|
import l from "./json-GUBx_oBO.js";
|
|
6
6
|
import u from "./yaml-0qnKYER3.js";
|
|
7
7
|
const m = Object.freeze({ displayName: "Markdown", name: "markdown", patterns: [{ include: "#frontMatter" }, { include: "#block" }], repository: { ampersand: { comment: "Markdown will convert this for us. We match it so that the HTML grammar will not mark it up as invalid.", match: "&(?!([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+);)", name: "meta.other.valid-ampersand.markdown" }, block: { patterns: [{ include: "#separator" }, { include: "#heading" }, { include: "#blockquote" }, { include: "#lists" }, { include: "#fenced_code_block" }, { include: "#raw_block" }, { include: "#link-def" }, { include: "#html" }, { include: "#table" }, { include: "#paragraph" }] }, blockquote: { begin: "(^|\\G)[ ]{0,3}(>) ?", captures: { 2: { name: "punctuation.definition.quote.begin.markdown" } }, name: "markup.quote.markdown", patterns: [{ include: "#block" }], while: "(^|\\G)\\s*(>) ?" }, bold: { begin: `(?x) (?<open>(\\*\\*(?=\\w)|(?<!\\w)\\*\\*|(?<!\\w)\\b__))(?=\\S) (?=
|
|
@@ -132,7 +132,7 @@ $
|
|
|
132
132
|
)?
|
|
133
133
|
\\s*
|
|
134
134
|
(\\))
|
|
135
|
-
`, name: "meta.link.inline.markdown" }, "link-ref": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown", patterns: [{ include: "#raw" }, { include: "#bold" }, { include: "#italic" }, { include: "#strikethrough" }, { include: "#image-inline" }] }, 4: { name: "punctuation.definition.link.title.end.markdown" }, 5: { name: "punctuation.definition.constant.begin.markdown" }, 6: { name: "constant.other.reference.link.markdown" }, 7: { name: "punctuation.definition.constant.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])(\\[)([^\\]]*+)(\\])", name: "meta.link.reference.markdown" }, "link-ref-literal": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown" }, 4: { name: "punctuation.definition.link.title.end.markdown" }, 5: { name: "punctuation.definition.constant.begin.markdown" }, 6: { name: "punctuation.definition.constant.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])[ ]?(\\[)(\\])", name: "meta.link.reference.literal.markdown" }, "link-ref-shortcut": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown" }, 3: { name: "punctuation.definition.link.title.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])", name: "meta.link.reference.markdown" }, list_paragraph: { begin: "(^|\\G)(?=\\S)(?![*+->]\\s|[0-9]+\\.\\s)", name: "meta.paragraph.markdown", patterns: [{ include: "#inline" }, { include: "text.html.derivative" }, { include: "#heading-setext" }], while: "(^|\\G)(?!\\s*$|#|[ ]{0,3}([-*_>][ ]{2,}){3,}[ \\t]*$\\n?|[ ]{0,3}[*+->]|[ ]{0,3}[0-9]+\\.)" }, lists: { patterns: [{ begin: "(^|\\G)([ ]{0,3})([*+-])([ \\t])", beginCaptures: { 3: { name: "punctuation.definition.list.begin.markdown" } }, comment: "Currently does not support un-indented second lines.", name: "markup.list.unnumbered.markdown", patterns: [{ include: "#block" }, { include: "#list_paragraph" }], while: "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)" }, { begin: "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])", beginCaptures: { 3: { name: "punctuation.definition.list.begin.markdown" } }, name: "markup.list.numbered.markdown", patterns: [{ include: "#block" }, { include: "#list_paragraph" }], while: "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)" }] }, paragraph: { begin: "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])", name: "meta.paragraph.markdown", patterns: [{ include: "#inline" }, { include: "text.html.derivative" }, { include: "#heading-setext" }], while: "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))" }, raw: { captures: { 1: { name: "punctuation.definition.raw.markdown" }, 3: { name: "punctuation.definition.raw.markdown" } }, match: "(`+)((?:[^`]|(?!(?<!`)\\1(?!`))`)*+)(\\1)", name: "markup.inline.raw.string.markdown" }, raw_block: { begin: "(^|\\G)([ ]{4}|\\t)", name: "markup.raw.block.markdown", while: "(^|\\G)([ ]{4}|\\t)" }, separator: { match: "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?", name: "meta.separator.markdown" }, strikethrough: { captures: { 1: { name: "punctuation.definition.strikethrough.markdown" }, 2: { patterns: [{ applyEndPatternLast: 1, begin: "(?=<[^>]*?>)", end: "(?<=>)", patterns: [{ include: "text.html.derivative" }] }, { include: "#escape" }, { include: "#ampersand" }, { include: "#bracket" }, { include: "#raw" }, { include: "#bold" }, { include: "#italic" }, { include: "#image-inline" }, { include: "#link-inline" }, { include: "#link-inet" }, { include: "#link-email" }, { include: "#image-ref" }, { include: "#link-ref-literal" }, { include: "#link-ref" }, { include: "#link-ref-shortcut" }] }, 3: { name: "punctuation.definition.strikethrough.markdown" } }, match: "(?<!\\\\)(~{2,})((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)", name: "markup.strikethrough.markdown" }, table: { begin: "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)", beginCaptures: { 2: { name: "punctuation.definition.table.markdown" } }, name: "markup.table.markdown", patterns: [{ match: "\\|", name: "punctuation.definition.table.markdown" }, { captures: { 1: { name: "punctuation.separator.table.markdown" } }, match: "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)" }, { captures: { 1: { patterns: [{ include: "#inline" }] } }, match: "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)" }], while: "(^|\\G)(?=\\|)" } }, scopeName: "text.html.markdown", embeddedLangs: [], aliases: ["md"], embeddedLangsLazy: ["css", "html", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "git-commit", "git-rebase", "go", "groovy", "pug", "javascript", "json", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "rust", "scala", "shellscript", "typescript", "tsx", "csharp", "fsharp", "dart", "handlebars", "erlang", "elixir", "latex", "bibtex"] });
|
|
135
|
+
`, name: "meta.link.inline.markdown" }, "link-ref": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown", patterns: [{ include: "#raw" }, { include: "#bold" }, { include: "#italic" }, { include: "#strikethrough" }, { include: "#image-inline" }] }, 4: { name: "punctuation.definition.link.title.end.markdown" }, 5: { name: "punctuation.definition.constant.begin.markdown" }, 6: { name: "constant.other.reference.link.markdown" }, 7: { name: "punctuation.definition.constant.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])(\\[)([^\\]]*+)(\\])", name: "meta.link.reference.markdown" }, "link-ref-literal": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown" }, 4: { name: "punctuation.definition.link.title.end.markdown" }, 5: { name: "punctuation.definition.constant.begin.markdown" }, 6: { name: "punctuation.definition.constant.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?<square>[^\\[\\]\\\\]|\\\\.|\\[\\g<square>*+\\])*+)(\\])[ ]?(\\[)(\\])", name: "meta.link.reference.literal.markdown" }, "link-ref-shortcut": { captures: { 1: { name: "punctuation.definition.link.title.begin.markdown" }, 2: { name: "string.other.link.title.markdown" }, 3: { name: "punctuation.definition.link.title.end.markdown" } }, match: "(?<![\\]\\\\])(\\[)((?:[^\\s\\[\\]\\\\]|\\\\[\\[\\]])+?)((?<!\\\\)\\])", name: "meta.link.reference.markdown" }, list_paragraph: { begin: "(^|\\G)(?=\\S)(?![*+->]\\s|[0-9]+\\.\\s)", name: "meta.paragraph.markdown", patterns: [{ include: "#inline" }, { include: "text.html.derivative" }, { include: "#heading-setext" }], while: "(^|\\G)(?!\\s*$|#|[ ]{0,3}([-*_>][ ]{2,}){3,}[ \\t]*$\\n?|[ ]{0,3}[*+->]|[ ]{0,3}[0-9]+\\.)" }, lists: { patterns: [{ begin: "(^|\\G)([ ]{0,3})([*+-])([ \\t])", beginCaptures: { 3: { name: "punctuation.definition.list.begin.markdown" } }, comment: "Currently does not support un-indented second lines.", name: "markup.list.unnumbered.markdown", patterns: [{ include: "#block" }, { include: "#list_paragraph" }], while: "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)" }, { begin: "(^|\\G)([ ]{0,3})([0-9]+[\\.\\)])([ \\t])", beginCaptures: { 3: { name: "punctuation.definition.list.begin.markdown" } }, name: "markup.list.numbered.markdown", patterns: [{ include: "#block" }, { include: "#list_paragraph" }], while: "((^|\\G)([ ]{2,4}|\\t))|(^[ \\t]*$)" }] }, paragraph: { begin: "(^|\\G)[ ]{0,3}(?=[^ \\t\\n])", name: "meta.paragraph.markdown", patterns: [{ include: "#inline" }, { include: "text.html.derivative" }, { include: "#heading-setext" }], while: "(^|\\G)((?=\\s*[-=]{3,}\\s*$)|[ ]{4,}(?=[^ \\t\\n]))" }, raw: { captures: { 1: { name: "punctuation.definition.raw.markdown" }, 3: { name: "punctuation.definition.raw.markdown" } }, match: "(`+)((?:[^`]|(?!(?<!`)\\1(?!`))`)*+)(\\1)", name: "markup.inline.raw.string.markdown" }, raw_block: { begin: "(^|\\G)([ ]{4}|\\t)", name: "markup.raw.block.markdown", while: "(^|\\G)([ ]{4}|\\t)" }, separator: { match: "(^|\\G)[ ]{0,3}([\\*\\-\\_])([ ]{0,2}\\2){2,}[ \\t]*$\\n?", name: "meta.separator.markdown" }, strikethrough: { captures: { 1: { name: "punctuation.definition.strikethrough.markdown" }, 2: { patterns: [{ applyEndPatternLast: 1, begin: "(?=<[^>]*?>)", end: "(?<=>)", patterns: [{ include: "text.html.derivative" }] }, { include: "#escape" }, { include: "#ampersand" }, { include: "#bracket" }, { include: "#raw" }, { include: "#bold" }, { include: "#italic" }, { include: "#image-inline" }, { include: "#link-inline" }, { include: "#link-inet" }, { include: "#link-email" }, { include: "#image-ref" }, { include: "#link-ref-literal" }, { include: "#link-ref" }, { include: "#link-ref-shortcut" }] }, 3: { name: "punctuation.definition.strikethrough.markdown" } }, match: "(?<!\\\\)(~{2,})((?:[^~]|(?!(?<![~\\\\])\\1(?!~))~)*+)(\\1)", name: "markup.strikethrough.markdown" }, table: { begin: "(^|\\G)(\\|)(?=[^|].+\\|\\s*$)", beginCaptures: { 2: { name: "punctuation.definition.table.markdown" } }, name: "markup.table.markdown", patterns: [{ match: "\\|", name: "punctuation.definition.table.markdown" }, { captures: { 1: { name: "punctuation.separator.table.markdown" } }, match: "(?<=\\|)\\s*(:?-+:?)\\s*(?=\\|)" }, { captures: { 1: { patterns: [{ include: "#inline" }] } }, match: "(?<=\\|)\\s*(?=\\S)((\\\\\\||[^|])+)(?<=\\S)\\s*(?=\\|)" }], while: "(^|\\G)(?=\\|)" } }, scopeName: "text.html.markdown", embeddedLangs: [], aliases: ["md"], embeddedLangsLazy: ["css", "html", "ini", "java", "lua", "make", "perl", "r", "ruby", "php", "sql", "vb", "xml", "xsl", "yaml", "bat", "clojure", "coffee", "c", "cpp", "diff", "docker", "git-commit", "git-rebase", "go", "groovy", "pug", "javascript", "json", "jsonc", "less", "objective-c", "swift", "scss", "raku", "powershell", "python", "julia", "rust", "scala", "shellscript", "typescript", "tsx", "csharp", "fsharp", "dart", "handlebars", "erlang", "elixir", "latex", "bibtex", "html-derivative"] });
|
|
136
136
|
var p = [
|
|
137
137
|
m
|
|
138
138
|
];
|
|
@@ -232,7 +232,7 @@ const b = Object.freeze({ displayName: "SCSS", name: "scss", patterns: [{ includ
|
|
|
232
232
|
| /\\*
|
|
233
233
|
)`, name: "entity.other.attribute-name.placeholder.css" }, selector_pseudo_class: { patterns: [{ begin: "((:)\\bnth-(?:child|last-child|of-type|last-of-type))(\\()", beginCaptures: { 1: { name: "entity.other.attribute-name.pseudo-class.css" }, 2: { name: "punctuation.definition.entity.css" }, 3: { name: "punctuation.definition.pseudo-class.begin.bracket.round.css" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.pseudo-class.end.bracket.round.css" } }, patterns: [{ include: "#interpolation" }, { match: "\\d+", name: "constant.numeric.css" }, { match: "(?<=\\d)n\\b|\\b(n|even|odd)\\b", name: "constant.other.scss" }, { match: "\\w+", name: "invalid.illegal.scss" }] }, { include: "source.css#pseudo-classes" }, { include: "source.css#pseudo-elements" }, { include: "source.css#functional-pseudo-classes" }] }, selectors: { patterns: [{ include: "source.css#tag-names" }, { include: "#selector_custom" }, { include: "#selector_class" }, { include: "#selector_id" }, { include: "#selector_pseudo_class" }, { include: "#tag_wildcard" }, { include: "#tag_parent_reference" }, { include: "source.css#pseudo-elements" }, { include: "#selector_attribute" }, { include: "#selector_placeholder" }, { include: "#parent_selector_suffix" }] }, string_double: { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.scss" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.scss" } }, name: "string.quoted.double.scss", patterns: [{ match: "\\\\(\\h{1,6}|.)", name: "constant.character.escape.scss" }, { include: "#interpolation" }] }, string_single: { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.scss" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.scss" } }, name: "string.quoted.single.scss", patterns: [{ match: "\\\\(\\h{1,6}|.)", name: "constant.character.escape.scss" }, { include: "#interpolation" }] }, tag_parent_reference: { match: "&", name: "entity.name.tag.reference.scss" }, tag_wildcard: { match: "\\*", name: "entity.name.tag.wildcard.scss" }, variable: { patterns: [{ include: "#variables" }, { include: "#interpolation" }] }, variable_setting: { begin: "(?=\\$[\\w-]+\\s*:)", contentName: "meta.definition.variable.scss", end: ";", endCaptures: { 0: { name: "punctuation.terminator.rule.scss" } }, patterns: [{ match: "\\$[\\w-]+(?=\\s*:)", name: "variable.scss" }, { begin: ":", beginCaptures: { 0: { name: "punctuation.separator.key-value.scss" } }, end: "(?=;)", patterns: [{ include: "#comment_docblock" }, { include: "#comment_block" }, { include: "#comment_line" }, { include: "#map" }, { include: "#property_values" }, { include: "#variable" }, { match: ",", name: "punctuation.separator.delimiter.scss" }] }] }, variables: { patterns: [{ captures: { 1: { name: "variable.scss" }, 2: { name: "punctuation.access.module.scss" }, 3: { name: "variable.scss" } }, match: "\\b([\\w-]+)(\\.)(\\$[\\w-]+)\\b" }, { match: "(\\$|\\-\\-)[A-Za-z0-9_-]+\\b", name: "variable.scss" }] } }, scopeName: "source.css.scss", embeddedLangs: ["css"] });
|
|
234
234
|
var i = [
|
|
235
|
-
...
|
|
235
|
+
...t,
|
|
236
236
|
b
|
|
237
237
|
];
|
|
238
238
|
const g = 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: "(\\{)(\\})", name: "meta.brace.curly.css" }, { match: "\\{|\\}", name: "meta.brace.curly.css" }, { include: "#numeric" }, { include: "#string" }, { include: "#operator" }], repository: { at_rule: { patterns: [{ begin: "\\s*((@)(import|require))\\b\\s*", beginCaptures: { 1: { name: "keyword.control.at-rule.import.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" } }, end: "\\s*((?=;|$|\\n))", endCaptures: { 1: { name: "punctuation.terminator.rule.css" } }, name: "meta.at-rule.import.css", patterns: [{ include: "#string" }] }, { begin: "\\s*((@)(extend[s]?)\\b)\\s*", beginCaptures: { 1: { name: "keyword.control.at-rule.extend.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" } }, end: "\\s*((?=;|$|\\n))", 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: "^\\s*((@)font-face)\\b", name: "meta.at-rule.fontface.stylus" }, { captures: { 1: { name: "keyword.control.at-rule.css.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" } }, match: "^\\s*((@)css)\\b", name: "meta.at-rule.css.stylus" }, { begin: "\\s*((@)charset)\\b\\s*", beginCaptures: { 1: { name: "keyword.control.at-rule.charset.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" } }, end: "\\s*((?=;|$|\\n))", name: "meta.at-rule.charset.stylus", patterns: [{ include: "#string" }] }, { begin: "\\s*((@)keyframes)\\b\\s+([a-zA-Z_-][a-zA-Z0-9_-]*)", beginCaptures: { 1: { name: "keyword.control.at-rule.keyframes.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" }, 3: { name: "entity.name.function.keyframe.stylus" } }, end: "\\s*((?=\\{|$|\\n))", name: "meta.at-rule.keyframes.stylus" }, { begin: "(?=(\\b(\\d+%|from\\b|to\\b)))", end: "(?=(\\{|\\n))", name: "meta.at-rule.keyframes.stylus", patterns: [{ match: "(\\b(\\d+%|from\\b|to\\b))", name: "entity.other.attribute-name.stylus" }] }, { captures: { 1: { name: "keyword.control.at-rule.media.stylus" }, 2: { name: "punctuation.definition.keyword.stylus" } }, match: "^\\s*((@)media)\\b", name: "meta.at-rule.media.stylus" }, { match: "(?:(?=\\w)(?<![\\w-]))(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)(?:(?<=\\w)(?![\\w-]))", name: "support.type.property-name.media-feature.media.css" }, { match: "(?:(?=\\w)(?<![\\w-]))(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)(?:(?<=\\w)(?![\\w-]))", name: "support.constant.media-type.media.css" }, { match: "(?:(?=\\w)(?<![\\w-]))(portrait|landscape)(?:(?<=\\w)(?![\\w-]))", name: "support.constant.property-value.media-property.media.css" }] }, char_escape: { match: "\\\\(.)", name: "constant.character.escape.stylus" }, color: { patterns: [{ begin: "\\b(rgb|rgba|hsl|hsla)(\\()", beginCaptures: { 1: { name: "support.function.color.css" }, 2: { name: "punctuation.section.function.css" } }, end: "(\\))", endCaptures: { 1: { name: "punctuation.section.function.css" } }, name: "meta.function.color.css", patterns: [{ match: "\\s*(,)\\s*", 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", 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", 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", name: "support.constant.color.w3c-extended-color-name.css" }] }, comment: { patterns: [{ include: "#comment_block" }, { include: "#comment_line" }] }, comment_block: { begin: "/\\*", beginCaptures: { 0: { name: "punctuation.definition.comment.begin.css" } }, end: "\\*/", endCaptures: { 0: { name: "punctuation.definition.comment.end.css" } }, name: "comment.block.css" }, comment_line: { begin: "(^[ \\t]+)?(?=//)", beginCaptures: { 1: { name: "punctuation.whitespace.comment.leading.stylus" } }, end: "(?!\\G)", patterns: [{ begin: "//", beginCaptures: { 0: { name: "punctuation.definition.comment.stylus" } }, end: "(?=\\n)", name: "comment.line.double-slash.stylus" }] }, declaration: { begin: "((?<=^)[^\\S\\n]+)|((?<=;)[^\\S\\n]*)|((?<=\\{)[^\\S\\n]*)", end: "(?=\\n)|(;)|(?=\\})|(\\n)", endCaptures: { 2: { name: "punctuation.terminator.rule.css" } }, name: "meta.property-list.css", patterns: [{ match: `(?x) (?<![\\w-])
|
|
@@ -360,12 +360,12 @@ var h = [
|
|
|
360
360
|
const y = Object.freeze({ displayName: "Pug", name: "pug", patterns: [{ comment: "Doctype declaration.", match: "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?", name: "meta.tag.sgml.doctype.html" }, { begin: "^(\\s*)//-", comment: "Unbuffered (pug-only) comments.", end: "^(?!(\\1\\s)|\\s*$)", name: "comment.unbuffered.block.pug" }, { begin: "^(\\s*)//", comment: "Buffered (html) comments.", end: "^(?!(\\1\\s)|\\s*$)", name: "string.comment.buffered.block.pug", patterns: [{ captures: { 1: { name: "invalid.illegal.comment.comment.block.pug" } }, comment: "Buffered comments inside buffered comments will generate invalid html.", match: "^\\s*(//)(?!-)", name: "string.comment.buffered.block.pug" }] }, { begin: "<!--", end: "--\\s*>", name: "comment.unbuffered.block.pug", patterns: [{ match: "--", name: "invalid.illegal.comment.comment.block.pug" }] }, { begin: "^(\\s*)-$", comment: "Unbuffered code block.", end: "^(?!(\\1\\s)|\\s*$)", name: "source.js", patterns: [{ include: "source.js" }] }, { begin: "^(\\s*)(script)((\\.$)|(?=[^\\n]*((text|application)/javascript|module).*\\.$))", beginCaptures: { 2: { name: "entity.name.tag.pug" } }, comment: "Script tag with JavaScript code.", end: "^(?!(\\1\\s)|\\s*$)", name: "meta.tag.other", patterns: [{ begin: "\\G(?=\\()", end: "$", patterns: [{ include: "#tag_attributes" }] }, { begin: "\\G(?=[.#])", end: "$", patterns: [{ include: "#complete_tag" }] }, { include: "source.js" }] }, { begin: "^(\\s*)(style)((\\.$)|(?=[.#(].*\\.$))", beginCaptures: { 2: { name: "entity.name.tag.pug" } }, comment: "Style tag with CSS code.", end: "^(?!(\\1\\s)|\\s*$)", name: "meta.tag.other", patterns: [{ begin: "\\G(?=\\()", end: "$", patterns: [{ include: "#tag_attributes" }] }, { begin: "\\G(?=[.#])", end: "$", patterns: [{ include: "#complete_tag" }] }, { include: "source.css" }] }, { begin: "^(\\s*):(sass)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.sass.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", name: "source.sass.filter.pug", patterns: [{ include: "#tag_attributes" }, { include: "source.sass" }] }, { begin: "^(\\s*):(scss)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.scss.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", name: "source.css.scss.filter.pug", patterns: [{ include: "#tag_attributes" }, { include: "source.css.scss" }] }, { begin: "^(\\s*):(less)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.less.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", name: "source.less.filter.pug", patterns: [{ include: "#tag_attributes" }, { include: "source.less" }] }, { begin: "^(\\s*):(stylus)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.stylus.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", patterns: [{ include: "#tag_attributes" }, { include: "source.stylus" }] }, { begin: "^(\\s*):(coffee(-?script)?)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.coffeescript.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", name: "source.coffeescript.filter.pug", patterns: [{ include: "#tag_attributes" }, { include: "source.coffee" }] }, { begin: "^(\\s*):(uglify-js)(?=\\(|$)", beginCaptures: { 2: { name: "constant.language.name.js.filter.pug" } }, end: "^(?!(\\1\\s)|\\s*$)", name: "source.js.filter.pug", patterns: [{ include: "#tag_attributes" }, { include: "source.js" }] }, { begin: "^(\\s*)((:(?=.))|(:$))", beginCaptures: { 4: { name: "invalid.illegal.empty.generic.filter.pug" } }, comment: "Generic Pug filter.", end: "^(?!(\\1\\s)|\\s*$)", patterns: [{ begin: "\\G(?<=:)(?=.)", end: "$", name: "name.generic.filter.pug", patterns: [{ match: "\\G\\(", name: "invalid.illegal.name.generic.filter.pug" }, { match: "[\\w-]", name: "constant.language.name.generic.filter.pug" }, { include: "#tag_attributes" }, { match: "\\W", name: "invalid.illegal.name.generic.filter.pug" }] }] }, { begin: `^(\\s*)(?:(?=\\.$)|(?:(?=[\\w.#].*?\\.$)(?=(?:(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\"(?:[^\\"]|(?:(?<!\\\\)\\\\\\"))*\\")))*[^()]*\\))*)*)(?:(?:(?::\\s+)|(?<=\\)))(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\"(?:[^\\"]|(?:(?<!\\\\)\\\\\\"))*\\")))*[^()]*\\))*)*))*)\\.$)(?:(?:(#[\\w-]+)|(\\.[\\w-]+))|((?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))))`, beginCaptures: { 2: { name: "meta.selector.css entity.other.attribute-name.id.css.pug" }, 3: { name: "meta.selector.css entity.other.attribute-name.class.css.pug" }, 4: { name: "meta.tag.other entity.name.tag.pug" } }, comment: "Generated from dot_block_tag.py", end: "^(?!(\\1\\s)|\\s*$)", patterns: [{ match: "\\.$", name: "storage.type.function.pug.dot-block-dot" }, { include: "#tag_attributes" }, { include: "#complete_tag" }, { begin: "^(?=.)", end: "$", name: "text.block.pug", patterns: [{ include: "#inline_pug" }, { include: "#embedded_html" }, { include: "#html_entity" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }] }, { begin: "^\\s*", comment: "All constructs that generally span a single line starting with any number of white-spaces.", end: "$", patterns: [{ include: "#inline_pug" }, { include: "#blocks_and_includes" }, { include: "#unbuffered_code" }, { include: "#mixin_definition" }, { include: "#mixin_call" }, { include: "#flow_control" }, { include: "#flow_control_each" }, { include: "#case_conds" }, { begin: "\\|", comment: "Tag pipe text line.", end: "$", name: "text.block.pipe.pug", patterns: [{ include: "#inline_pug" }, { include: "#embedded_html" }, { include: "#html_entity" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, { include: "#printed_expression" }, { begin: "\\G(?=(#[^\\{\\w-])|[^\\w.#])", comment: "Line starting with characters incompatible with tag name/id/class is standalone text.", end: "$", patterns: [{ begin: "</?(?=[!#])", end: ">|$", patterns: [{ include: "#inline_pug" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, { include: "#inline_pug" }, { include: "#embedded_html" }, { include: "#html_entity" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, { include: "#complete_tag" }] }], repository: { babel_parens: { begin: "\\(", end: "\\)|(({\\s*)?$)", patterns: [{ include: "#babel_parens" }, { include: "source.js" }] }, blocks_and_includes: { captures: { 1: { name: "storage.type.import.include.pug" }, 4: { name: "variable.control.import.include.pug" } }, comment: "Template blocks and includes.", match: "(extends|include|yield|append|prepend|block( (append|prepend))?)\\s+(.*)$", name: "meta.first-class.pug" }, case_conds: { begin: "(default|when)((\\s+|(?=:))|$)", captures: { 1: { name: "storage.type.function.pug" } }, comment: "Pug case conditionals.", end: "$", name: "meta.control.flow.pug", patterns: [{ begin: "\\G(?!:)", end: "(?=:\\s+)|$", name: "js.embedded.control.flow.pug", patterns: [{ include: "#case_when_paren" }, { include: "source.js" }] }, { begin: ":\\s+", end: "$", name: "tag.case.control.flow.pug", patterns: [{ include: "#complete_tag" }] }] }, case_when_paren: { begin: "\\(", end: "\\)", name: "js.when.control.flow.pug", patterns: [{ include: "#case_when_paren" }, { match: ":", name: "invalid.illegal.name.tag.pug" }, { include: "source.js" }] }, complete_tag: { begin: "(?=[\\w.#])|(:\\s*)", end: "(\\.?$)|(?=:.)", endCaptures: { 1: { name: "storage.type.function.pug.dot-block-dot" } }, patterns: [{ include: "#blocks_and_includes" }, { include: "#unbuffered_code" }, { include: "#mixin_call" }, { include: "#flow_control" }, { include: "#flow_control_each" }, { match: "(?<=:)\\w.*$", name: "invalid.illegal.name.tag.pug" }, { include: "#tag_name" }, { include: "#tag_id" }, { include: "#tag_classes" }, { include: "#tag_attributes" }, { include: "#tag_mixin_attributes" }, { captures: { 2: { name: "invalid.illegal.end.tag.pug" }, 4: { name: "invalid.illegal.end.tag.pug" } }, match: "((\\.)\\s+$)|((:)\\s*$)" }, { include: "#printed_expression" }, { include: "#tag_text" }] }, embedded_html: { begin: "(?=<[^>]*>)", end: "$|(?=>)", name: "html", patterns: [{ include: "text.html.basic" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, flow_control: { begin: "(for|if|else if|else|until|while|unless|case)(\\s+|$)", captures: { 1: { name: "storage.type.function.pug" } }, comment: "Pug control flow.", end: "$", name: "meta.control.flow.pug", patterns: [{ begin: "", end: "$", name: "js.embedded.control.flow.pug", patterns: [{ include: "source.js" }] }] }, flow_control_each: { begin: "(each)(\\s+|$)", captures: { 1: { name: "storage.type.function.pug" } }, end: "$", name: "meta.control.flow.pug.each", patterns: [{ match: "([\\w$_]+)(?:\\s*,\\s*([\\w$_]+))?", name: "variable.other.pug.each-var" }, { begin: "", end: "$", name: "js.embedded.control.flow.pug", patterns: [{ include: "source.js" }] }] }, html_entity: { patterns: [{ match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.html.text.pug" }, { match: "[<>&]", name: "invalid.illegal.html_entity.text.pug" }] }, inline_pug: { begin: "(?<!\\\\)(#\\[)", captures: { 1: { name: "entity.name.function.pug" }, 2: { name: "entity.name.function.pug" } }, end: "(\\])", name: "inline.pug", patterns: [{ include: "#inline_pug" }, { include: "#mixin_call" }, { begin: "(?<!\\])(?=[\\w.#])|(:\\s*)", end: "(?=\\]|(:.)|=|\\s)", name: "tag.inline.pug", patterns: [{ include: "#tag_name" }, { include: "#tag_id" }, { include: "#tag_classes" }, { include: "#tag_attributes" }, { include: "#tag_mixin_attributes" }, { include: "#inline_pug" }, { match: "\\[", name: "invalid.illegal.tag.pug" }] }, { include: "#unbuffered_code" }, { include: "#printed_expression" }, { match: "\\[", name: "invalid.illegal.tag.pug" }, { include: "#inline_pug_text" }] }, inline_pug_text: { begin: "", end: "(?=\\])", patterns: [{ begin: "\\[", end: "\\]", patterns: [{ include: "#inline_pug_text" }] }, { include: "#inline_pug" }, { include: "#embedded_html" }, { include: "#html_entity" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, interpolated_error: { match: "(?<!\\\\)[#!]\\{(?=[^}]*$)", name: "invalid.illegal.tag.pug" }, interpolated_value: { begin: "(?<!\\\\)[#!]\\{(?=.*?\\})", end: "\\}", name: "string.interpolated.pug", patterns: [{ match: "{", name: "invalid.illegal.tag.pug" }, { include: "source.js" }] }, js_braces: { begin: "\\{", end: "\\}", patterns: [{ include: "#js_braces" }, { include: "source.js" }] }, js_brackets: { begin: "\\[", end: "\\]", patterns: [{ include: "#js_brackets" }, { include: "source.js" }] }, js_parens: { begin: "\\(", end: "\\)", patterns: [{ include: "#js_parens" }, { include: "source.js" }] }, mixin_call: { begin: "((?:mixin\\s+)|\\+)([\\w-]+)", beginCaptures: { 1: { name: "storage.type.function.pug" }, 2: { name: "meta.tag.other entity.name.function.pug" } }, end: "(?!\\()|$", patterns: [{ begin: "(?<!\\))\\(", end: "\\)", name: "args.mixin.pug", patterns: [{ include: "#js_parens" }, { captures: { 1: { name: "meta.tag.other entity.other.attribute-name.tag.pug" } }, match: "([^\\s(),=/]+)\\s*=\\s*" }, { include: "source.js" }] }, { include: "#tag_attributes" }] }, mixin_definition: { captures: { 1: { name: "storage.type.function.pug" }, 2: { name: "meta.tag.other entity.name.function.pug" }, 3: { name: "punctuation.definition.parameters.begin.js" }, 4: { name: "variable.parameter.function.js" }, 5: { name: "punctuation.definition.parameters.begin.js" } }, match: "(mixin\\s+)([\\w-]+)(?:(\\()\\s*((?:[a-zA-Z_]\\w*\\s*)(?:,\\s*[a-zA-Z_]\\w*\\s*)*)(\\)))?$" }, printed_expression: { begin: "(!?\\=)\\s*", captures: { 1: { name: "constant" } }, end: "(?=\\])|$", name: "source.js", patterns: [{ include: "#js_brackets" }, { include: "source.js" }] }, tag_attribute_name: { captures: { 1: { name: "entity.other.attribute-name.tag.pug" } }, match: "([^\\s(),=/!]+)\\s*" }, tag_attribute_name_paren: { begin: "\\(\\s*", end: "\\)", name: "entity.other.attribute-name.tag.pug", patterns: [{ include: "#tag_attribute_name_paren" }, { include: "#tag_attribute_name" }] }, tag_attributes: { begin: "(\\(\\s*)", captures: { 1: { name: "constant.name.attribute.tag.pug" } }, end: "(\\))", name: "meta.tag.other", patterns: [{ include: "#tag_attribute_name_paren" }, { include: "#tag_attribute_name" }, { match: "!(?!=)", name: "invalid.illegal.tag.pug" }, { begin: "=\\s*", end: "$|(?=,|(?:\\s+[^!%&*\\-+~|<>?/])|\\))", name: "attribute_value", patterns: [{ include: "#js_parens" }, { include: "#js_brackets" }, { include: "#js_braces" }, { include: "source.js" }] }, { begin: "(?<=[%&*\\-+~|<>:?/])\\s+", end: "$|(?=,|(?:\\s+[^!%&*\\-+~|<>?/])|\\))", name: "attribute_value2", patterns: [{ include: "#js_parens" }, { include: "#js_brackets" }, { include: "#js_braces" }, { include: "source.js" }] }] }, tag_classes: { captures: { 1: { name: "invalid.illegal.tag.pug" } }, match: "\\.([^\\w-])?[\\w-]*", name: "meta.selector.css entity.other.attribute-name.class.css.pug" }, tag_id: { match: "#[\\w-]+", name: "meta.selector.css entity.other.attribute-name.id.css.pug" }, tag_mixin_attributes: { begin: "(&attributes\\()", captures: { 1: { name: "entity.name.function.pug" } }, end: "(\\))", name: "meta.tag.other", patterns: [{ match: "attributes(?=\\))", name: "storage.type.keyword.pug" }, { include: "source.js" }] }, tag_name: { begin: "([#!]\\{(?=.*?\\}))|(\\w(([\\w:-]+[\\w-])|([\\w-]*)))", end: "(\\G(?<!\\5[^\\w-]))|\\}|$", name: "meta.tag.other entity.name.tag.pug", patterns: [{ begin: "\\G(?<=\\{)", end: "(?=\\})", name: "meta.tag.other entity.name.tag.pug", patterns: [{ match: "{", name: "invalid.illegal.tag.pug" }, { include: "source.js" }] }] }, tag_text: { begin: "(?=.)", end: "$", patterns: [{ include: "#inline_pug" }, { include: "#embedded_html" }, { include: "#html_entity" }, { include: "#interpolated_value" }, { include: "#interpolated_error" }] }, unbuffered_code: { begin: "(-|(([a-zA-Z0-9_]+)\\s+=))", beginCaptures: { 3: { name: "variable.parameter.javascript.embedded.pug" } }, comment: "name = function() {}", end: "(?=\\])|(({\\s*)?$)", name: "source.js", patterns: [{ include: "#js_brackets" }, { include: "#babel_parens" }, { include: "source.js" }] } }, scopeName: "text.pug", embeddedLangs: ["javascript", "css", "sass", "scss", "stylus", "coffee", "html"], aliases: ["jade"] });
|
|
361
361
|
var _ = [
|
|
362
362
|
...e,
|
|
363
|
-
...
|
|
363
|
+
...t,
|
|
364
364
|
...s,
|
|
365
365
|
...i,
|
|
366
366
|
...r,
|
|
367
367
|
...h,
|
|
368
|
-
...
|
|
368
|
+
...n,
|
|
369
369
|
y
|
|
370
370
|
];
|
|
371
371
|
const x = Object.freeze({ displayName: "Less", name: "less", patterns: [{ include: "#comment-block" }, { include: "#less-namespace-accessors" }, { include: "#less-extend" }, { include: "#at-rules" }, { include: "#less-variable-assignment" }, { include: "#property-list" }, { include: "#selector" }], repository: { "angle-type": { captures: { 1: { name: "keyword.other.unit.less" } }, match: "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(deg|grad|rad|turn))\\b", name: "constant.numeric.less" }, "at-charset": { begin: "\\s*((@)charset\\b)\\s*", captures: { 1: { name: "keyword.control.at-rule.charset.less" }, 2: { name: "punctuation.definition.keyword.less" } }, end: "\\s*((?=;|$))", name: "meta.at-rule.charset.less", patterns: [{ include: "#literal-string" }] }, "at-counter-style": { begin: "\\s*((@)counter-style\\b)\\s+(?:(?i:\\b(decimal|none)\\b)|(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*))\\s*(?=\\{|$)", captures: { 1: { name: "keyword.control.at-rule.counter-style.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "invalid.illegal.counter-style-name.less" }, 4: { name: "entity.other.counter-style-name.css" } }, end: "\\s*(\\})", endCaptures: { 1: { name: "punctuation.definition.block.begin.less" } }, name: "meta.at-rule.counter-style.less", patterns: [{ include: "#comment-block" }, { include: "#rule-list" }] }, "at-custom-media": { begin: "(?=\\s*@custom-media\\b)", end: "\\s*(?=;)", name: "meta.at-rule.custom-media.less", patterns: [{ captures: { 0: { name: "punctuation.section.property-list.less" } }, match: "\\s*;" }, { captures: { 1: { name: "keyword.control.at-rule.custom-media.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "support.constant.custom-media.less" } }, match: "\\s*((@)custom-media)(?=.*?)" }, { include: "#media-query-list" }] }, "at-font-face": { begin: "\\s*((@)font-face)\\s*(?=\\{|$)", captures: { 1: { name: "keyword.control.at-rule.font-face.less" }, 2: { name: "punctuation.definition.keyword.less" } }, end: "\\s*(\\})", endCaptures: { 1: { name: "punctuation.definition.block.end.less" } }, name: "meta.at-rule.font-face.less", patterns: [{ include: "#comment-block" }, { include: "#rule-list" }] }, "at-import": { begin: "\\s*((@)import\\b)\\s*", beginCaptures: { 1: { name: "keyword.control.at-rule.import.less" }, 2: { name: "punctuation.definition.keyword.less" } }, end: "\\;", endCaptures: { 0: { name: "punctuation.terminator.rule.less" } }, name: "meta.at-rule.import.less", patterns: [{ include: "#url-function" }, { include: "#less-variables" }, { begin: `(?<=(["'])|(["']\\)))\\s*`, end: "\\s*(?=\\;)", patterns: [{ include: "#media-query" }] }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.group.less", patterns: [{ match: "reference|inline|less|css|once|multiple|optional", name: "constant.language.import-directive.less" }, { include: "#comma-delimiter" }] }, { include: "#literal-string" }] }, "at-keyframes": { begin: "\\s*((@)(-webkit-|-moz-|-o-)?keyframes)(?=.*?\\{)", beginCaptures: { 1: { name: "keyword.control.at-rule.keyframe.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "support.type.property-vendor.less" }, 4: { name: "support.constant.keyframe.less" } }, end: "\\s*(\\})", endCaptures: { 1: { name: "punctuation.definition.block.end.less" } }, patterns: [{ begin: "\\s*(\\{)", beginCaptures: { 1: { name: "punctuation.definition.block.begin.less" } }, end: "(?=\\})", patterns: [{ captures: { 1: { name: "keyword.other.keyframe-selector.less" }, 2: { name: "constant.numeric.less" }, 3: { name: "keyword.other.unit.less" } }, match: "\\s*(?:(from|to)|((?:\\.[0-9]+|[0-9]+(?:\\.[0-9]*)?)(%)))\\s*,?\\s*" }, { include: "$self" }] }, { begin: "\\s*(?=[^{;])", end: "\\s*(?=\\{)", name: "meta.at-rule.keyframe.less", patterns: [{ include: "#keyframe-name" }] }] }, "at-media": { begin: "(?=\\s*@media\\b)", end: "\\s*(\\})", endCaptures: { 1: { name: "punctuation.definition.block.end.less" } }, patterns: [{ begin: "\\s*((@)media)", beginCaptures: { 1: { name: "keyword.control.at-rule.media.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "support.constant.media.less" } }, end: "\\s*(?=\\{)", name: "meta.at-rule.media.less", patterns: [{ include: "#media-query-list" }] }, { begin: "\\s*(\\{)", beginCaptures: { 1: { name: "punctuation.definition.block.begin.less" } }, end: "(?=\\})", patterns: [{ include: "#rule-list-body" }, { include: "$self" }] }] }, "at-namespace": { begin: "\\s*((@)namespace)\\s+", beginCaptures: { 1: { name: "keyword.control.at-rule.namespace.less" }, 2: { name: "punctuation.definition.keyword.less" } }, end: "\\;", endCaptures: { 0: { name: "punctuation.terminator.rule.less" } }, name: "meta.at-rule.namespace.less", patterns: [{ include: "#url-function" }, { include: "#literal-string" }, { match: "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", name: "entity.name.constant.namespace-prefix.less" }] }, "at-page": { captures: { 1: { name: "keyword.control.at-rule.page.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "punctuation.definition.entity.less" }, 4: { name: "entity.other.attribute-name.pseudo-class.less" } }, match: "\\s*((@)page)\\s*(?:(:)(first|left|right))?\\s*(?=\\{|$)", name: "meta.at-rule.page.less", patterns: [{ include: "#comment-block" }, { include: "#rule-list" }] }, "at-rules": { patterns: [{ include: "#at-charset" }, { include: "#at-counter-style" }, { include: "#at-custom-media" }, { include: "#at-font-face" }, { include: "#at-media" }, { include: "#at-import" }, { include: "#at-keyframes" }, { include: "#at-namespace" }, { include: "#at-page" }, { include: "#at-supports" }, { include: "#at-viewport" }] }, "at-supports": { begin: "(?=\\s*@supports\\b)", end: "(?=\\s*)(\\})", endCaptures: { 1: { name: "punctuation.definition.block.end.less" } }, patterns: [{ begin: "\\s*((@)supports)", beginCaptures: { 1: { name: "keyword.control.at-rule.supports.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "support.constant.supports.less" } }, end: "\\s*(?=\\{)", name: "meta.at-rule.supports.less", patterns: [{ include: "#at-supports-operators" }, { include: "#at-supports-parens" }] }, { begin: "\\s*(\\{)", beginCaptures: { 1: { name: "punctuation.section.property-list.begin.less" } }, end: "(?=\\})", patterns: [{ include: "#rule-list-body" }, { include: "$self" }] }] }, "at-supports-operators": { match: "\\b(?:and|or|not)\\b", name: "keyword.operator.logic.less" }, "at-supports-parens": { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.group.less", patterns: [{ include: "#at-supports-operators" }, { include: "#at-supports-parens" }, { include: "#rule-list-body" }] }, "at-viewport": { begin: "((@(-ms-)?)viewport)", beginCaptures: { 1: { name: "keyword.control.at-rule.viewport.less" }, 2: { name: "punctuation.definition.keyword.less" }, 3: { name: "support.type.vendor-prefix.less" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.end.less" } }, name: "meta.at-rule.viewport.less", patterns: [{ begin: "\\{", captures: { 0: { name: "punctuation.definition.block.begin.less" } }, end: "(?=\\})", name: "meta.block.less", patterns: [{ include: "#rule-list-body" }] }] }, "attr-function": { begin: "\\b(attr)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#qualified-name" }, { include: "#literal-string" }, { begin: "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", end: "(?=\\))", name: "entity.other.attribute-name.less", patterns: [{ match: "(?x)\\b((?i:em|ex|ch|rem)|(?i:vw|vh|vmin|vmax)|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:s|ms)|(?i:Hz|kHz)|(?i:dpi|dpcm|dppx))\\b", name: "keyword.other.unit.less" }, { include: "#comma-delimiter" }, { include: "#property-value-constants" }, { include: "#numeric-values" }] }, { include: "#color-values" }] }] }, "builtin-functions": { patterns: [{ include: "#attr-function" }, { include: "#calc-function" }, { include: "#color-functions" }, { include: "#counter-functions" }, { include: "#cross-fade-function" }, { include: "#cubic-bezier-function" }, { include: "#filter-function" }, { include: "#format-function" }, { include: "#gradient-functions" }, { include: "#grid-repeat-function" }, { include: "#image-function" }, { include: "#less-functions" }, { include: "#local-function" }, { include: "#minmax-function" }, { include: "#regexp-function" }, { include: "#shape-functions" }, { include: "#steps-function" }, { include: "#symbols-function" }, { include: "#transform-functions" }, { include: "#url-function" }, { include: "#var-function" }] }, "calc-function": { begin: "\\b(calc)(?=\\()", beginCaptures: { 1: { name: "support.function.calc.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-strings" }, { include: "#var-function" }, { include: "#calc-function" }, { include: "#attr-function" }, { include: "#less-math" }] }] }, "color-adjuster-operators": { match: "[\\-\\+*](?=\\s+)", name: "keyword.operator.less" }, "color-functions": { patterns: [{ begin: "\\b(rgba?)(?=\\()", beginCaptures: { 1: { name: "support.function.color.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-strings" }, { include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#percentage-type" }, { include: "#number-type" }] }] }, { begin: "\\b(hs(l|v)a?|hwb)(?=\\()", beginCaptures: { 1: { name: "support.function.color.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-strings" }, { include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#angle-type" }, { include: "#percentage-type" }, { include: "#number-type" }] }] }, { include: "#less-color-functions" }] }, "color-values": { patterns: [{ include: "#color-functions" }, { include: "#less-functions" }, { include: "#less-variables" }, { match: "\\b(aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)\\b", name: "support.constant.color.w3c-standard-color-name.less" }, { 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|rebeccapurple|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|thistle|tomato|turquoise|violet|wheat|whitesmoke|yellowgreen)\\b", name: "support.constant.color.w3c-extended-color-keywords.less" }, { match: "\\b((?i)currentColor|transparent)\\b", name: "support.constant.color.w3c-special-color-keyword.less" }, { captures: { 1: { name: "punctuation.definition.constant.less" } }, match: "(#)(\\h{3}|\\h{4}|\\h{6}|\\h{8})\\b", name: "constant.other.color.rgb-value.less" }] }, "comma-delimiter": { captures: { 1: { name: "punctuation.separator.less" } }, match: "\\s*(,)\\s*" }, "comment-block": { patterns: [{ begin: "/\\*", captures: { 0: { name: "punctuation.definition.comment.less" } }, end: "\\*/", name: "comment.block.less" }, { include: "#comment-line" }] }, "comment-line": { captures: { 1: { name: "punctuation.definition.comment.less" } }, match: "(//).*$\\n?", name: "comment.line.double-slash.less" }, "counter-functions": { patterns: [{ begin: "\\b(counter)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-strings" }, { include: "#less-variables" }, { match: "(?:--(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))+|-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", name: "entity.other.counter-name.less" }, { begin: "(?=,)", end: "(?=\\))", patterns: [{ include: "#comma-delimiter" }, { match: "\\b((?xi:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\b", name: "support.constant.property-value.counter-style.less" }] }] }] }, { begin: "\\b(counters)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ match: "(-?(?:[[_a-zA-Z][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", name: "entity.other.counter-name.less string.unquoted.less" }, { begin: "(?=,)", end: "(?=\\))", patterns: [{ include: "#less-strings" }, { include: "#less-variables" }, { include: "#literal-string" }, { include: "#comma-delimiter" }, { match: "\\b((?xi:arabic-indic|armenian|bengali|cambodian|circle|cjk-decimal|cjk-earthly-branch|cjk-heavenly-stem|decimal-leading-zero|decimal|devanagari|disclosure-closed|disclosure-open|disc|ethiopic-numeric|georgian|gujarati|gurmukhi|hebrew|hiragana-iroha|hiragana|japanese-formal|japanese-informal|kannada|katakana-iroha|katakana|khmer|korean-hangul-formal|korean-hanja-formal|korean-hanja-informal|lao|lower-alpha|lower-armenian|lower-greek|lower-latin|lower-roman|malayalam|mongolian|myanmar|oriya|persian|simp-chinese-formal|simp-chinese-informal|square|tamil|telugu|thai|tibetan|trad-chinese-formal|trad-chinese-informal|upper-alpha|upper-armenian|upper-latin|upper-roman)|none)\\b", name: "support.constant.property-value.counter-style.less" }] }] }] }] }, "cross-fade-function": { patterns: [{ begin: "\\b(cross-fade)(?=\\()", beginCaptures: { 1: { name: "support.function.image.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#comma-delimiter" }, { include: "#percentage-type" }, { include: "#color-values" }, { include: "#image-type" }, { include: "#literal-string" }, { include: "#unquoted-string" }] }] }] }, "cubic-bezier-function": { begin: "\\b(cubic-bezier)(?=\\()", beginCaptures: { 0: { name: "support.function.timing.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#comma-delimiter" }, { include: "#number-type" }] }] }, "custom-property-name": { captures: { 1: { name: "punctuation.definition.custom-property.less" }, 2: { name: "support.type.custom-property.name.less" } }, match: "\\s*(--)((?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))+)", name: "support.type.custom-property.less" }, dimensions: { patterns: [{ include: "#angle-type" }, { include: "#frequency-type" }, { include: "#length-type" }, { include: "#resolution-type" }, { include: "#time-type" }] }, "filter-function": { begin: "\\b(filter)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", name: "meta.group.less", patterns: [{ include: "#comma-delimiter" }, { include: "#image-type" }, { include: "#literal-string" }, { include: "#filter-functions" }] }] }, "filter-functions": { patterns: [{ include: "#less-functions" }, { begin: "\\b(blur)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#length-type" }] }] }, { begin: "\\b(brightness|contrast|grayscale|invert|opacity|saturate|sepia)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#percentage-type" }, { include: "#number-type" }, { include: "#less-functions" }] }] }, { begin: "\\b(drop-shadow)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#length-type" }, { include: "#color-values" }] }] }, { begin: "\\b(hue-rotate)(?=\\()", beginCaptures: { 1: { name: "support.function.filter.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#angle-type" }] }] }] }, "format-function": { patterns: [{ begin: "\\b(format)(?=\\()", beginCaptures: { 0: { name: "support.function.format.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#literal-string" }] }] }] }, "frequency-type": { captures: { 1: { name: "keyword.other.unit.less" } }, match: "(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(Hz|kHz))\\b", name: "constant.numeric.less" }, "gradient-functions": { patterns: [{ begin: "\\b((?:repeating-)?linear-gradient)(?=\\()", beginCaptures: { 1: { name: "support.function.gradient.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#angle-type" }, { include: "#color-values" }, { include: "#percentage-type" }, { include: "#length-type" }, { include: "#comma-delimiter" }, { match: "\\bto\\b", name: "keyword.other.less" }, { match: "\\b(top|right|bottom|left)\\b", name: "support.constant.property-value.less" }] }] }, { begin: "\\b((?:repeating-)?radial-gradient)(?=\\()", beginCaptures: { 1: { name: "support.function.gradient.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#color-values" }, { include: "#percentage-type" }, { include: "#length-type" }, { include: "#comma-delimiter" }, { match: "\\b(at|circle|ellipse)\\b", name: "keyword.other.less" }, { match: "\\b(top|right|bottom|left|center|(farthest|closest)-(corner|side))\\b", name: "support.constant.property-value.less" }] }] }] }, "grid-repeat-function": { begin: "\\b(repeat)(?=\\()", beginCaptures: { 1: { name: "support.function.grid.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#comma-delimiter" }, { include: "#var-function" }, { include: "#length-type" }, { include: "#percentage-type" }, { include: "#minmax-function" }, { include: "#integer-type" }, { match: "\\b(auto-(fill|fit))\\b", name: "support.keyword.repetitions.less" }, { match: "\\b(((max|min)-content)|auto)\\b", name: "support.constant.property-value.less" }] }] }, "image-function": { begin: "\\b(image)(?=\\()", beginCaptures: { 1: { name: "support.function.image.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#image-type" }, { include: "#literal-string" }, { include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#unquoted-string" }] }] }, "image-type": { patterns: [{ include: "#cross-fade-function" }, { include: "#gradient-functions" }, { include: "#image-function" }, { include: "#url-function" }] }, "integer-type": { match: "(?:[-+]?\\d+)", name: "constant.numeric.less" }, "keyframe-name": { begin: "\\s*(-?(?:[_a-z]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\s\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))(?:[_a-z0-9-]|[^\\x{00}-\\x{7F}]|(?:(:?\\\\[0-9a-f]{1,6}(\\r\\n|[\\t\\r\\n\\f])?)|\\\\[^\\r\\n\\f0-9a-f]))*)?", beginCaptures: { 1: { name: "variable.other.constant.animation-name.less" } }, end: "\\s*(?:(,)|(?=[{;]))", endCaptures: { 1: { name: "punctuation.definition.arbitrary-repetition.less" } } }, "length-type": { captures: { 1: { name: "keyword.other.unit.less" } }, match: "0|(?i:[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(em|ex|ch|rem|vw|vh|vmin|vmax|(c|m)?m|q|in|pt|pc|px|fr))\\b", name: "constant.numeric.less" }, "less-boolean-function": { begin: "\\b(boolean)(?=\\()", beginCaptures: { 1: { name: "support.function.boolean.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-logical-comparisons" }] }] }, "less-color-blend-functions": { patterns: [{ begin: "\\b(multiply|screen|overlay|(soft|hard)light|difference|exclusion|negation|average)(?=\\()", beginCaptures: { 1: { name: "support.function.color-blend.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#color-values" }] }] }] }, "less-color-channel-functions": { patterns: [{ begin: "\\b(hue|saturation|lightness|hsv(hue|saturation|value)|red|green|blue|alpha|luma|luminance)(?=\\()", beginCaptures: { 1: { name: "support.function.color-definition.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }] }] }] }, "less-color-definition-functions": { patterns: [{ begin: "\\b(argb)(?=\\()", beginCaptures: { 1: { name: "support.function.color-definition.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#color-values" }] }] }] }, "less-color-functions": { patterns: [{ include: "#less-color-blend-functions" }, { include: "#less-color-channel-functions" }, { include: "#less-color-definition-functions" }, { include: "#less-color-operation-functions" }] }, "less-color-operation-functions": { patterns: [{ begin: "\\b(fade|shade|tint)(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#percentage-type" }] }] }, { begin: "\\b(spin)(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#number-type" }] }] }, { begin: "\\b(((de)?saturate)|((light|dark)en)|(fade(in|out)))(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#percentage-type" }, { match: "\\brelative\\b", name: "constant.language.relative.less" }] }] }, { begin: "\\b(contrast)(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#percentage-type" }] }] }, { begin: "\\b(greyscale)(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }] }] }, { begin: "\\b(mix)(?=\\()", beginCaptures: { 1: { name: "support.function.color-operation.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#color-values" }, { include: "#comma-delimiter" }, { include: "#less-math" }, { include: "#percentage-type" }] }] }] }, "less-extend": { begin: "(:)(extend)(?=\\()", beginCaptures: { 1: { name: "punctuation.definition.entity.less" }, 2: { name: "entity.other.attribute-name.pseudo-class.extend.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ match: "\\ball\\b", name: "constant.language.all.less" }, { include: "#selectors" }] }] }, "less-functions": { patterns: [{ include: "#less-boolean-function" }, { include: "#less-color-functions" }, { include: "#less-if-function" }, { include: "#less-list-functions" }, { include: "#less-math-functions" }, { include: "#less-misc-functions" }, { include: "#less-string-functions" }, { include: "#less-type-functions" }] }, "less-if-function": { begin: "\\b(if)(?=\\()", beginCaptures: { 1: { name: "support.function.if.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-mixin-guards" }, { include: "#comma-delimiter" }, { include: "#property-values" }] }] }, "less-list-functions": { patterns: [{ begin: "\\b(length)(?=\\()\\b", beginCaptures: { 1: { name: "support.function.length.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#property-values" }, { include: "#comma-delimiter" }] }] }, { begin: "\\b(extract)(?=\\()\\b", beginCaptures: { 1: { name: "support.function.extract.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#property-values" }, { include: "#comma-delimiter" }, { include: "#integer-type" }] }] }, { begin: "\\b(range)(?=\\()\\b", beginCaptures: { 1: { name: "support.function.range.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#property-values" }, { include: "#comma-delimiter" }, { include: "#integer-type" }] }] }] }, "less-logical-comparisons": { patterns: [{ captures: { 1: { name: "keyword.operator.logical.less" } }, match: "\\s*(=|((<|>)=?))\\s*" }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.group.less", patterns: [{ include: "#less-logical-comparisons" }] }, { match: "\\btrue|false\\b", name: "constant.language.less" }, { match: ",", name: "punctuation.separator.less" }, { include: "#property-values" }, { include: "#selectors" }, { include: "#unquoted-string" }] }, "less-math": { patterns: [{ match: "[-\\+\\*\\/]", name: "keyword.operator.arithmetic.less" }, { begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.group.less", patterns: [{ include: "#less-math" }] }, { include: "#numeric-values" }, { include: "#less-variables" }] }, "less-math-functions": { patterns: [{ begin: "\\b(ceil|floor|percentage|round|sqrt|abs|a?(sin|cos|tan))(?=\\()", beginCaptures: { 1: { name: "support.function.math.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#numeric-values" }] }] }, { captures: { 2: { name: "support.function.math.less" }, 3: { name: "punctuation.definition.group.begin.less" }, 4: { name: "punctuation.definition.group.end.less" } }, match: "((pi)(\\()(\\)))", name: "meta.function-call.less" }, { begin: "\\b(pow|m(od|in|ax))(?=\\()", beginCaptures: { 1: { name: "support.function.math.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#numeric-values" }, { include: "#comma-delimiter" }] }] }] }, "less-misc-functions": { patterns: [{ begin: "\\b(color)(?=\\()", beginCaptures: { 1: { name: "support.function.color.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#literal-string" }] }] }, { begin: "\\b(image-(size|width|height))(?=\\()", beginCaptures: { 1: { name: "support.function.image.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#literal-string" }, { include: "#unquoted-string" }] }] }, { begin: "\\b(convert|unit)(?=\\()", beginCaptures: { 1: { name: "support.function.convert.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#dimensions" }, { include: "#numeric-values" }, { include: "#literal-string" }, { include: "#comma-delimiter" }, { match: "((c|m)?m|in|p(t|c|x)|m?s|g?rad|deg|turn|%|r?em|ex|ch)", name: "keyword.other.unit.less" }] }] }, { begin: "\\b(data-uri)(?=\\()", beginCaptures: { 1: { name: "support.function.data-uri.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#literal-string" }, { captures: { 1: { name: "punctuation.separator.less" } }, match: "\\s*(?:(,))" }] }] }, { captures: { 2: { name: "punctuation.definition.group.begin.less" }, 3: { name: "punctuation.definition.group.end.less" } }, match: "\\b(default(\\()(\\)))\\b", name: "support.function.default.less" }, { begin: "\\b(get-unit)(?=\\()", beginCaptures: { 1: { name: "support.function.get-unit.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#dimensions" }] }] }, { begin: "\\b(svg-gradient)(?=\\()", beginCaptures: { 1: { name: "support.function.svg-gradient.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#angle-type" }, { include: "#comma-delimiter" }, { include: "#color-values" }, { include: "#percentage-type" }, { include: "#length-type" }, { match: "\\bto\\b", name: "keyword.other.less" }, { match: "\\b(top|right|bottom|left|center)\\b", name: "support.constant.property-value.less" }, { match: "\\b(at|circle|ellipse)\\b", name: "keyword.other.less" }] }] }] }, "less-mixin-guards": { patterns: [{ begin: "\\s*(and|not|or)?\\s*(?=\\()", beginCaptures: { 1: { name: "keyword.operator.logical.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", name: "meta.group.less", patterns: [{ include: "#less-variable-comparison" }, { captures: { 1: { name: "meta.group.less" }, 2: { name: "punctuation.definition.group.begin.less" }, 3: { name: "punctuation.definition.group.end.less" } }, match: "default((\\()(\\)))", name: "support.function.default.less" }, { include: "#property-values" }, { include: "#less-logical-comparisons" }, { include: "$self" }] }] }] }, "less-namespace-accessors": { patterns: [{ begin: "(?=\\s*when\\b)", end: "\\s*(?:(,)|(?=[{;]))", endCaptures: { 1: { name: "punctuation.definition.block.end.less" } }, name: "meta.conditional.guarded-namespace.less", patterns: [{ captures: { 1: { name: "keyword.control.conditional.less" }, 2: { name: "punctuation.definition.keyword.less" } }, match: "\\s*(when)(?=.*?)" }, { include: "#less-mixin-guards" }, { include: "#comma-delimiter" }, { begin: "\\s*(\\{)", beginCaptures: { 1: { name: "punctuation.section.property-list.begin.less" } }, end: "(?=\\})", name: "meta.block.less", patterns: [{ include: "#rule-list-body" }] }, { include: "#selectors" }] }, { begin: "(\\()", beginCaptures: { 1: { name: "punctuation.definition.group.begin.less" } }, end: "(\\))", endCaptures: { 1: { name: "punctuation.definition.group.end.less" }, 2: { name: "punctuation.terminator.rule.less" } }, name: "meta.group.less", patterns: [{ include: "#less-variable-assignment" }, { include: "#comma-delimiter" }, { captures: { 1: { name: "punctuation.terminator.rule.less" } }, match: "\\s*(;)|(?=[})])" }, { include: "#property-values" }, { include: "#rule-list-body" }] }] }, "less-number-units": { patterns: [{ match: "\\b((c|m)?m|in|p(t|c)|m?s|g?rad|deg|turn)\\b", name: "keyword.other.unit.less" }, { match: "\\b(r?em|ex|ch|vw|vh|vmin|vmax|cm|mm|q|in|pt|pc|px|fr|s|ms|Hz|kHz|dpi|dpcm|dppx|deg|grad|rad|turn)\\b" }] }, "less-string-functions": { patterns: [{ begin: "\\b(e(scape)?)(?=\\()\\b", beginCaptures: { 1: { name: "support.function.escape.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#literal-string" }, { include: "#unquoted-string" }] }] }, { begin: "\\s*(%)(?=\\()\\s*", beginCaptures: { 1: { name: "support.function.format.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#literal-string" }, { include: "#property-values" }] }] }, { begin: "\\b(replace)(?=\\()\\b", beginCaptures: { 1: { name: "support.function.replace.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#comma-delimiter" }, { include: "#literal-string" }, { include: "#property-values" }] }] }] }, "less-strings": { patterns: [{ begin: `(~)('|")`, beginCaptures: { 1: { name: "constant.character.escape.less" }, 2: { name: "punctuation.definition.string.begin.less" } }, contentName: "markup.raw.inline.less", end: `('|")|(\\n)`, endCaptures: { 1: { name: "punctuation.definition.string.end.less" }, 2: { name: "invalid.illegal.newline.less" } }, name: "string.quoted.other.less", patterns: [{ include: "#string-content" }] }] }, "less-type-functions": { patterns: [{ begin: "\\b(is(number|string|color|keyword|url|pixel|em|percentage|ruleset))(?=\\()", beginCaptures: { 1: { name: "support.function.type.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#property-values" }] }] }, { begin: "\\b(isunit)(?=\\()", beginCaptures: { 1: { name: "support.function.type.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#property-values" }, { include: "#comma-delimiter" }, { match: "(?x)\\b((?i:em|ex|ch|rem)|(?i:vw|vh|vmin|vmax)|(?i:cm|mm|q|in|pt|pc|px|fr)|(?i:deg|grad|rad|turn)|(?i:s|ms)|(?i:Hz|kHz)|(?i:dpi|dpcm|dppx))\\b", name: "keyword.other.unit.less" }] }] }, { begin: "\\b(isdefined)(?=\\()", beginCaptures: { 1: { name: "support.function.type.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }] }] }] }, "less-variable-assignment": { patterns: [{ begin: "(@)(-?(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", beginCaptures: { 0: { name: "variable.other.readwrite.less" }, 1: { name: "punctuation.definition.variable.less" }, 2: { name: "support.other.variable.less" } }, end: "\\s*(;|(\\.{3})|(?=\\)))", endCaptures: { 1: { name: "punctuation.terminator.rule.less" }, 2: { name: "keyword.operator.spread.less" } }, name: "meta.property-value.less", patterns: [{ captures: { 1: { name: "punctuation.separator.key-value.less" }, 4: { name: "meta.property-value.less" } }, match: "(((\\+_?)?):)([\\s\\t]*)" }, { include: "#property-values" }, { include: "#comma-delimiter" }, { include: "#property-list" }, { include: "#unquoted-string" }] }] }, "less-variable-comparison": { patterns: [{ begin: "(@{1,2})([-]?([_a-z]|[^\\x{00}-\\x{7F}]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))(?:[[-\\w][^\\x{00}-\\x{7F}]]|(?:\\\\\\h{1,6}[\\s\\t\\n\\f]?|\\\\[^\\n\\f\\h]))*)", beginCaptures: { 0: { name: "variable.other.readwrite.less" }, 1: { name: "punctuation.definition.variable.less" }, 2: { name: "support.other.variable.less" } }, end: "\\s*(?=\\))", endCaptures: { 1: { name: "punctuation.terminator.rule.less" } }, patterns: [{ captures: { 1: { name: "keyword.operator.logical.less" } }, match: "\\s*(=|((<|>)=?))\\s*" }, { match: "\\btrue\\b", name: "constant.language.less" }, { include: "#property-values" }, { include: "#selectors" }, { include: "#unquoted-string" }, { match: ",", name: "punctuation.separator.less" }] }] }, "less-variable-interpolation": { captures: { 1: { name: "punctuation.definition.variable.less" }, 2: { name: "punctuation.definition.expression.less" }, 3: { name: "support.other.variable.less" }, 4: { name: "punctuation.definition.expression.less" } }, match: "(@)(\\{)([-\\w]+)(\\})", name: "variable.other.readwrite.less" }, "less-variables": { captures: { 1: { name: "punctuation.definition.variable.less" }, 2: { name: "support.other.variable.less" } }, match: "\\s*(@@?)([-\\w]+)", name: "variable.other.readwrite.less" }, "literal-string": { patterns: [{ begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.less" } }, end: "(')|(\\n)", endCaptures: { 1: { name: "punctuation.definition.string.end.less" }, 2: { name: "invalid.illegal.newline.less" } }, name: "string.quoted.single.less", patterns: [{ include: "#string-content" }] }, { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.less" } }, end: '(")|(\\n)', endCaptures: { 1: { name: "punctuation.definition.string.end.less" }, 2: { name: "invalid.illegal.newline.less" } }, name: "string.quoted.double.less", patterns: [{ include: "#string-content" }] }, { include: "#less-strings" }] }, "local-function": { begin: "\\b(local)(?=\\()", beginCaptures: { 0: { name: "support.function.font-face.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#unquoted-string" }] }] }, "media-query": { begin: "\\s*(only|not)?\\s*(all|aural|braille|embossed|handheld|print|projection|screen|tty|tv)?", beginCaptures: { 1: { name: "keyword.operator.logic.media.less" }, 2: { name: "support.constant.media.less" } }, end: "\\s*(?:(,)|(?=[{;]))", endCaptures: { 1: { name: "punctuation.definition.arbitrary-repetition.less" } }, patterns: [{ include: "#less-variables" }, { include: "#custom-property-name" }, { begin: "\\s*(and)?\\s*(\\()\\s*", beginCaptures: { 1: { name: "keyword.operator.logic.media.less" }, 2: { name: "punctuation.definition.group.begin.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.group.less", patterns: [{ begin: "((-webkit-|-o-)?((min|max)-)?(-moz-)?(((device-)?(height|width|aspect-ratio|pixel-ratio))|(color(-index)?)|monochrome|resolution))|grid|scan|orientation\\s*(?=[:)])", beginCaptures: { 0: { name: "support.type.property-name.media.less" }, 2: { name: "support.type.vendor-prefix.less" }, 5: { name: "support.type.vendor-prefix.less" } }, end: "(((\\+_?)?):)|(?=\\))", endCaptures: { 1: { name: "punctuation.separator.key-value.less" } } }, { match: "\\b(portrait|landscape|progressive|interlace)", name: "support.constant.property-value.less" }, { captures: { 1: { name: "constant.numeric.less" }, 2: { name: "keyword.operator.arithmetic.less" }, 3: { name: "constant.numeric.less" } }, match: "\\s*(\\d+)(/)(\\d+)" }, { include: "#less-math" }] }] }, "media-query-list": { begin: "\\s*(?=[^{;])", end: "\\s*(?=[{;])", patterns: [{ include: "#media-query" }] }, "minmax-function": { begin: "\\b(minmax)(?=\\()", beginCaptures: { 1: { name: "support.function.grid.less" } }, end: "\\)", endCaptures: { 0: { name: "punctuation.definition.group.end.less" } }, name: "meta.function-call.less", patterns: [{ begin: "\\(", beginCaptures: { 0: { name: "punctuation.definition.group.begin.less" } }, end: "(?=\\))", patterns: [{ include: "#less-variables" }, { include: "#length-type" }, { include: "#comma-delimiter" }, { match: "\\b(max-content|min-content)\\b", name: "support.constant.property-value.less" }] }] }, "number-type": { match: "[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))", name: "constant.numeric.less" }, "numeric-values": { patterns: [{ include: "#dimensions" }, { include: "#percentage-type" }, { include: "#number-type" }] }, "percentage-type": { captures: { 1: { name: "keyword.other.unit.less" } }, match: "[-+]?(?:(?:\\d*\\.\\d+(?:[eE](?:[-+]?\\d+))*)|(?:[-+]?\\d+))(%)", name: "constant.numeric.less" }, "property-list": { patterns: [{ begin: "(?=(?=[^;]*)\\{)", end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.end.less" } }, patterns: [{ include: "#rule-list" }] }] }, "property-value-constants": { patterns: [{ match: `(?x)\\b(
|
|
@@ -851,7 +851,7 @@ https?://
|
|
|
851
851
|
\\s*=>
|
|
852
852
|
)
|
|
853
853
|
))
|
|
854
|
-
))` }, { captures: { 1: { name: "punctuation.accessor.js.jsx" }, 2: { name: "punctuation.accessor.optional.js.jsx" }, 3: { name: "variable.other.constant.property.js.jsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])" }, { captures: { 1: { name: "punctuation.accessor.js.jsx" }, 2: { name: "punctuation.accessor.optional.js.jsx" }, 3: { name: "variable.other.property.js.jsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*)" }, { match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])", name: "variable.other.constant.js.jsx" }, { match: "[_$[:alpha:]][_$[:alnum:]]*", name: "variable.other.readwrite.js.jsx" }] }, "if-statement": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bif\\s*(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))\\s*(?!\\{))", end: "(?=;|$|\\})", patterns: [{ include: "#comment" }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(if)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.conditional.js.jsx" }, 2: { name: "meta.brace.round.js.jsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.js.jsx" } }, patterns: [{ include: "#expression" }] }, { begin: "(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: "(/)([dgimsuy]*)", endCaptures: { 1: { name: "punctuation.definition.string.end.js.jsx" }, 2: { name: "keyword.other.js.jsx" } }, name: "string.regexp.js.jsx", patterns: [{ include: "#regexp" }] }, { include: "#statements" }] }] }, "import-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type)(?!\\s+from))?(?!\\s*[:\\(])(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" } }, end: "(?<!^import|[^\\._$[:alnum:]]import)(?=;|$|^)", name: "meta.import.js.jsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { include: "#string" }, { begin: `(?<=^import|[^\\._$[:alnum:]]import)(?!\\s*["'])`, end: "\\bfrom\\b", endCaptures: { 0: { name: "keyword.control.from.js.jsx" } }, patterns: [{ include: "#import-export-declaration" }] }, { include: "#import-export-declaration" }] }, "import-equals-declaration": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" }, 5: { name: "variable.other.readwrite.alias.js.jsx" }, 6: { name: "keyword.operator.assignment.js.jsx" }, 7: { name: "keyword.control.require.js.jsx" }, 8: { name: "meta.brace.round.js.jsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.js.jsx" } }, name: "meta.import-equals.external.js.jsx", patterns: [{ include: "#comment" }, { include: "#string" }] }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(?!require\\b)", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" }, 5: { name: "variable.other.readwrite.alias.js.jsx" }, 6: { name: "keyword.operator.assignment.js.jsx" } }, end: "(?=;|$|^)", name: "meta.import-equals.internal.js.jsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { captures: { 1: { name: "entity.name.type.module.js.jsx" }, 2: { name: "punctuation.accessor.js.jsx" }, 3: { name: "punctuation.accessor.optional.js.jsx" } }, match: "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))" }, { match: "([_$[:alpha:]][_$[:alnum:]]*)", name: "variable.other.readwrite.js.jsx" }] }] }, "import-export-assert-clause": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(assert)\\s*(\\{)", beginCaptures: { 1: { name: "keyword.control.assert.js.jsx" }, 2: { name: "punctuation.definition.block.js.jsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, patterns: [{ include: "#comment" }, { include: "#string" }, { match: "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*:)", name: "meta.object-literal.key.js.jsx" }, { match: ":", name: "punctuation.separator.key-value.js.jsx" }] }, "import-export-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, name: "meta.block.js.jsx", patterns: [{ include: "#import-export-clause" }] }, "import-export-clause": { patterns: [{ include: "#comment" }, { captures: { 1: { name: "keyword.control.type.js.jsx" }, 2: { name: "keyword.control.default.js.jsx" }, 3: { name: "constant.language.import-export-all.js.jsx" }, 4: { name: "variable.other.readwrite.js.jsx" }, 5: { name: "keyword.control.as.js.jsx" }, 6: { name: "keyword.control.default.js.jsx" }, 7: { name: "variable.other.readwrite.alias.js.jsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(?:(\\btype)\\s+)?(?:(\\bdefault)|(\\*)|(\\b[_$[:alpha:]][_$[:alnum:]]*)))\\s+(as)\\s+(?:(default(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|([_$[:alpha:]][_$[:alnum:]]*))" }, { include: "#punctuation-comma" }, { match: "\\*", name: "constant.language.import-export-all.js.jsx" }, { match: "\\b(default)\\b", name: "keyword.control.default.js.jsx" }, { captures: { 1: { name: "keyword.control.type.js.jsx" }, 2: { name: "variable.other.readwrite.alias.js.jsx" } }, match: "(?:(\\btype)\\s+)?([_$[:alpha:]][_$[:alnum:]]*)" }] }, "import-export-declaration": { patterns: [{ include: "#comment" }, { include: "#string" }, { include: "#import-export-block" }, { match: "\\bfrom\\b", name: "keyword.control.from.js.jsx" }, { include: "#import-export-assert-clause" }, { include: "#import-export-clause" }] }, "indexer-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:)", beginCaptures: { 1: { name: "storage.modifier.js.jsx" }, 2: { name: "meta.brace.square.js.jsx" }, 3: { name: "variable.parameter.js.jsx" } }, end: "(\\])\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.js.jsx" }, 2: { name: "keyword.operator.optional.js.jsx" } }, name: "meta.indexer.declaration.js.jsx", patterns: [{ include: "#type-annotation" }] }, "indexer-mapped-type-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([+-])?(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s+(in)\\s+", beginCaptures: { 1: { name: "keyword.operator.type.modifier.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "meta.brace.square.js.jsx" }, 4: { name: "entity.name.type.js.jsx" }, 5: { name: "keyword.operator.expression.in.js.jsx" } }, end: "(\\])([+-])?\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.js.jsx" }, 2: { name: "keyword.operator.type.modifier.js.jsx" }, 3: { name: "keyword.operator.optional.js.jsx" } }, name: "meta.indexer.mappedtype.declaration.js.jsx", patterns: [{ captures: { 1: { name: "keyword.control.as.js.jsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+" }, { include: "#type" }] }, "inline-tags": { patterns: [{ captures: { 1: { name: "punctuation.definition.bracket.square.begin.jsdoc" }, 2: { name: "punctuation.definition.bracket.square.end.jsdoc" } }, match: "(\\[)[^\\]]+(\\])(?={@(?:link|linkcode|linkplain|tutorial))", name: "constant.other.description.jsdoc" }, { begin: "({)((@)(?:link(?:code|plain)?|tutorial))\\s*", beginCaptures: { 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" }, 2: { name: "storage.type.class.jsdoc" }, 3: { name: "punctuation.definition.inline.tag.jsdoc" } }, end: "}|(?=\\*/)", endCaptures: { 0: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, name: "entity.name.type.instance.jsdoc", patterns: [{ captures: { 1: { name: "variable.other.link.underline.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?=https?://)(?:[^|}\\s*]|\\*[/])+)(\\|)?" }, { captures: { 1: { name: "variable.other.description.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?:[^{}@\\s|*]|\\*[^/])+)(\\|)?" }] }] }, "instanceof-expr": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(instanceof)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.operator.expression.instanceof.js.jsx" } }, end: "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(===|!==|==|!=)|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", patterns: [{ include: "#type" }] }, "interface-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(?:(abstract)\\s+)?\\b(interface)\\b(?=\\s+|/[/*])", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "storage.modifier.js.jsx" }, 4: { name: "storage.type.interface.js.jsx" } }, end: "(?<=\\})", name: "meta.interface.js.jsx", patterns: [{ include: "#comment" }, { include: "#class-or-interface-heritage" }, { captures: { 0: { name: "entity.name.type.interface.js.jsx" } }, match: "[_$[:alpha:]][_$[:alnum:]]*" }, { include: "#type-parameters" }, { include: "#class-or-interface-body" }] }, jsdoctype: { patterns: [{ begin: "\\G({)", beginCaptures: { 0: { name: "entity.name.type.instance.jsdoc" }, 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" } }, contentName: "entity.name.type.instance.jsdoc", end: "((}))\\s*|(?=\\*/)", endCaptures: { 1: { name: "entity.name.type.instance.jsdoc" }, 2: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, patterns: [{ include: "#brackets" }] }] }, jsx: { patterns: [{ include: "#jsx-tag-without-attributes-in-expression" }, { include: "#jsx-tag-in-expression" }] }, "jsx-children": { patterns: [{ include: "#jsx-tag-without-attributes" }, { include: "#jsx-tag" }, { include: "#jsx-evaluated-code" }, { include: "#jsx-entities" }] }, "jsx-entities": { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.js.jsx" }, 3: { name: "punctuation.definition.entity.js.jsx" } }, match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.js.jsx" }] }, "jsx-evaluated-code": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.js.jsx" } }, contentName: "meta.embedded.expression.js.jsx", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.js.jsx" } }, patterns: [{ include: "#expression" }] }, "jsx-string-double-quoted": { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.js.jsx" } }, name: "string.quoted.double.js.jsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-string-single-quoted": { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.js.jsx" } }, name: "string.quoted.single.js.jsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-tag": { begin: "(?=(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>))", end: "(/>)|(?:(</)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))?\\s*(>))", endCaptures: { 1: { name: "punctuation.definition.tag.end.js.jsx" }, 2: { name: "punctuation.definition.tag.begin.js.jsx" }, 3: { name: "entity.name.tag.namespace.js.jsx" }, 4: { name: "punctuation.separator.namespace.js.jsx" }, 5: { name: "entity.name.tag.js.jsx" }, 6: { name: "support.class.component.js.jsx" }, 7: { name: "punctuation.definition.tag.end.js.jsx" } }, name: "meta.tag.js.jsx", patterns: [{ begin: "(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.js.jsx" }, 2: { name: "entity.name.tag.namespace.js.jsx" }, 3: { name: "punctuation.separator.namespace.js.jsx" }, 4: { name: "entity.name.tag.js.jsx" }, 5: { name: "support.class.component.js.jsx" } }, end: "(?=[/]?>)", patterns: [{ include: "#comment" }, { include: "#type-arguments" }, { include: "#jsx-tag-attributes" }] }, { begin: "(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.end.js.jsx" } }, contentName: "meta.jsx.children.js.jsx", end: "(?=</)", patterns: [{ include: "#jsx-children" }] }] }, "jsx-tag-attribute-assignment": { match: `=(?=\\s*(?:'|"|{|/\\*|//|\\n))`, name: "keyword.operator.assignment.js.jsx" }, "jsx-tag-attribute-name": { captures: { 1: { name: "entity.other.attribute-name.namespace.js.jsx" }, 2: { name: "punctuation.separator.namespace.js.jsx" }, 3: { name: "entity.other.attribute-name.js.jsx" } }, match: `(?x)
|
|
854
|
+
))` }, { captures: { 1: { name: "punctuation.accessor.js.jsx" }, 2: { name: "punctuation.accessor.optional.js.jsx" }, 3: { name: "variable.other.constant.property.js.jsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])" }, { captures: { 1: { name: "punctuation.accessor.js.jsx" }, 2: { name: "punctuation.accessor.optional.js.jsx" }, 3: { name: "variable.other.property.js.jsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*)" }, { match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])", name: "variable.other.constant.js.jsx" }, { match: "[_$[:alpha:]][_$[:alnum:]]*", name: "variable.other.readwrite.js.jsx" }] }, "if-statement": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bif\\s*(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))\\s*(?!\\{))", end: "(?=;|$|\\})", patterns: [{ include: "#comment" }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(if)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.conditional.js.jsx" }, 2: { name: "meta.brace.round.js.jsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.js.jsx" } }, patterns: [{ include: "#expression" }] }, { begin: "(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: "(/)([dgimsuy]*)", endCaptures: { 1: { name: "punctuation.definition.string.end.js.jsx" }, 2: { name: "keyword.other.js.jsx" } }, name: "string.regexp.js.jsx", patterns: [{ include: "#regexp" }] }, { include: "#statements" }] }] }, "import-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type)(?!\\s+from))?(?!\\s*[:\\(])(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" } }, end: "(?<!^import|[^\\._$[:alnum:]]import)(?=;|$|^)", name: "meta.import.js.jsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { include: "#string" }, { begin: `(?<=^import|[^\\._$[:alnum:]]import)(?!\\s*["'])`, end: "\\bfrom\\b", endCaptures: { 0: { name: "keyword.control.from.js.jsx" } }, patterns: [{ include: "#import-export-declaration" }] }, { include: "#import-export-declaration" }] }, "import-equals-declaration": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" }, 5: { name: "variable.other.readwrite.alias.js.jsx" }, 6: { name: "keyword.operator.assignment.js.jsx" }, 7: { name: "keyword.control.require.js.jsx" }, 8: { name: "meta.brace.round.js.jsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.js.jsx" } }, name: "meta.import-equals.external.js.jsx", patterns: [{ include: "#comment" }, { include: "#string" }] }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(?!require\\b)", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "keyword.control.import.js.jsx" }, 4: { name: "keyword.control.type.js.jsx" }, 5: { name: "variable.other.readwrite.alias.js.jsx" }, 6: { name: "keyword.operator.assignment.js.jsx" } }, end: "(?=;|$|^)", name: "meta.import-equals.internal.js.jsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { captures: { 1: { name: "entity.name.type.module.js.jsx" }, 2: { name: "punctuation.accessor.js.jsx" }, 3: { name: "punctuation.accessor.optional.js.jsx" } }, match: "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))" }, { match: "([_$[:alpha:]][_$[:alnum:]]*)", name: "variable.other.readwrite.js.jsx" }] }] }, "import-export-assert-clause": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(with)|(assert))\\s*(\\{)", beginCaptures: { 1: { name: "keyword.control.with.js.jsx" }, 2: { name: "keyword.control.assert.js.jsx" }, 3: { name: "punctuation.definition.block.js.jsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, patterns: [{ include: "#comment" }, { include: "#string" }, { match: "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*:)", name: "meta.object-literal.key.js.jsx" }, { match: ":", name: "punctuation.separator.key-value.js.jsx" }] }, "import-export-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.js.jsx" } }, name: "meta.block.js.jsx", patterns: [{ include: "#import-export-clause" }] }, "import-export-clause": { patterns: [{ include: "#comment" }, { captures: { 1: { name: "keyword.control.type.js.jsx" }, 2: { name: "keyword.control.default.js.jsx" }, 3: { name: "constant.language.import-export-all.js.jsx" }, 4: { name: "variable.other.readwrite.js.jsx" }, 5: { name: "keyword.control.as.js.jsx" }, 6: { name: "keyword.control.default.js.jsx" }, 7: { name: "variable.other.readwrite.alias.js.jsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(?:(\\btype)\\s+)?(?:(\\bdefault)|(\\*)|(\\b[_$[:alpha:]][_$[:alnum:]]*)))\\s+(as)\\s+(?:(default(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|([_$[:alpha:]][_$[:alnum:]]*))" }, { include: "#punctuation-comma" }, { match: "\\*", name: "constant.language.import-export-all.js.jsx" }, { match: "\\b(default)\\b", name: "keyword.control.default.js.jsx" }, { captures: { 1: { name: "keyword.control.type.js.jsx" }, 2: { name: "variable.other.readwrite.alias.js.jsx" } }, match: "(?:(\\btype)\\s+)?([_$[:alpha:]][_$[:alnum:]]*)" }] }, "import-export-declaration": { patterns: [{ include: "#comment" }, { include: "#string" }, { include: "#import-export-block" }, { match: "\\bfrom\\b", name: "keyword.control.from.js.jsx" }, { include: "#import-export-assert-clause" }, { include: "#import-export-clause" }] }, "indexer-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:)", beginCaptures: { 1: { name: "storage.modifier.js.jsx" }, 2: { name: "meta.brace.square.js.jsx" }, 3: { name: "variable.parameter.js.jsx" } }, end: "(\\])\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.js.jsx" }, 2: { name: "keyword.operator.optional.js.jsx" } }, name: "meta.indexer.declaration.js.jsx", patterns: [{ include: "#type-annotation" }] }, "indexer-mapped-type-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([+-])?(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s+(in)\\s+", beginCaptures: { 1: { name: "keyword.operator.type.modifier.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "meta.brace.square.js.jsx" }, 4: { name: "entity.name.type.js.jsx" }, 5: { name: "keyword.operator.expression.in.js.jsx" } }, end: "(\\])([+-])?\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.js.jsx" }, 2: { name: "keyword.operator.type.modifier.js.jsx" }, 3: { name: "keyword.operator.optional.js.jsx" } }, name: "meta.indexer.mappedtype.declaration.js.jsx", patterns: [{ captures: { 1: { name: "keyword.control.as.js.jsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+" }, { include: "#type" }] }, "inline-tags": { patterns: [{ captures: { 1: { name: "punctuation.definition.bracket.square.begin.jsdoc" }, 2: { name: "punctuation.definition.bracket.square.end.jsdoc" } }, match: "(\\[)[^\\]]+(\\])(?={@(?:link|linkcode|linkplain|tutorial))", name: "constant.other.description.jsdoc" }, { begin: "({)((@)(?:link(?:code|plain)?|tutorial))\\s*", beginCaptures: { 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" }, 2: { name: "storage.type.class.jsdoc" }, 3: { name: "punctuation.definition.inline.tag.jsdoc" } }, end: "}|(?=\\*/)", endCaptures: { 0: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, name: "entity.name.type.instance.jsdoc", patterns: [{ captures: { 1: { name: "variable.other.link.underline.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?=https?://)(?:[^|}\\s*]|\\*[/])+)(\\|)?" }, { captures: { 1: { name: "variable.other.description.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?:[^{}@\\s|*]|\\*[^/])+)(\\|)?" }] }] }, "instanceof-expr": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(instanceof)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.operator.expression.instanceof.js.jsx" } }, end: "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(===|!==|==|!=)|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", patterns: [{ include: "#type" }] }, "interface-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(?:(abstract)\\s+)?\\b(interface)\\b(?=\\s+|/[/*])", beginCaptures: { 1: { name: "keyword.control.export.js.jsx" }, 2: { name: "storage.modifier.js.jsx" }, 3: { name: "storage.modifier.js.jsx" }, 4: { name: "storage.type.interface.js.jsx" } }, end: "(?<=\\})", name: "meta.interface.js.jsx", patterns: [{ include: "#comment" }, { include: "#class-or-interface-heritage" }, { captures: { 0: { name: "entity.name.type.interface.js.jsx" } }, match: "[_$[:alpha:]][_$[:alnum:]]*" }, { include: "#type-parameters" }, { include: "#class-or-interface-body" }] }, jsdoctype: { patterns: [{ begin: "\\G({)", beginCaptures: { 0: { name: "entity.name.type.instance.jsdoc" }, 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" } }, contentName: "entity.name.type.instance.jsdoc", end: "((}))\\s*|(?=\\*/)", endCaptures: { 1: { name: "entity.name.type.instance.jsdoc" }, 2: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, patterns: [{ include: "#brackets" }] }] }, jsx: { patterns: [{ include: "#jsx-tag-without-attributes-in-expression" }, { include: "#jsx-tag-in-expression" }] }, "jsx-children": { patterns: [{ include: "#jsx-tag-without-attributes" }, { include: "#jsx-tag" }, { include: "#jsx-evaluated-code" }, { include: "#jsx-entities" }] }, "jsx-entities": { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.js.jsx" }, 3: { name: "punctuation.definition.entity.js.jsx" } }, match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.js.jsx" }] }, "jsx-evaluated-code": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.js.jsx" } }, contentName: "meta.embedded.expression.js.jsx", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.js.jsx" } }, patterns: [{ include: "#expression" }] }, "jsx-string-double-quoted": { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.js.jsx" } }, name: "string.quoted.double.js.jsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-string-single-quoted": { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.js.jsx" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.js.jsx" } }, name: "string.quoted.single.js.jsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-tag": { begin: "(?=(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>))", end: "(/>)|(?:(</)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))?\\s*(>))", endCaptures: { 1: { name: "punctuation.definition.tag.end.js.jsx" }, 2: { name: "punctuation.definition.tag.begin.js.jsx" }, 3: { name: "entity.name.tag.namespace.js.jsx" }, 4: { name: "punctuation.separator.namespace.js.jsx" }, 5: { name: "entity.name.tag.js.jsx" }, 6: { name: "support.class.component.js.jsx" }, 7: { name: "punctuation.definition.tag.end.js.jsx" } }, name: "meta.tag.js.jsx", patterns: [{ begin: "(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.js.jsx" }, 2: { name: "entity.name.tag.namespace.js.jsx" }, 3: { name: "punctuation.separator.namespace.js.jsx" }, 4: { name: "entity.name.tag.js.jsx" }, 5: { name: "support.class.component.js.jsx" } }, end: "(?=[/]?>)", patterns: [{ include: "#comment" }, { include: "#type-arguments" }, { include: "#jsx-tag-attributes" }] }, { begin: "(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.end.js.jsx" } }, contentName: "meta.jsx.children.js.jsx", end: "(?=</)", patterns: [{ include: "#jsx-children" }] }] }, "jsx-tag-attribute-assignment": { match: `=(?=\\s*(?:'|"|{|/\\*|//|\\n))`, name: "keyword.operator.assignment.js.jsx" }, "jsx-tag-attribute-name": { captures: { 1: { name: "entity.other.attribute-name.namespace.js.jsx" }, 2: { name: "punctuation.separator.namespace.js.jsx" }, 3: { name: "entity.other.attribute-name.js.jsx" } }, match: `(?x)
|
|
855
855
|
\\s*
|
|
856
856
|
(?:([_$[:alpha:]][-_$[:alnum:].]*)(:))?
|
|
857
857
|
([_$[:alpha:]][-_$[:alnum:]]*)
|
|
@@ -1553,7 +1553,7 @@ https?://
|
|
|
1553
1553
|
\\s*=>
|
|
1554
1554
|
)
|
|
1555
1555
|
))
|
|
1556
|
-
))` }, { captures: { 1: { name: "punctuation.accessor.tsx" }, 2: { name: "punctuation.accessor.optional.tsx" }, 3: { name: "variable.other.constant.property.tsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])" }, { captures: { 1: { name: "punctuation.accessor.tsx" }, 2: { name: "punctuation.accessor.optional.tsx" }, 3: { name: "variable.other.property.tsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*)" }, { match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])", name: "variable.other.constant.tsx" }, { match: "[_$[:alpha:]][_$[:alnum:]]*", name: "variable.other.readwrite.tsx" }] }, "if-statement": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bif\\s*(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))\\s*(?!\\{))", end: "(?=;|$|\\})", patterns: [{ include: "#comment" }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(if)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.conditional.tsx" }, 2: { name: "meta.brace.round.tsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.tsx" } }, patterns: [{ include: "#expression" }] }, { begin: "(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: "(/)([dgimsuy]*)", endCaptures: { 1: { name: "punctuation.definition.string.end.tsx" }, 2: { name: "keyword.other.tsx" } }, name: "string.regexp.tsx", patterns: [{ include: "#regexp" }] }, { include: "#statements" }] }] }, "import-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type)(?!\\s+from))?(?!\\s*[:\\(])(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" } }, end: "(?<!^import|[^\\._$[:alnum:]]import)(?=;|$|^)", name: "meta.import.tsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { include: "#string" }, { begin: `(?<=^import|[^\\._$[:alnum:]]import)(?!\\s*["'])`, end: "\\bfrom\\b", endCaptures: { 0: { name: "keyword.control.from.tsx" } }, patterns: [{ include: "#import-export-declaration" }] }, { include: "#import-export-declaration" }] }, "import-equals-declaration": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" }, 5: { name: "variable.other.readwrite.alias.tsx" }, 6: { name: "keyword.operator.assignment.tsx" }, 7: { name: "keyword.control.require.tsx" }, 8: { name: "meta.brace.round.tsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.tsx" } }, name: "meta.import-equals.external.tsx", patterns: [{ include: "#comment" }, { include: "#string" }] }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(?!require\\b)", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" }, 5: { name: "variable.other.readwrite.alias.tsx" }, 6: { name: "keyword.operator.assignment.tsx" } }, end: "(?=;|$|^)", name: "meta.import-equals.internal.tsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { captures: { 1: { name: "entity.name.type.module.tsx" }, 2: { name: "punctuation.accessor.tsx" }, 3: { name: "punctuation.accessor.optional.tsx" } }, match: "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))" }, { match: "([_$[:alpha:]][_$[:alnum:]]*)", name: "variable.other.readwrite.tsx" }] }] }, "import-export-assert-clause": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(assert)\\s*(\\{)", beginCaptures: { 1: { name: "keyword.control.assert.tsx" }, 2: { name: "punctuation.definition.block.tsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, patterns: [{ include: "#comment" }, { include: "#string" }, { match: "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*:)", name: "meta.object-literal.key.tsx" }, { match: ":", name: "punctuation.separator.key-value.tsx" }] }, "import-export-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, name: "meta.block.tsx", patterns: [{ include: "#import-export-clause" }] }, "import-export-clause": { patterns: [{ include: "#comment" }, { captures: { 1: { name: "keyword.control.type.tsx" }, 2: { name: "keyword.control.default.tsx" }, 3: { name: "constant.language.import-export-all.tsx" }, 4: { name: "variable.other.readwrite.tsx" }, 5: { name: "keyword.control.as.tsx" }, 6: { name: "keyword.control.default.tsx" }, 7: { name: "variable.other.readwrite.alias.tsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(?:(\\btype)\\s+)?(?:(\\bdefault)|(\\*)|(\\b[_$[:alpha:]][_$[:alnum:]]*)))\\s+(as)\\s+(?:(default(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|([_$[:alpha:]][_$[:alnum:]]*))" }, { include: "#punctuation-comma" }, { match: "\\*", name: "constant.language.import-export-all.tsx" }, { match: "\\b(default)\\b", name: "keyword.control.default.tsx" }, { captures: { 1: { name: "keyword.control.type.tsx" }, 2: { name: "variable.other.readwrite.alias.tsx" } }, match: "(?:(\\btype)\\s+)?([_$[:alpha:]][_$[:alnum:]]*)" }] }, "import-export-declaration": { patterns: [{ include: "#comment" }, { include: "#string" }, { include: "#import-export-block" }, { match: "\\bfrom\\b", name: "keyword.control.from.tsx" }, { include: "#import-export-assert-clause" }, { include: "#import-export-clause" }] }, "indexer-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:)", beginCaptures: { 1: { name: "storage.modifier.tsx" }, 2: { name: "meta.brace.square.tsx" }, 3: { name: "variable.parameter.tsx" } }, end: "(\\])\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.tsx" }, 2: { name: "keyword.operator.optional.tsx" } }, name: "meta.indexer.declaration.tsx", patterns: [{ include: "#type-annotation" }] }, "indexer-mapped-type-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([+-])?(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s+(in)\\s+", beginCaptures: { 1: { name: "keyword.operator.type.modifier.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "meta.brace.square.tsx" }, 4: { name: "entity.name.type.tsx" }, 5: { name: "keyword.operator.expression.in.tsx" } }, end: "(\\])([+-])?\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.tsx" }, 2: { name: "keyword.operator.type.modifier.tsx" }, 3: { name: "keyword.operator.optional.tsx" } }, name: "meta.indexer.mappedtype.declaration.tsx", patterns: [{ captures: { 1: { name: "keyword.control.as.tsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+" }, { include: "#type" }] }, "inline-tags": { patterns: [{ captures: { 1: { name: "punctuation.definition.bracket.square.begin.jsdoc" }, 2: { name: "punctuation.definition.bracket.square.end.jsdoc" } }, match: "(\\[)[^\\]]+(\\])(?={@(?:link|linkcode|linkplain|tutorial))", name: "constant.other.description.jsdoc" }, { begin: "({)((@)(?:link(?:code|plain)?|tutorial))\\s*", beginCaptures: { 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" }, 2: { name: "storage.type.class.jsdoc" }, 3: { name: "punctuation.definition.inline.tag.jsdoc" } }, end: "}|(?=\\*/)", endCaptures: { 0: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, name: "entity.name.type.instance.jsdoc", patterns: [{ captures: { 1: { name: "variable.other.link.underline.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?=https?://)(?:[^|}\\s*]|\\*[/])+)(\\|)?" }, { captures: { 1: { name: "variable.other.description.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?:[^{}@\\s|*]|\\*[^/])+)(\\|)?" }] }] }, "instanceof-expr": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(instanceof)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.operator.expression.instanceof.tsx" } }, end: "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(===|!==|==|!=)|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", patterns: [{ include: "#type" }] }, "interface-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(?:(abstract)\\s+)?\\b(interface)\\b(?=\\s+|/[/*])", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "storage.modifier.tsx" }, 4: { name: "storage.type.interface.tsx" } }, end: "(?<=\\})", name: "meta.interface.tsx", patterns: [{ include: "#comment" }, { include: "#class-or-interface-heritage" }, { captures: { 0: { name: "entity.name.type.interface.tsx" } }, match: "[_$[:alpha:]][_$[:alnum:]]*" }, { include: "#type-parameters" }, { include: "#class-or-interface-body" }] }, jsdoctype: { patterns: [{ begin: "\\G({)", beginCaptures: { 0: { name: "entity.name.type.instance.jsdoc" }, 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" } }, contentName: "entity.name.type.instance.jsdoc", end: "((}))\\s*|(?=\\*/)", endCaptures: { 1: { name: "entity.name.type.instance.jsdoc" }, 2: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, patterns: [{ include: "#brackets" }] }] }, jsx: { patterns: [{ include: "#jsx-tag-without-attributes-in-expression" }, { include: "#jsx-tag-in-expression" }] }, "jsx-children": { patterns: [{ include: "#jsx-tag-without-attributes" }, { include: "#jsx-tag" }, { include: "#jsx-evaluated-code" }, { include: "#jsx-entities" }] }, "jsx-entities": { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.tsx" }, 3: { name: "punctuation.definition.entity.tsx" } }, match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.tsx" }] }, "jsx-evaluated-code": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.tsx" } }, contentName: "meta.embedded.expression.tsx", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.tsx" } }, patterns: [{ include: "#expression" }] }, "jsx-string-double-quoted": { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.tsx" } }, name: "string.quoted.double.tsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-string-single-quoted": { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.tsx" } }, name: "string.quoted.single.tsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-tag": { begin: "(?=(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>))", end: "(/>)|(?:(</)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))?\\s*(>))", endCaptures: { 1: { name: "punctuation.definition.tag.end.tsx" }, 2: { name: "punctuation.definition.tag.begin.tsx" }, 3: { name: "entity.name.tag.namespace.tsx" }, 4: { name: "punctuation.separator.namespace.tsx" }, 5: { name: "entity.name.tag.tsx" }, 6: { name: "support.class.component.tsx" }, 7: { name: "punctuation.definition.tag.end.tsx" } }, name: "meta.tag.tsx", patterns: [{ begin: "(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.tsx" }, 2: { name: "entity.name.tag.namespace.tsx" }, 3: { name: "punctuation.separator.namespace.tsx" }, 4: { name: "entity.name.tag.tsx" }, 5: { name: "support.class.component.tsx" } }, end: "(?=[/]?>)", patterns: [{ include: "#comment" }, { include: "#type-arguments" }, { include: "#jsx-tag-attributes" }] }, { begin: "(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.end.tsx" } }, contentName: "meta.jsx.children.tsx", end: "(?=</)", patterns: [{ include: "#jsx-children" }] }] }, "jsx-tag-attribute-assignment": { match: `=(?=\\s*(?:'|"|{|/\\*|//|\\n))`, name: "keyword.operator.assignment.tsx" }, "jsx-tag-attribute-name": { captures: { 1: { name: "entity.other.attribute-name.namespace.tsx" }, 2: { name: "punctuation.separator.namespace.tsx" }, 3: { name: "entity.other.attribute-name.tsx" } }, match: `(?x)
|
|
1556
|
+
))` }, { captures: { 1: { name: "punctuation.accessor.tsx" }, 2: { name: "punctuation.accessor.optional.tsx" }, 3: { name: "variable.other.constant.property.tsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])" }, { captures: { 1: { name: "punctuation.accessor.tsx" }, 2: { name: "punctuation.accessor.optional.tsx" }, 3: { name: "variable.other.property.tsx" } }, match: "(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))\\s*(\\#?[_$[:alpha:]][_$[:alnum:]]*)" }, { match: "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])", name: "variable.other.constant.tsx" }, { match: "[_$[:alpha:]][_$[:alnum:]]*", name: "variable.other.readwrite.tsx" }] }, "if-statement": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bif\\s*(\\(([^\\(\\)]|(\\(([^\\(\\)]|\\([^\\(\\)]*\\))*\\)))*\\))\\s*(?!\\{))", end: "(?=;|$|\\})", patterns: [{ include: "#comment" }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(if)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.conditional.tsx" }, 2: { name: "meta.brace.round.tsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.tsx" } }, patterns: [{ include: "#expression" }] }, { begin: "(?<=\\))\\s*\\/(?![\\/*])(?=(?:[^\\/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)*\\])+\\/([dgimsuy]+|(?![\\/\\*])|(?=\\/\\*))(?!\\s*[a-zA-Z0-9_$]))", beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: "(/)([dgimsuy]*)", endCaptures: { 1: { name: "punctuation.definition.string.end.tsx" }, 2: { name: "keyword.other.tsx" } }, name: "string.regexp.tsx", patterns: [{ include: "#regexp" }] }, { include: "#statements" }] }] }, "import-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type)(?!\\s+from))?(?!\\s*[:\\(])(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" } }, end: "(?<!^import|[^\\._$[:alnum:]]import)(?=;|$|^)", name: "meta.import.tsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { include: "#string" }, { begin: `(?<=^import|[^\\._$[:alnum:]]import)(?!\\s*["'])`, end: "\\bfrom\\b", endCaptures: { 0: { name: "keyword.control.from.tsx" } }, patterns: [{ include: "#import-export-declaration" }] }, { include: "#import-export-declaration" }] }, "import-equals-declaration": { patterns: [{ begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" }, 5: { name: "variable.other.readwrite.alias.tsx" }, 6: { name: "keyword.operator.assignment.tsx" }, 7: { name: "keyword.control.require.tsx" }, 8: { name: "meta.brace.round.tsx" } }, end: "\\)", endCaptures: { 0: { name: "meta.brace.round.tsx" } }, name: "meta.import-equals.external.tsx", patterns: [{ include: "#comment" }, { include: "#string" }] }, { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(?!require\\b)", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "keyword.control.import.tsx" }, 4: { name: "keyword.control.type.tsx" }, 5: { name: "variable.other.readwrite.alias.tsx" }, 6: { name: "keyword.operator.assignment.tsx" } }, end: "(?=;|$|^)", name: "meta.import-equals.internal.tsx", patterns: [{ include: "#single-line-comment-consuming-line-ending" }, { include: "#comment" }, { captures: { 1: { name: "entity.name.type.module.tsx" }, 2: { name: "punctuation.accessor.tsx" }, 3: { name: "punctuation.accessor.optional.tsx" } }, match: "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*[[:digit:]])))" }, { match: "([_$[:alpha:]][_$[:alnum:]]*)", name: "variable.other.readwrite.tsx" }] }] }, "import-export-assert-clause": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(with)|(assert))\\s*(\\{)", beginCaptures: { 1: { name: "keyword.control.with.tsx" }, 2: { name: "keyword.control.assert.tsx" }, 3: { name: "punctuation.definition.block.tsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, patterns: [{ include: "#comment" }, { include: "#string" }, { match: "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(?=(\\/\\*([^\\*]|(\\*[^\\/]))*\\*\\/\\s*)*:)", name: "meta.object-literal.key.tsx" }, { match: ":", name: "punctuation.separator.key-value.tsx" }] }, "import-export-block": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, end: "\\}", endCaptures: { 0: { name: "punctuation.definition.block.tsx" } }, name: "meta.block.tsx", patterns: [{ include: "#import-export-clause" }] }, "import-export-clause": { patterns: [{ include: "#comment" }, { captures: { 1: { name: "keyword.control.type.tsx" }, 2: { name: "keyword.control.default.tsx" }, 3: { name: "constant.language.import-export-all.tsx" }, 4: { name: "variable.other.readwrite.tsx" }, 5: { name: "keyword.control.as.tsx" }, 6: { name: "keyword.control.default.tsx" }, 7: { name: "variable.other.readwrite.alias.tsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(?:(\\btype)\\s+)?(?:(\\bdefault)|(\\*)|(\\b[_$[:alpha:]][_$[:alnum:]]*)))\\s+(as)\\s+(?:(default(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|([_$[:alpha:]][_$[:alnum:]]*))" }, { include: "#punctuation-comma" }, { match: "\\*", name: "constant.language.import-export-all.tsx" }, { match: "\\b(default)\\b", name: "keyword.control.default.tsx" }, { captures: { 1: { name: "keyword.control.type.tsx" }, 2: { name: "variable.other.readwrite.alias.tsx" } }, match: "(?:(\\btype)\\s+)?([_$[:alpha:]][_$[:alnum:]]*)" }] }, "import-export-declaration": { patterns: [{ include: "#comment" }, { include: "#string" }, { include: "#import-export-block" }, { match: "\\bfrom\\b", name: "keyword.control.from.tsx" }, { include: "#import-export-assert-clause" }, { include: "#import-export-clause" }] }, "indexer-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:)", beginCaptures: { 1: { name: "storage.modifier.tsx" }, 2: { name: "meta.brace.square.tsx" }, 3: { name: "variable.parameter.tsx" } }, end: "(\\])\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.tsx" }, 2: { name: "keyword.operator.optional.tsx" } }, name: "meta.indexer.declaration.tsx", patterns: [{ include: "#type-annotation" }] }, "indexer-mapped-type-declaration": { begin: "(?:(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([+-])?(readonly)\\s*)?\\s*(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s+(in)\\s+", beginCaptures: { 1: { name: "keyword.operator.type.modifier.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "meta.brace.square.tsx" }, 4: { name: "entity.name.type.tsx" }, 5: { name: "keyword.operator.expression.in.tsx" } }, end: "(\\])([+-])?\\s*(\\?\\s*)?|$", endCaptures: { 1: { name: "meta.brace.square.tsx" }, 2: { name: "keyword.operator.type.modifier.tsx" }, 3: { name: "keyword.operator.optional.tsx" } }, name: "meta.indexer.mappedtype.declaration.tsx", patterns: [{ captures: { 1: { name: "keyword.control.as.tsx" } }, match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+" }, { include: "#type" }] }, "inline-tags": { patterns: [{ captures: { 1: { name: "punctuation.definition.bracket.square.begin.jsdoc" }, 2: { name: "punctuation.definition.bracket.square.end.jsdoc" } }, match: "(\\[)[^\\]]+(\\])(?={@(?:link|linkcode|linkplain|tutorial))", name: "constant.other.description.jsdoc" }, { begin: "({)((@)(?:link(?:code|plain)?|tutorial))\\s*", beginCaptures: { 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" }, 2: { name: "storage.type.class.jsdoc" }, 3: { name: "punctuation.definition.inline.tag.jsdoc" } }, end: "}|(?=\\*/)", endCaptures: { 0: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, name: "entity.name.type.instance.jsdoc", patterns: [{ captures: { 1: { name: "variable.other.link.underline.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?=https?://)(?:[^|}\\s*]|\\*[/])+)(\\|)?" }, { captures: { 1: { name: "variable.other.description.jsdoc" }, 2: { name: "punctuation.separator.pipe.jsdoc" } }, match: "\\G((?:[^{}@\\s|*]|\\*[^/])+)(\\|)?" }] }] }, "instanceof-expr": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(instanceof)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", beginCaptures: { 1: { name: "keyword.operator.expression.instanceof.tsx" } }, end: "(?<=\\))|(?=[;),}\\]:?\\-\\+\\>]|\\|\\||\\&\\&|\\!\\=\\=|$|(===|!==|==|!=)|(([\\&\\~\\^\\|]\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\s+instanceof(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\s*[\\(]))))", patterns: [{ include: "#type" }] }, "interface-declaration": { begin: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(\\bexport)\\s+)?(?:(\\bdeclare)\\s+)?\\b(?:(abstract)\\s+)?\\b(interface)\\b(?=\\s+|/[/*])", beginCaptures: { 1: { name: "keyword.control.export.tsx" }, 2: { name: "storage.modifier.tsx" }, 3: { name: "storage.modifier.tsx" }, 4: { name: "storage.type.interface.tsx" } }, end: "(?<=\\})", name: "meta.interface.tsx", patterns: [{ include: "#comment" }, { include: "#class-or-interface-heritage" }, { captures: { 0: { name: "entity.name.type.interface.tsx" } }, match: "[_$[:alpha:]][_$[:alnum:]]*" }, { include: "#type-parameters" }, { include: "#class-or-interface-body" }] }, jsdoctype: { patterns: [{ begin: "\\G({)", beginCaptures: { 0: { name: "entity.name.type.instance.jsdoc" }, 1: { name: "punctuation.definition.bracket.curly.begin.jsdoc" } }, contentName: "entity.name.type.instance.jsdoc", end: "((}))\\s*|(?=\\*/)", endCaptures: { 1: { name: "entity.name.type.instance.jsdoc" }, 2: { name: "punctuation.definition.bracket.curly.end.jsdoc" } }, patterns: [{ include: "#brackets" }] }] }, jsx: { patterns: [{ include: "#jsx-tag-without-attributes-in-expression" }, { include: "#jsx-tag-in-expression" }] }, "jsx-children": { patterns: [{ include: "#jsx-tag-without-attributes" }, { include: "#jsx-tag" }, { include: "#jsx-evaluated-code" }, { include: "#jsx-entities" }] }, "jsx-entities": { patterns: [{ captures: { 1: { name: "punctuation.definition.entity.tsx" }, 3: { name: "punctuation.definition.entity.tsx" } }, match: "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)", name: "constant.character.entity.tsx" }] }, "jsx-evaluated-code": { begin: "\\{", beginCaptures: { 0: { name: "punctuation.section.embedded.begin.tsx" } }, contentName: "meta.embedded.expression.tsx", end: "\\}", endCaptures: { 0: { name: "punctuation.section.embedded.end.tsx" } }, patterns: [{ include: "#expression" }] }, "jsx-string-double-quoted": { begin: '"', beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: '"', endCaptures: { 0: { name: "punctuation.definition.string.end.tsx" } }, name: "string.quoted.double.tsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-string-single-quoted": { begin: "'", beginCaptures: { 0: { name: "punctuation.definition.string.begin.tsx" } }, end: "'", endCaptures: { 0: { name: "punctuation.definition.string.end.tsx" } }, name: "string.quoted.single.tsx", patterns: [{ include: "#jsx-entities" }] }, "jsx-tag": { begin: "(?=(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>))", end: "(/>)|(?:(</)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))?\\s*(>))", endCaptures: { 1: { name: "punctuation.definition.tag.end.tsx" }, 2: { name: "punctuation.definition.tag.begin.tsx" }, 3: { name: "entity.name.tag.namespace.tsx" }, 4: { name: "punctuation.separator.namespace.tsx" }, 5: { name: "entity.name.tag.tsx" }, 6: { name: "support.class.component.tsx" }, 7: { name: "punctuation.definition.tag.end.tsx" } }, name: "meta.tag.tsx", patterns: [{ begin: "(<)\\s*(?:([_$[:alpha:]][-_$[:alnum:].]*)(?<!\\.|-)(:))?((?:[a-z][a-z0-9]*|([_$[:alpha:]][-_$[:alnum:].]*))(?<!\\.|-))(?=((<\\s*)|(\\s+))(?!\\?)|\\/?>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.tsx" }, 2: { name: "entity.name.tag.namespace.tsx" }, 3: { name: "punctuation.separator.namespace.tsx" }, 4: { name: "entity.name.tag.tsx" }, 5: { name: "support.class.component.tsx" } }, end: "(?=[/]?>)", patterns: [{ include: "#comment" }, { include: "#type-arguments" }, { include: "#jsx-tag-attributes" }] }, { begin: "(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.end.tsx" } }, contentName: "meta.jsx.children.tsx", end: "(?=</)", patterns: [{ include: "#jsx-children" }] }] }, "jsx-tag-attribute-assignment": { match: `=(?=\\s*(?:'|"|{|/\\*|//|\\n))`, name: "keyword.operator.assignment.tsx" }, "jsx-tag-attribute-name": { captures: { 1: { name: "entity.other.attribute-name.namespace.tsx" }, 2: { name: "punctuation.separator.namespace.tsx" }, 3: { name: "entity.other.attribute-name.tsx" } }, match: `(?x)
|
|
1557
1557
|
\\s*
|
|
1558
1558
|
(?:([_$[:alpha:]][-_$[:alnum:].]*)(:))?
|
|
1559
1559
|
([_$[:alpha:]][-_$[:alnum:]]*)
|
|
@@ -2065,36 +2065,41 @@ var F = [
|
|
|
2065
2065
|
...c,
|
|
2066
2066
|
G
|
|
2067
2067
|
];
|
|
2068
|
-
const Z = Object.freeze({
|
|
2068
|
+
const Z = Object.freeze({ displayName: "HTML (Derivative)", injections: { "R:text.html - (comment.block, text.html meta.embedded, meta.tag.*.*.html, meta.tag.*.*.*.html, meta.tag.*.*.*.*.html)": { comment: "Uses R: to ensure this matches after any other injections.", patterns: [{ match: "<", name: "invalid.illegal.bad-angle-bracket.html" }] } }, name: "html-derivative", patterns: [{ include: "text.html.basic#core-minus-invalid" }, { begin: "(</?)(\\w[^\\s>]*)(?<!/)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" }, 2: { name: "entity.name.tag.html" } }, end: "((?: ?/)?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "meta.tag.other.unrecognized.html.derivative", patterns: [{ include: "text.html.basic#attribute" }] }], scopeName: "text.html.derivative", embeddedLangs: ["html"] });
|
|
2069
2069
|
var N = [
|
|
2070
|
+
...n,
|
|
2070
2071
|
Z
|
|
2071
2072
|
];
|
|
2072
|
-
const E = Object.freeze({ fileTypes: [], injectTo: ["
|
|
2073
|
+
const E = Object.freeze({ fileTypes: [], injectTo: ["text.html.markdown"], injectionSelector: "L:text.html.markdown", name: "markdown-vue", patterns: [{ include: "#vue-code-block" }], repository: { "vue-code-block": { begin: "(^|\\G)(\\s*)(`{3,}|~{3,})\\s*(?i:(vue)((\\s+|:|,|\\{|\\?)[^`~]*)?$)", beginCaptures: { 3: { name: "punctuation.definition.markdown" }, 4: { name: "fenced_code.block.language.markdown" }, 5: { name: "fenced_code.block.language.attributes.markdown" } }, end: "(^|\\G)(\\2|\\s{0,3})(\\3)\\s*$", endCaptures: { 3: { name: "punctuation.definition.markdown" } }, name: "markup.fenced_code.block.markdown", patterns: [{ include: "source.vue" }] } }, scopeName: "markdown.vue.codeblock" });
|
|
2073
2074
|
var S = [
|
|
2074
2075
|
E
|
|
2075
2076
|
];
|
|
2076
|
-
const B = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:
|
|
2077
|
+
const B = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:meta.tag -meta.attribute -entity.name.tag.pug -attribute_value -source.tsx -source.js.jsx, L:meta.element -meta.attribute", name: "vue-directives", patterns: [{ include: "source.vue#vue-directives" }], scopeName: "vue.directives" });
|
|
2077
2078
|
var T = [
|
|
2078
2079
|
B
|
|
2079
2080
|
];
|
|
2080
|
-
const O = Object.freeze({ fileTypes: [], injectTo: ["source.vue"
|
|
2081
|
-
var
|
|
2082
|
-
...e,
|
|
2081
|
+
const O = Object.freeze({ fileTypes: [], injectTo: ["source.vue", "text.html.markdown", "text.html.derivative", "text.pug"], injectionSelector: "L:text.pug -comment -string.comment, L:text.html.derivative -comment.block, L:text.html.markdown -comment.block", name: "vue-interpolations", patterns: [{ include: "source.vue#vue-interpolations" }], scopeName: "vue.interpolations" });
|
|
2082
|
+
var D = [
|
|
2083
2083
|
O
|
|
2084
2084
|
];
|
|
2085
|
-
const D = Object.freeze({ displayName: "Vue", name: "vue", patterns: [{ include: "text.html.basic#comment" }, { include: "#self-closing-tag" }, { begin: "(<)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, patterns: [{ begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)md\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.markdown", patterns: [{ include: "text.html.markdown" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)html\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)pug\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.pug", patterns: [{ include: "text.pug" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)stylus\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.stylus", patterns: [{ include: "source.stylus" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)postcss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.postcss", patterns: [{ include: "source.postcss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)sass\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.sass", patterns: [{ include: "source.sass" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)css\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)scss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.scss", patterns: [{ include: "source.css.scss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)less\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.less", patterns: [{ include: "source.css.less" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)js\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)ts\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.ts", patterns: [{ include: "source.ts" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js.jsx", patterns: [{ include: "source.js.jsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)tsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.tsx", patterns: [{ include: "source.tsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json", patterns: [{ include: "source.json" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsonc\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json.comments", patterns: [{ include: "source.json.comments" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json5\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json5", patterns: [{ include: "source.json5" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)yaml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.yaml", patterns: [{ include: "source.yaml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)toml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.toml", patterns: [{ include: "source.toml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)(gql|graphql)\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.graphql", patterns: [{ include: "source.graphql" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)vue\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.vue", patterns: [{ include: "source.vue" }] }] }, { begin: "(template)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/template\\b)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: "(script)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/script\\b)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: "(style)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/style\\b)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: "([a-zA-Z0-9:-]+)", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text" }] }] }], repository: { "html-stuff": { patterns: [{ include: "#template-tag" }, { include: "text.html.derivative" }, { include: "text.html.basic" }] }, "self-closing-tag": { begin: "(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "self-closing-tag", patterns: [{ include: "#tag-stuff" }] }, "tag-stuff": { begin: "\\G", end: "(?=/>)|(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.tag-stuff", patterns: [{ include: "#vue-directives" }, { include: "text.html.basic#attribute" }] }, "template-tag": { patterns: [{ include: "#template-tag-1" }, { include: "#template-tag-2" }] }, "template-tag-1": { begin: "(<)(template)\\b(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" }, 3: { name: "punctuation.definition.tag.end.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#html-stuff" }] }] }, "template-tag-2": { begin: "(<)(template)\\b", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#tag-stuff" }, { include: "#html-stuff" }] }] }, "vue-directives": { patterns: [{ include: "#vue-directives-control" }, { include: "#vue-directives-style-attr" }, { include: "#vue-directives-original" }, { include: "#vue-directives-generic-attr" }] }, "vue-directives-control": { begin: "(v-for)|(v-if|v-else-if|v-else)", captures: { 1: { name: "keyword.control.loop.vue" }, 2: { name: "keyword.control.conditional.vue" } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.directive.control.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-expression": { patterns: [{ begin: "(=)\\s*('|\"|`)", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" }, 2: { name: "punctuation.definition.string.begin.html.vue" } }, end: "(\\2)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, patterns: [{ begin: "(?<=('|\"|`))", end: "(?=\\1)", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }, { begin: "(=)\\s*(?=[^'\"`])", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=(\\s|>|\\/>))", patterns: [{ begin: "(?=[^'\"`])", end: "(?=(\\s|>|\\/>))", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }] }, "vue-directives-generic-attr": { begin: "\\b(generic)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.generic.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.type.parameters.vue", patterns: [{ include: "source.ts#comment" }, { match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", name: "storage.modifier.ts" }, { include: "source.ts#type" }, { include: "source.ts#punctuation-comma" }, { match: "(=)(?!>)", name: "keyword.operator.assignment.ts" }] }] }, "vue-directives-original": { begin: "(?:\\b(v-)|([:\\.])|(@)|(#))(\\[?)([\\w\\-]*)(\\]?)(?:\\.([\\w\\-]*))*", beginCaptures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.attribute-shorthand.bind.html.vue" }, 3: { name: "punctuation.attribute-shorthand.event.html.vue" }, 4: { name: "punctuation.attribute-shorthand.slot.html.vue" }, 5: { name: "punctuation.separator.key-value.html.vue" }, 6: { name: "entity.other.attribute-name.html.vue" }, 7: { name: "punctuation.separator.key-value.html.vue" }, 8: { name: "entity.other.attribute-name.html.vue" }, 9: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=\\s*+[^=\\s])", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.attribute.directive.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-style-attr": { begin: "\\b(style)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.style.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "Copy from source.css#rule-list-innards", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "source.css.embedded.html.vue", patterns: [{ include: "source.css#comment-block" }, { include: "source.css#escapes" }, { include: "source.css#font-features" }, { match: `(?x) (?<![\\w-])
|
|
2085
|
+
const I = Object.freeze({ fileTypes: [], injectTo: ["source.vue"], injectionSelector: "L:source.css -comment, L:source.postcss -comment, L:source.sass -comment, L:source.stylus -comment", name: "vue-sfc-style-variable-injection", patterns: [{ include: "#vue-sfc-style-variable-injection" }], repository: { "vue-sfc-style-variable-injection": { begin: "\\b(v-bind)\\s*\\(", beginCaptures: { 1: { name: "entity.name.function" } }, end: "\\)", name: "vue.sfc.style.variable.injection.v-bind", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html" } }, end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html" } }, name: "source.ts.embedded.html.vue", patterns: [{ include: "source.js" }] }, { include: "source.js" }] } }, scopeName: "vue.sfc.style.variable.injection", embeddedLangs: ["javascript"] });
|
|
2086
|
+
var P = [
|
|
2087
|
+
...e,
|
|
2088
|
+
I
|
|
2089
|
+
];
|
|
2090
|
+
const L = Object.freeze({ displayName: "Vue", name: "vue", patterns: [{ include: "text.html.basic#comment" }, { include: "#self-closing-tag" }, { begin: "(<)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" } }, end: "(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, patterns: [{ begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)md\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.markdown", patterns: [{ include: "text.html.markdown" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)html\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)pug\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text.pug", patterns: [{ include: "text.pug" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)stylus\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.stylus", patterns: [{ include: "source.stylus" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)postcss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.postcss", patterns: [{ include: "source.postcss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)sass\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.sass", patterns: [{ include: "source.sass" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)css\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)scss\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.scss", patterns: [{ include: "source.css.scss" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)less\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.css.less", patterns: [{ include: "source.css.less" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)js\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)ts\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.ts", patterns: [{ include: "source.ts" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.js.jsx", patterns: [{ include: "source.js.jsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)tsx\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.tsx", patterns: [{ include: "source.tsx" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json", patterns: [{ include: "source.json" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)jsonc\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json.comments", patterns: [{ include: "source.json.comments" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)json5\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.json5", patterns: [{ include: "source.json5" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)yaml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.yaml", patterns: [{ include: "source.yaml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)toml\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.toml", patterns: [{ include: "source.toml" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)(gql|graphql)\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.graphql", patterns: [{ include: "source.graphql" }] }] }, { begin: `([a-zA-Z0-9:-]+)\\b(?=[^>]*\\blang\\s*=\\s*(['"]?)vue\\b\\2)`, beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "source.vue", patterns: [{ include: "source.vue" }] }] }, { begin: "(template)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/template\\b)", name: "text.html.derivative", patterns: [{ include: "#html-stuff" }] }] }, { begin: "(script)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/script\\b)", name: "source.js", patterns: [{ include: "source.js" }] }] }, { begin: "(style)\\b", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/style\\b)", name: "source.css", patterns: [{ include: "source.css" }] }] }, { begin: "([a-zA-Z0-9:-]+)", beginCaptures: { 1: { name: "entity.name.tag.$1.html.vue" } }, end: "(</)(\\1)\\s*(?=>)", endCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, patterns: [{ include: "#tag-stuff" }, { begin: "(?<=>)", end: "(?=<\\/)", name: "text" }] }] }], repository: { "html-stuff": { patterns: [{ include: "#template-tag" }, { include: "text.html.derivative" }, { include: "text.html.basic" }] }, "self-closing-tag": { begin: "(<)([a-zA-Z0-9:-]+)(?=([^>]+/>))", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "self-closing-tag", patterns: [{ include: "#tag-stuff" }] }, "tag-stuff": { begin: "\\G", end: "(?=/>)|(>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.tag-stuff", patterns: [{ include: "#vue-directives" }, { include: "text.html.basic#attribute" }] }, "template-tag": { patterns: [{ include: "#template-tag-1" }, { include: "#template-tag-2" }] }, "template-tag-1": { begin: "(<)(template)\\b(>)", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" }, 3: { name: "punctuation.definition.tag.end.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#html-stuff" }] }] }, "template-tag-2": { begin: "(<)(template)\\b", beginCaptures: { 1: { name: "punctuation.definition.tag.begin.html.vue" }, 2: { name: "entity.name.tag.$2.html.vue" } }, end: "(/?>)", endCaptures: { 1: { name: "punctuation.definition.tag.end.html.vue" } }, name: "meta.template-tag.start", patterns: [{ begin: "\\G", end: "(?=/>)|((</)(template)\\b)", endCaptures: { 2: { name: "punctuation.definition.tag.begin.html.vue" }, 3: { name: "entity.name.tag.$3.html.vue" } }, name: "meta.template-tag.end", patterns: [{ include: "#tag-stuff" }, { include: "#html-stuff" }] }] }, "vue-directives": { patterns: [{ include: "#vue-directives-control" }, { include: "#vue-directives-style-attr" }, { include: "#vue-directives-original" }, { include: "#vue-directives-generic-attr" }] }, "vue-directives-control": { begin: "(v-for)|(v-if|v-else-if|v-else)", captures: { 1: { name: "keyword.control.loop.vue" }, 2: { name: "keyword.control.conditional.vue" } }, end: "(?=\\s*+[^=\\s])", name: "meta.attribute.directive.control.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-expression": { patterns: [{ begin: "(=)\\s*('|\"|`)", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" }, 2: { name: "punctuation.definition.string.begin.html.vue" } }, end: "(\\2)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, patterns: [{ begin: "(?<=('|\"|`))", end: "(?=\\1)", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }, { begin: "(=)\\s*(?=[^'\"`])", beginCaptures: { 1: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=(\\s|>|\\/>))", patterns: [{ begin: "(?=[^'\"`])", end: "(?=(\\s|>|\\/>))", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }] }, "vue-directives-generic-attr": { begin: "\\b(generic)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.generic.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "https://github.com/microsoft/vscode/blob/fd4346210f59135fad81a8b8c4cea7bf5a9ca6b4/extensions/typescript-basics/syntaxes/TypeScript.tmLanguage.json#L4002-L4020", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.type.parameters.vue", patterns: [{ include: "source.ts#comment" }, { match: "(?<![_$[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))", name: "storage.modifier.ts" }, { include: "source.ts#type" }, { include: "source.ts#punctuation-comma" }, { match: "(=)(?!>)", name: "keyword.operator.assignment.ts" }] }] }, "vue-directives-original": { begin: "(?:\\b(v-)|([:\\.])|(@)|(#))(\\[?)([\\w\\-]*)(\\]?)(?:\\.([\\w\\-]*))*", beginCaptures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.attribute-shorthand.bind.html.vue" }, 3: { name: "punctuation.attribute-shorthand.event.html.vue" }, 4: { name: "punctuation.attribute-shorthand.slot.html.vue" }, 5: { name: "punctuation.separator.key-value.html.vue" }, 6: { name: "entity.other.attribute-name.html.vue" }, 7: { name: "punctuation.separator.key-value.html.vue" }, 8: { name: "entity.other.attribute-name.html.vue" }, 9: { name: "punctuation.separator.key-value.html.vue" } }, end: "(?=\\s*+[^=\\s])", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "meta.attribute.directive.vue", patterns: [{ include: "#vue-directives-expression" }] }, "vue-directives-style-attr": { begin: "\\b(style)\\s*(=)", captures: { 1: { name: "entity.other.attribute-name.html.vue" }, 2: { name: "punctuation.separator.key-value.html.vue" } }, end: `(?<='|")`, name: "meta.attribute.style.vue", patterns: [{ begin: `('|")`, beginCaptures: { 1: { name: "punctuation.definition.string.begin.html.vue" } }, comment: "Copy from source.css#rule-list-innards", end: "(\\1)", endCaptures: { 1: { name: "punctuation.definition.string.end.html.vue" } }, name: "source.css.embedded.html.vue", patterns: [{ include: "source.css#comment-block" }, { include: "source.css#escapes" }, { include: "source.css#font-features" }, { match: `(?x) (?<![\\w-])
|
|
2086
2091
|
--
|
|
2087
2092
|
(?:[-a-zA-Z_] | [^\\x00-\\x7F])
|
|
2088
2093
|
(?:[-a-zA-Z0-9_] | [^\\x00-\\x7F]
|
|
2089
2094
|
|\\\\(?:[0-9a-fA-F]{1,6}|.)
|
|
2090
|
-
)*`, name: "variable.css" }, { begin: "(?<![-a-zA-Z])(?=[-a-zA-Z])", end: "$|(?![-a-zA-Z])", name: "meta.property-name.css", patterns: [{ include: "source.css#property-names" }] }, { begin: "(:)\\s*", beginCaptures: { 1: { name: "punctuation.separator.key-value.css" } }, comment: "Modify end to fix #199. TODO: handle ' character.", contentName: "meta.property-value.css", end: `\\s*(;)|\\s*(?='|")`, endCaptures: { 1: { name: "punctuation.terminator.rule.css" } }, patterns: [{ include: "source.css#comment-block" }, { include: "source.css#property-values" }] }, { match: ";", name: "punctuation.terminator.rule.css" }] }] }, "vue-interpolations": { patterns: [{ begin: "(\\{\\{)", beginCaptures: { 1: { name: "punctuation.definition.interpolation.begin.html.vue" } }, end: "(\\}\\})", endCaptures: { 1: { name: "punctuation.definition.interpolation.end.html.vue" } }, name: "expression.embedded.vue", patterns: [{ begin: "\\G", end: "(?=\\}\\})", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }] } }, scopeName: "source.vue", embeddedLangs: ["html", "markdown", "pug", "stylus", "sass", "css", "scss", "less", "javascript", "typescript", "jsx", "tsx", "json", "jsonc", "json5", "yaml", "toml", "graphql", "markdown-vue", "vue-directives", "vue-interpolations", "vue-sfc-style-variable-injection"] });
|
|
2091
|
-
var
|
|
2092
|
-
...
|
|
2095
|
+
)*`, name: "variable.css" }, { begin: "(?<![-a-zA-Z])(?=[-a-zA-Z])", end: "$|(?![-a-zA-Z])", name: "meta.property-name.css", patterns: [{ include: "source.css#property-names" }] }, { begin: "(:)\\s*", beginCaptures: { 1: { name: "punctuation.separator.key-value.css" } }, comment: "Modify end to fix #199. TODO: handle ' character.", contentName: "meta.property-value.css", end: `\\s*(;)|\\s*(?='|")`, endCaptures: { 1: { name: "punctuation.terminator.rule.css" } }, patterns: [{ include: "source.css#comment-block" }, { include: "source.css#property-values" }] }, { match: ";", name: "punctuation.terminator.rule.css" }] }] }, "vue-interpolations": { patterns: [{ begin: "(\\{\\{)", beginCaptures: { 1: { name: "punctuation.definition.interpolation.begin.html.vue" } }, end: "(\\}\\})", endCaptures: { 1: { name: "punctuation.definition.interpolation.end.html.vue" } }, name: "expression.embedded.vue", patterns: [{ begin: "\\G", end: "(?=\\}\\})", name: "source.ts.embedded.html.vue", patterns: [{ include: "source.ts" }] }] }] } }, scopeName: "source.vue", embeddedLangs: ["html", "markdown", "pug", "stylus", "sass", "css", "scss", "less", "javascript", "typescript", "jsx", "tsx", "json", "jsonc", "json5", "yaml", "toml", "graphql", "html-derivative", "markdown-vue", "vue-directives", "vue-interpolations", "vue-sfc-style-variable-injection"] });
|
|
2096
|
+
var W = [
|
|
2097
|
+
...n,
|
|
2093
2098
|
...p,
|
|
2094
2099
|
..._,
|
|
2095
2100
|
...r,
|
|
2096
2101
|
...s,
|
|
2097
|
-
...
|
|
2102
|
+
...t,
|
|
2098
2103
|
...i,
|
|
2099
2104
|
...$,
|
|
2100
2105
|
...e,
|
|
@@ -2110,9 +2115,10 @@ var U = [
|
|
|
2110
2115
|
...N,
|
|
2111
2116
|
...S,
|
|
2112
2117
|
...T,
|
|
2113
|
-
...
|
|
2114
|
-
|
|
2118
|
+
...D,
|
|
2119
|
+
...P,
|
|
2120
|
+
L
|
|
2115
2121
|
];
|
|
2116
2122
|
export {
|
|
2117
|
-
|
|
2123
|
+
W as default
|
|
2118
2124
|
};
|