Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
SCSS: Add #at_rule_supports
Browse files Browse the repository at this point in the history
  • Loading branch information
hediyi committed Jun 24, 2016
1 parent 0e6c13f commit d5cb6f2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions grammars/scss.cson
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
{
'include': '#at_rule_at_root'
}
{
'include': '#at_rule_supports'
}
]
'repository':
'at_rule__':
Expand Down Expand Up @@ -542,6 +545,41 @@
'include': '#selectors'
}
]
'at_rule_supports':
'begin': '((@)supports)\\b'
'captures':
'1':
'name': 'keyword.control.at-rule.supports.scss'
'2':
'name': 'punctuation.definition.keyword.scss'
'end': '(?={|$)'
'name': 'meta.at-rule.supports.scss'
'patterns': [
{
'include': '#logical_operators'
}
{
'include': '#constant_property_value'
}
{
'include': '#property_names'
}
{
'include': '#property_values'
}
{
'match': '\\('
'name': 'punctuation.definition.condition.begin.bracket.round.scss'
}
{
'match': '\\)'
'name': 'punctuation.definition.condition.end.bracket.round.scss'
}
{
'match': ':'
'name': 'punctuation.separator.key-value.scss'
}
]
'at_rule_warn':
'begin': '\\s*((@)(warn|debug|error)\\b)\\s*'
'captures':
Expand Down

0 comments on commit d5cb6f2

Please sign in to comment.