Skip to content

Commit

Permalink
Fix alpha delimiters
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Mar 10, 2024
1 parent cf20d5f commit a314b4b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions Syntaxes/SCSS.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,14 @@ contexts:
- include: scss-identifiers-or-functions

hsl-color-function-arguments-list-body:
- meta_append: true
- include: scss-identifiers-or-functions
- meta_content_scope: meta.function-call.arguments.css meta.group.css
- include: alpha-delimiters
- include: other-function-arguments-list-body

rgb-color-function-arguments-list-body:
- meta_append: true
- include: scss-identifiers-or-functions
- meta_content_scope: meta.function-call.arguments.css meta.group.css
- include: alpha-delimiters
- include: other-function-arguments-list-body

blend-adjust-function-arguments-list-body:
- meta_append: true
Expand Down
8 changes: 4 additions & 4 deletions Tests/syntax_test_css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2889,20 +2889,20 @@
color: hwb(0 100% 50% / 1.0);
/* ^^^ support.function.color.css */
// /* ^ punctuation.separator.alpha.css */
/* ^ punctuation.separator.alpha.css */
color: lab(0% 0 0 / 1.0);
/* ^^^ support.function.color.css */
// /* ^ punctuation.separator.alpha.css */
/* ^ punctuation.separator.alpha.css */
color: lch(0% 0.0 0.0 / 1.0);
/* ^^^ support.function.color.css */
/* ^^ meta.number.integer.decimal.css */
/* ^ constant.numeric.value.css */
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
/* ^ punctuation.separator.alpha.css */
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
// /* ^ punctuation.separator.alpha.css */
color: lch(20% 10% 20grad / 100%);
/* ^^^ support.function.color.css */
Expand All @@ -2915,10 +2915,10 @@
/* ^^^^^^ meta.number.integer.decimal.css */
/* ^^ constant.numeric.value.css */
/* ^^^^ constant.numeric.suffix.css */
/* ^ punctuation.separator.alpha.css */
/* ^^^^ meta.number.integer.decimal.css */
/* ^^^ constant.numeric.value.css */
/* ^ constant.numeric.suffix.css */
// /* ^ punctuation.separator.alpha.css */
top: color(w(var()) s(var()) () ));
/* ^^^^^ support.function.color.css */
Expand Down

0 comments on commit a314b4b

Please sign in to comment.