Skip to content

Commit

Permalink
Add new styled components syntax to build command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thom1729 committed Jul 3, 2021
1 parent 697e490 commit 8f25bd2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 542 deletions.
37 changes: 37 additions & 0 deletions Styled Components.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
%YAML 1.2
---
version: 2
extends: Packages/CSS/CSS.sublime-syntax
hidden: true
scope: source.js.css
file_extensions: []
first_line_match:
contexts:
main:
- meta_prepend: true
- match: (?={{html_tags}}|{{svg_tags}})
push: selector-content
- include: property-identifiers
- include: property-values

rule-list-body:
- include: main

comments:
- meta_prepend: true
- match: //
scope: punctuation.definition.comment.begin.css.styled-components
push:
- meta_scope: comment.line.double-slash.css.styled-components
- match: ^
pop: true

selectors:
- meta_prepend: true
- match: (?=&)
push: selector-content

selector-content:
- meta_prepend: true
- match: \&
scope: variable.language.css.styled-components
Loading

0 comments on commit 8f25bd2

Please sign in to comment.