File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed
extensions/custom_templates Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ contexts:
88
88
89
89
styled-component-keyframes-end:
90
90
- !with
91
- - include: scope:source.js.css#at- keyframe-block-content
91
+ - include: scope:source.js.css#styled-components- keyframe-body
92
92
- !include_resource Packages/JSCustom/extensions/custom_templates/template.yaml
93
93
- include: else-pop
94
94
Original file line number Diff line number Diff line change @@ -10,11 +10,12 @@ contexts:
10
10
main :
11
11
- meta_prepend : true
12
12
- match : (?=(?:{{html_tags}}|{{svg_tags}})(?!:))
13
- push : selector-content
13
+ push : styled-components- selector-body
14
14
- include : property-identifiers
15
15
- include : property-values
16
16
17
17
rule-list-body :
18
+ - meta_prepend : true
18
19
- include : main
19
20
20
21
comments :
@@ -29,9 +30,31 @@ contexts:
29
30
selectors :
30
31
- meta_prepend : true
31
32
- match : (?=&)
32
- push : selector-content
33
+ push : styled-components-selector-body
34
+
35
+ selector-body :
36
+ - meta_prepend : true
37
+ - match : \&
38
+ scope : variable.language.css.styled-components
33
39
34
40
selector-content :
35
41
- meta_prepend : true
36
42
- match : \&
37
43
scope : variable.language.css.styled-components
44
+
45
+ # Make sure that we handle both the old and new CSS context names
46
+ styled-components-selector-body :
47
+ - meta_scope : meta.selector.css
48
+ - include : selector-body
49
+ - include : selector-content
50
+
51
+ at-keyframe-block-body :
52
+ - meta_prepend : true
53
+
54
+ at-keyframe-block-content :
55
+ - meta_prepend : true
56
+
57
+ styled-components-keyframe-body :
58
+ - meta_scope : meta.at-rule.keyframe.css
59
+ - include : at-keyframe-block-body
60
+ - include : at-keyframe-block-content
You can’t perform that action at this time.
0 commit comments