Skip to content

Commit a1034a8

Browse files
authored
Merge pull request #212 from mvllow/feat/support-prettier-in-styled-components
Add official Prettier meta_scope for styled-components (#196)
2 parents 7d73889 + c41e5d4 commit a1034a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

syntaxes/fjsx15/literal/string/styled-component.sublime-syntax

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ contexts:
153153
1: punctuation.accessor.js.fjsx15
154154
2: support.function.styled-component.js.fjsx15
155155
set: styled-component-begin
156-
157156
pop-now:
158157
- match: ""
159158
pop: true
@@ -190,7 +189,7 @@ contexts:
190189

191190
styled-component-content:
192191
- clear_scopes: true
193-
- meta_content_scope: source.css
192+
- meta_content_scope: source.css.embedded.js
194193
- include: comment-no-pop
195194
- include: shared-content
196195
# Recover ruleset block.
@@ -202,7 +201,7 @@ contexts:
202201

203202
styled-component-content-keyframes:
204203
- clear_scopes: true
205-
- meta_content_scope: source.css
204+
- meta_content_scope: source.css.embedded.js
206205
- include: comment-no-pop
207206
- include: shared-content
208207
- match: (?=\S)

0 commit comments

Comments
 (0)