Skip to content

Commit 1a8406e

Browse files
committed
Fix(VSCode): Deprecated the styled template literal highlight to prevent crashing
1 parent 3a34780 commit 1a8406e

File tree

1 file changed

+0
-82
lines changed

1 file changed

+0
-82
lines changed

packages/language/syntaxes/master-css.injection-js.json

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,7 @@
22
"name": "master-css",
33
"scopeName": "source.master-css.injection-js",
44
"injectionSelector": "L:source.js -comment, L:source.ts -comment, L:source.jsx -comment, L:source.tsx -comment",
5-
"patterns": [
6-
{
7-
"include": "#highlight-styled"
8-
},
9-
{
10-
"include": "#highlight-styled2"
11-
}
12-
],
135
"repository": {
14-
"highlight-styled": {
15-
"begin": "(styled)(\\.)([^\\s(]+)(`)",
16-
"end": "(`)",
17-
"captures": {
18-
"1": {
19-
"name": "variable.other.object"
20-
},
21-
"2": {
22-
"name": "punctuation.accessor"
23-
},
24-
"3": {
25-
"name": "entity.name.function.tagged-template"
26-
},
27-
"4": {
28-
"name": "string.quoted.double"
29-
}
30-
},
31-
"endCaptures": {
32-
"1": {
33-
"name": "string.quoted.double"
34-
}
35-
},
36-
"patterns": [
37-
{
38-
"include": "#master-css-template-expression"
39-
},
40-
{
41-
"include": "#master-css-value-string-quoted-double"
42-
},
43-
{
44-
"include": "#master-css-value-string-quoted-single"
45-
},
46-
{
47-
"include": "source.master-css"
48-
},
49-
{
50-
"include": "#class-string"
51-
}
52-
]
53-
},
54-
"highlight-styled2": {
55-
"begin": "(styled)(\\.)(.+)\\s*(\\()",
56-
"end": "(\\))",
57-
"captures": {
58-
"1": {
59-
"name": "variable.other.object"
60-
},
61-
"2": {
62-
"name": "punctuation.accessor"
63-
},
64-
"3": {
65-
"name": "entity.name.function.tagged-template"
66-
},
67-
"4": {
68-
"name": "punctuation.definition.block"
69-
}
70-
},
71-
"endCaptures": {
72-
"1": {
73-
"name": "punctuation.definition.block"
74-
}
75-
},
76-
"patterns": [
77-
{
78-
"include": "#classList-classes-template-string"
79-
},
80-
{
81-
"include": "#classList-classes-quoted-double-string"
82-
},
83-
{
84-
"include": "#classList-classes-quoted-single-string"
85-
}
86-
]
87-
},
886
"classList-classes-template-string": {
897
"begin": "(`)",
908
"end": "(`)",

0 commit comments

Comments
 (0)