|
2 | 2 | "name": "master-css", |
3 | 3 | "scopeName": "source.master-css.injection-js", |
4 | 4 | "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 | | - ], |
13 | 5 | "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 | | - }, |
88 | 6 | "classList-classes-template-string": { |
89 | 7 | "begin": "(`)", |
90 | 8 | "end": "(`)", |
|
0 commit comments