Skip to content

Commit 174db5e

Browse files
committed
Fixes microsoft#134662: Configure strings and comments embedded in template expressions to be identified as strings and comments
1 parent b0b05ea commit 174db5e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

extensions/javascript/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868
},
6969
"tokenTypes": {
7070
"meta.template.expression": "other",
71+
"meta.template.expression string": "string",
72+
"meta.template.expression comment": "comment",
7173
"entity.name.type.instance.jsdoc": "other",
7274
"entity.name.function.tagged-template": "other",
7375
"meta.import string.quoted": "other",
@@ -86,6 +88,8 @@
8688
},
8789
"tokenTypes": {
8890
"meta.template.expression": "other",
91+
"meta.template.expression string": "string",
92+
"meta.template.expression comment": "comment",
8993
"entity.name.type.instance.jsdoc": "other",
9094
"entity.name.function.tagged-template": "other",
9195
"meta.import string.quoted": "other",

extensions/typescript-basics/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
"path": "./syntaxes/TypeScript.tmLanguage.json",
6161
"tokenTypes": {
6262
"meta.template.expression": "other",
63+
"meta.template.expression string": "string",
64+
"meta.template.expression comment": "comment",
6365
"entity.name.type.instance.jsdoc": "other",
6466
"entity.name.function.tagged-template": "other",
6567
"meta.import string.quoted": "other",
@@ -78,6 +80,8 @@
7880
},
7981
"tokenTypes": {
8082
"meta.template.expression": "other",
83+
"meta.template.expression string": "string",
84+
"meta.template.expression comment": "comment",
8185
"entity.name.type.instance.jsdoc": "other",
8286
"entity.name.function.tagged-template": "other",
8387
"meta.import string.quoted": "other",

0 commit comments

Comments
 (0)