diff --git a/extensions/html/test/colorize-results/test_html.json b/extensions/html/test/colorize-results/test_html.json index c8c3d5b2063..67f8386825b 100644 --- a/extensions/html/test/colorize-results/test_html.json +++ b/extensions/html/test/colorize-results/test_html.json @@ -1552,7 +1552,7 @@ }, { "c": "{", - "t": "block.definition.embedded.html.js.meta.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.meta.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1563,7 +1563,7 @@ }, { "c": "\t\t\t", - "t": "embedded.html.js.meta.object-literal.source", + "t": "embedded.html.js.meta.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1574,7 +1574,7 @@ }, { "c": "baseUrl", - "t": "embedded.html.js.key.member.meta.object.object-literal.source", + "t": "embedded.html.js.key.member.meta.object.object-literal.objectliteral.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1585,7 +1585,7 @@ }, { "c": ":", - "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.punctuation.separator.source", + "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.objectliteral.punctuation.separator.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1596,7 +1596,7 @@ }, { "c": " ", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1607,7 +1607,7 @@ }, { "c": "'", - "t": "begin.definition.embedded.html.js.member.meta.object.object-literal.punctuation.quoted.single.source.string", + "t": "begin.definition.embedded.html.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1618,7 +1618,7 @@ }, { "c": "/out", - "t": "embedded.html.js.member.meta.object.object-literal.quoted.single.source.string", + "t": "embedded.html.js.member.meta.object.objectliteral.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1629,7 +1629,7 @@ }, { "c": "'", - "t": "definition.embedded.end.html.js.member.meta.object.object-literal.punctuation.quoted.single.source.string", + "t": "definition.embedded.end.html.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1640,7 +1640,7 @@ }, { "c": ",", - "t": "comma.embedded.html.js.meta.object-literal.punctuation.separator.source", + "t": "comma.embedded.html.js.meta.objectliteral.punctuation.separator.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1651,7 +1651,7 @@ }, { "c": "\t\t\t", - "t": "embedded.html.js.meta.object-literal.source", + "t": "embedded.html.js.meta.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1662,7 +1662,7 @@ }, { "c": "paths", - "t": "embedded.html.js.key.member.meta.object.object-literal.source", + "t": "embedded.html.js.key.member.meta.object.object-literal.objectliteral.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1673,7 +1673,7 @@ }, { "c": ":", - "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.punctuation.separator.source", + "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.objectliteral.punctuation.separator.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1684,7 +1684,7 @@ }, { "c": " ", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1695,7 +1695,7 @@ }, { "c": "{", - "t": "block.definition.embedded.html.js.member.meta.object.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.member.meta.object.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1706,7 +1706,7 @@ }, { "c": "\t\t\t\t", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1717,7 +1717,7 @@ }, { "c": "assert", - "t": "embedded.html.js.key.member.meta.object.object-literal.source", + "t": "embedded.html.js.key.member.meta.object.object-literal.objectliteral.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1728,7 +1728,7 @@ }, { "c": ":", - "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.punctuation.separator.source", + "t": "embedded.html.js.key.key-value.member.meta.object.object-literal.objectliteral.punctuation.separator.source", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -1739,7 +1739,7 @@ }, { "c": " ", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1750,7 +1750,7 @@ }, { "c": "'", - "t": "begin.definition.embedded.html.js.member.meta.object.object-literal.punctuation.quoted.single.source.string", + "t": "begin.definition.embedded.html.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1761,7 +1761,7 @@ }, { "c": "/test/assert.js", - "t": "embedded.html.js.member.meta.object.object-literal.quoted.single.source.string", + "t": "embedded.html.js.member.meta.object.objectliteral.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1772,7 +1772,7 @@ }, { "c": "'", - "t": "definition.embedded.end.html.js.member.meta.object.object-literal.punctuation.quoted.single.source.string", + "t": "definition.embedded.end.html.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string.html rgb(0, 0, 255)", @@ -1783,7 +1783,7 @@ }, { "c": "\t\t\t", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1794,7 +1794,7 @@ }, { "c": "}", - "t": "block.definition.embedded.html.js.member.meta.object.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.member.meta.object.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1805,7 +1805,7 @@ }, { "c": "\t\t", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1816,7 +1816,7 @@ }, { "c": "}", - "t": "block.definition.embedded.html.js.meta.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.meta.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1882,7 +1882,7 @@ }, { "c": "{", - "t": "block.definition.embedded.html.js.meta.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.meta.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1893,7 +1893,7 @@ }, { "c": "{ ", - "t": "embedded.html.js.meta.object-literal.source", + "t": "embedded.html.js.meta.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1904,7 +1904,7 @@ }, { "c": "modules", - "t": "embedded.html.js.member.meta.object.object-literal.other.readwrite.source.variable", + "t": "embedded.html.js.member.meta.object.objectliteral.other.readwrite.source.variable", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.variable rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.variable rgb(0, 16, 128)", @@ -1915,7 +1915,7 @@ }, { "c": " ", - "t": "embedded.html.js.member.meta.object.object-literal.source", + "t": "embedded.html.js.member.meta.object.objectliteral.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1926,7 +1926,7 @@ }, { "c": "}", - "t": "block.definition.embedded.html.js.meta.object-literal.punctuation.source", + "t": "block.definition.embedded.html.js.meta.objectliteral.punctuation.source", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", diff --git a/extensions/jade/test/colorize-results/test_jade.json b/extensions/jade/test/colorize-results/test_jade.json index 61f9b6013ff..01aa7f049ba 100644 --- a/extensions/jade/test/colorize-results/test_jade.json +++ b/extensions/jade/test/colorize-results/test_jade.json @@ -716,7 +716,7 @@ }, { "c": "{", - "t": "block.definition.expr.js.meta.object-literal.punctuation.source.var", + "t": "block.definition.expr.js.meta.objectliteral.punctuation.source.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -727,7 +727,7 @@ }, { "c": " ", - "t": "expr.js.meta.object-literal.source.var", + "t": "expr.js.meta.objectliteral.source.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -738,7 +738,7 @@ }, { "c": "name", - "t": "expr.js.key.member.meta.object.object-literal.source.var", + "t": "expr.js.key.member.meta.object.object-literal.objectliteral.source.var", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -749,7 +749,7 @@ }, { "c": ":", - "t": "expr.js.key.key-value.member.meta.object.object-literal.punctuation.separator.source.var", + "t": "expr.js.key.key-value.member.meta.object.object-literal.objectliteral.punctuation.separator.source.var", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.object-literal.member.key rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.object-literal.member.key rgb(0, 16, 128)", @@ -760,7 +760,7 @@ }, { "c": " ", - "t": "expr.js.member.meta.object.object-literal.source.var", + "t": "expr.js.member.meta.object.objectliteral.source.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -771,7 +771,7 @@ }, { "c": "'", - "t": "begin.definition.expr.js.member.meta.object.object-literal.punctuation.quoted.single.source.string.var", + "t": "begin.definition.expr.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string.var", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)", @@ -782,7 +782,7 @@ }, { "c": "John", - "t": "expr.js.member.meta.object.object-literal.quoted.single.source.string.var", + "t": "expr.js.member.meta.object.objectliteral.quoted.single.source.string.var", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)", @@ -793,7 +793,7 @@ }, { "c": "'", - "t": "definition.end.expr.js.member.meta.object.object-literal.punctuation.quoted.single.source.string.var", + "t": "definition.end.expr.js.member.meta.object.objectliteral.punctuation.quoted.single.source.string.var", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.string rgb(206, 145, 120)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.string rgb(163, 21, 21)", @@ -804,7 +804,7 @@ }, { "c": " ", - "t": "expr.js.member.meta.object.object-literal.source.var", + "t": "expr.js.member.meta.object.objectliteral.source.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -815,7 +815,7 @@ }, { "c": "}", - "t": "block.definition.expr.js.meta.object-literal.punctuation.source.var", + "t": "block.definition.expr.js.meta.objectliteral.punctuation.source.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", diff --git a/extensions/javascript/syntaxes/JavaScript.tmLanguage.json b/extensions/javascript/syntaxes/JavaScript.tmLanguage.json index f40f2396903..5d52b791c45 100644 --- a/extensions/javascript/syntaxes/JavaScript.tmLanguage.json +++ b/extensions/javascript/syntaxes/JavaScript.tmLanguage.json @@ -495,8 +495,8 @@ }, "enum-declaration": { "name": "meta.enum.declaration.js", - "match": "(?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", + "match": "(?x)(?:(\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", "captures": { "1": { "name": "punctuation.accessor.js" @@ -2235,8 +2298,11 @@ "name": "keyword.operator.new.js" } }, - "end": "(?=[(;),]|$|((?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", + "begin": "(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\\s*(:)(?=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", "beginCaptures": { "0": { "name": "meta.object-literal.key.js" @@ -2353,19 +2419,19 @@ "match": "(?", - "t": "block.definition.end.expr.function.js.member.meta.object.object-literal.punctuation.tag.var.without-attributes", + "t": "block.definition.end.expr.function.js.member.meta.object.objectliteral.punctuation.tag.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1607,7 +1607,7 @@ }, { "c": " ", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1618,7 +1618,7 @@ }, { "c": "<", - "t": "begin.block.children.definition.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "begin.block.children.definition.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1629,7 +1629,7 @@ }, { "c": "h1", - "t": "block.children.entity.expr.function.js.jsx.member.meta.name.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.entity.expr.function.js.jsx.member.meta.name.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.function.tag rgb(86, 156, 214)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.entity.name.function.tag rgb(128, 0, 0)", @@ -1640,7 +1640,7 @@ }, { "c": ">", - "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1651,7 +1651,7 @@ }, { "c": "Hello ", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1662,7 +1662,7 @@ }, { "c": "{", - "t": "begin.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.object-literal.punctuation.section.tag.tsx.var.without-attributes", + "t": "begin.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.objectliteral.punctuation.section.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1673,7 +1673,7 @@ }, { "c": "message", - "t": "block.children.embedded.expr.expression.function.js.jsx.member.meta.object.object-literal.other.readwrite.tag.tsx.var.variable.without-attributes", + "t": "block.children.embedded.expr.expression.function.js.jsx.member.meta.object.objectliteral.other.readwrite.tag.tsx.var.variable.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.variable rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.variable rgb(0, 16, 128)", @@ -1684,7 +1684,7 @@ }, { "c": "}", - "t": "block.children.embedded.end.expr.expression.function.js.jsx.member.meta.object.object-literal.punctuation.section.tag.tsx.var.without-attributes", + "t": "block.children.embedded.end.expr.expression.function.js.jsx.member.meta.object.objectliteral.punctuation.section.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1695,7 +1695,7 @@ }, { "c": "!", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1706,7 +1706,7 @@ }, { "c": "", - "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1739,7 +1739,7 @@ }, { "c": " ", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1750,7 +1750,7 @@ }, { "c": "<", - "t": "begin.block.children.definition.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "begin.block.children.definition.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1761,7 +1761,7 @@ }, { "c": "a", - "t": "block.children.entity.expr.function.js.jsx.member.meta.name.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.entity.expr.function.js.jsx.member.meta.name.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.name.function.tag rgb(86, 156, 214)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.entity.name.function.tag rgb(128, 0, 0)", @@ -1772,7 +1772,7 @@ }, { "c": " ", - "t": "attribute-name.block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "attribute-name.block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1783,7 +1783,7 @@ }, { "c": "href", - "t": "attribute-name.block.children.entity.expr.function.js.jsx.member.meta.object.object-literal.other.tag.tsx.var.without-attributes", + "t": "attribute-name.block.children.entity.expr.function.js.jsx.member.meta.object.objectliteral.other.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.other.attribute-name rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.entity.other.attribute-name rgb(255, 0, 0)", @@ -1794,7 +1794,7 @@ }, { "c": "=", - "t": "assignment.block.children.expr.function.js.jsx.keyword.member.meta.object.object-literal.operator.tag.tsx.var.without-attributes", + "t": "assignment.block.children.expr.function.js.jsx.keyword.member.meta.object.objectliteral.operator.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword.operator rgb(212, 212, 212)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword.operator rgb(0, 0, 0)", @@ -1805,7 +1805,7 @@ }, { "c": "\"", - "t": "begin.block.children.definition.double.expr.function.js.jsx.jsxAttributeValue.member.meta.object.object-literal.punctuation.quoted.string.tag.tsx.var.without-attributes", + "t": "begin.block.children.definition.double.expr.function.js.jsx.jsxAttributeValue.member.meta.object.objectliteral.punctuation.quoted.string.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1816,7 +1816,7 @@ }, { "c": "\"", - "t": "block.children.definition.double.end.expr.function.js.jsx.jsxAttributeValue.member.meta.object.object-literal.punctuation.quoted.string.tag.tsx.var.without-attributes", + "t": "block.children.definition.double.end.expr.function.js.jsx.jsxAttributeValue.member.meta.object.objectliteral.punctuation.quoted.string.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1827,7 +1827,7 @@ }, { "c": " ", - "t": "attribute-name.block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "attribute-name.block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1838,7 +1838,7 @@ }, { "c": "onClick", - "t": "attribute-name.block.children.entity.expr.function.js.jsx.member.meta.object.object-literal.other.tag.tsx.var.without-attributes", + "t": "attribute-name.block.children.entity.expr.function.js.jsx.member.meta.object.objectliteral.other.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.entity.other.attribute-name rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.entity.other.attribute-name rgb(255, 0, 0)", @@ -1849,7 +1849,7 @@ }, { "c": "=", - "t": "assignment.block.children.expr.function.js.jsx.keyword.member.meta.object.object-literal.operator.tag.tsx.var.without-attributes", + "t": "assignment.block.children.expr.function.js.jsx.keyword.member.meta.object.objectliteral.operator.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.keyword.operator rgb(212, 212, 212)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.keyword.operator rgb(0, 0, 0)", @@ -1860,7 +1860,7 @@ }, { "c": "{", - "t": "begin.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.object-literal.punctuation.section.tag.tsx.var.without-attributes", + "t": "begin.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.objectliteral.punctuation.section.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1871,7 +1871,7 @@ }, { "c": "this", - "t": "block.children.embedded.expr.expression.function.js.jsx.language.member.meta.object.object-literal.tag.this.tsx.var.variable.without-attributes", + "t": "block.children.embedded.expr.expression.function.js.jsx.language.member.meta.object.objectliteral.tag.this.tsx.var.variable.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.variable.language rgb(86, 156, 214)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.variable.language rgb(0, 0, 255)", @@ -1882,7 +1882,7 @@ }, { "c": ".", - "t": "accessor.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "accessor.block.children.embedded.expr.expression.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1893,7 +1893,7 @@ }, { "c": "toggle", - "t": "block.children.embedded.expr.expression.function.js.jsx.member.meta.object.object-literal.other.property.tag.tsx.var.variable.without-attributes", + "t": "block.children.embedded.expr.expression.function.js.jsx.member.meta.object.objectliteral.other.property.tag.tsx.var.variable.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.variable rgb(156, 220, 254)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.variable rgb(0, 16, 128)", @@ -1904,7 +1904,7 @@ }, { "c": "}", - "t": "block.children.embedded.end.expr.expression.function.js.jsx.member.meta.object.object-literal.punctuation.section.tag.tsx.var.without-attributes", + "t": "block.children.embedded.end.expr.expression.function.js.jsx.member.meta.object.objectliteral.punctuation.section.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1915,7 +1915,7 @@ }, { "c": ">", - "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1926,7 +1926,7 @@ }, { "c": "Toggle", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1937,7 +1937,7 @@ }, { "c": "", - "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.object-literal.punctuation.tag.tsx.var.without-attributes", + "t": "block.children.definition.end.expr.function.js.jsx.member.meta.object.objectliteral.punctuation.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -1970,7 +1970,7 @@ }, { "c": " ", - "t": "block.children.expr.function.js.jsx.member.meta.object.object-literal.tag.tsx.var.without-attributes", + "t": "block.children.expr.function.js.jsx.member.meta.object.objectliteral.tag.tsx.var.without-attributes", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -1981,7 +1981,7 @@ }, { "c": "", - "t": "block.definition.end.expr.function.js.member.meta.object.object-literal.punctuation.tag.var.without-attributes", + "t": "block.definition.end.expr.function.js.member.meta.object.objectliteral.punctuation.tag.var.without-attributes", "r": { "dark_plus": ".vs-dark.vscode-theme-defaults-themes-dark_plus-json .token.punctuation.definition.tag rgb(128, 128, 128)", "light_plus": ".vs.vscode-theme-defaults-themes-light_plus-json .token.punctuation.definition.tag rgb(128, 0, 0)", @@ -2014,7 +2014,7 @@ }, { "c": " ", - "t": "block.expr.function.js.member.meta.object.object-literal.var", + "t": "block.expr.function.js.member.meta.object.objectliteral.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -2025,7 +2025,7 @@ }, { "c": ")", - "t": "block.brace.expr.function.js.member.meta.object.object-literal.round.var", + "t": "block.brace.expr.function.js.member.meta.object.objectliteral.round.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -2036,7 +2036,7 @@ }, { "c": ";", - "t": "block.expr.function.js.member.meta.object.object-literal.punctuation.statement.terminator.var", + "t": "block.expr.function.js.member.meta.object.objectliteral.punctuation.statement.terminator.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -2047,7 +2047,7 @@ }, { "c": " ", - "t": "block.expr.function.js.member.meta.object.object-literal.var", + "t": "block.expr.function.js.member.meta.object.objectliteral.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -2058,7 +2058,7 @@ }, { "c": "}", - "t": "block.definition.expr.function.js.member.meta.object.object-literal.punctuation.var", + "t": "block.definition.expr.function.js.member.meta.object.objectliteral.punctuation.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", @@ -2069,7 +2069,7 @@ }, { "c": "}", - "t": "block.definition.expr.js.meta.object-literal.punctuation.var", + "t": "block.definition.expr.js.meta.objectliteral.punctuation.var", "r": { "dark_plus": ".vs-dark .token rgb(212, 212, 212)", "light_plus": ".vs .token rgb(0, 0, 0)", diff --git a/extensions/typescript/syntaxes/TypeScript.tmLanguage.json b/extensions/typescript/syntaxes/TypeScript.tmLanguage.json index cb9231b920d..a132a799da4 100644 --- a/extensions/typescript/syntaxes/TypeScript.tmLanguage.json +++ b/extensions/typescript/syntaxes/TypeScript.tmLanguage.json @@ -491,8 +491,8 @@ }, "enum-declaration": { "name": "meta.enum.declaration.ts", - "match": "(?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", + "match": "(?x)(?:(\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", "captures": { "1": { "name": "punctuation.accessor.ts" @@ -2244,8 +2307,11 @@ "name": "keyword.operator.new.ts" } }, - "end": "(?=[(;),]|$|((?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", + "begin": "(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\\s*(:)(?=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", "beginCaptures": { "0": { "name": "meta.object-literal.key.ts" @@ -2362,19 +2428,19 @@ "match": "(?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", + "match": "(?x)(?:(\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))", "captures": { "1": { "name": "punctuation.accessor.tsx" @@ -2234,8 +2297,11 @@ "name": "keyword.operator.new.tsx" } }, - "end": "(?=[(;),]|$|((?)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", + "begin": "(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\\s*(:)(?=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))", "beginCaptures": { "0": { "name": "meta.object-literal.key.tsx" @@ -2352,19 +2418,19 @@ "match": "(?