Skip to content

Commit

Permalink
Reorganize constants and operators
Browse files Browse the repository at this point in the history
... so all variable types are grouped one after another
  • Loading branch information
deathaxe committed Mar 5, 2024
1 parent e6a89ec commit 43c80bb
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions Syntaxes/SCSS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,38 @@ contexts:
- other-function-arguments-list-body
- function-arguments-list-begin

###[ SCSS CONSTANTS ]##########################################################

scss-constants:
- match: true{{break}}
scope: constant.language.boolean.true.scss
- match: false{{break}}
scope: constant.language.boolean.false.scss
- match: null{{break}}
scope: constant.language.null.scss

###[ SCSS OPERATORS ]##########################################################

scss-default-operators:
- match: \!\s*(?i:default){{break}}
scope: keyword.other.default.scss

scss-global-operators:
- match: \!\s*(?i:global){{break}}
scope: keyword.other.global.scss

scss-operators:
- match: /|\*|\-\-|\-|\+\+|\+|~
scope: keyword.operator.arithmetic.scss
- match: \$|%|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|%=|\+=|\-=|&=
scope: keyword.operator.comparison.scss
- match: (?:and|not|or|when){{break}}
scope: keyword.operator.logical.scss

scss-variadics:
- match: \.{3}
scope: keyword.operator.variadic.scss

###[ SCSS ARGUMENTS ]##########################################################

scss-arguments:
Expand Down Expand Up @@ -948,38 +980,6 @@ contexts:
pop: 1
- include: values

###[ SCSS CONSTANTS ]##########################################################

scss-constants:
- match: true{{break}}
scope: constant.language.boolean.true.scss
- match: false{{break}}
scope: constant.language.boolean.false.scss
- match: null{{break}}
scope: constant.language.null.scss

###[ SCSS OPERATORS ]##########################################################

scss-default-operators:
- match: \!\s*(?i:default){{break}}
scope: keyword.other.default.scss

scss-global-operators:
- match: \!\s*(?i:global){{break}}
scope: keyword.other.global.scss

scss-operators:
- match: /|\*|\-\-|\-|\+\+|\+|~
scope: keyword.operator.arithmetic.scss
- match: \$|%|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|\|\||\?\:|%=|\+=|\-=|&=
scope: keyword.operator.comparison.scss
- match: (?:and|not|or|when){{break}}
scope: keyword.operator.logical.scss

scss-variadics:
- match: \.{3}
scope: keyword.operator.variadic.scss

###[ SCSS VARIABLES ]##########################################################

scss-variables:
Expand Down

0 comments on commit 43c80bb

Please sign in to comment.