Skip to content

Commit 8f25bd2

Browse files
committed
Add new styled components syntax to build command.
1 parent 697e490 commit 8f25bd2

File tree

3 files changed

+41
-542
lines changed

3 files changed

+41
-542
lines changed

Styled Components.sublime-syntax

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
%YAML 1.2
2+
---
3+
version: 2
4+
extends: Packages/CSS/CSS.sublime-syntax
5+
hidden: true
6+
scope: source.js.css
7+
file_extensions: []
8+
first_line_match:
9+
contexts:
10+
main:
11+
- meta_prepend: true
12+
- match: (?={{html_tags}}|{{svg_tags}})
13+
push: selector-content
14+
- include: property-identifiers
15+
- include: property-values
16+
17+
rule-list-body:
18+
- include: main
19+
20+
comments:
21+
- meta_prepend: true
22+
- match: //
23+
scope: punctuation.definition.comment.begin.css.styled-components
24+
push:
25+
- meta_scope: comment.line.double-slash.css.styled-components
26+
- match: ^
27+
pop: true
28+
29+
selectors:
30+
- meta_prepend: true
31+
- match: (?=&)
32+
push: selector-content
33+
34+
selector-content:
35+
- meta_prepend: true
36+
- match: \&
37+
scope: variable.language.css.styled-components

0 commit comments

Comments
 (0)