Skip to content

Commit

Permalink
Merge branch 'st4107'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Mar 16, 2024
2 parents 6ee5ee4 + bb7af83 commit 759d7f5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Syntaxes/Less.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,16 @@ contexts:
- include: calc-functions
- include: var-functions

hsl-color-function-arguments-list-body:
- 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_content_scope: meta.function-call.arguments.css meta.group.css
- include: alpha-delimiters
- include: other-function-arguments-list-body

url-function-arguments-list-body:
- meta_content_scope: meta.function-call.arguments.css meta.group.css
- include: css-function-arguments-prototype
Expand Down
8 changes: 4 additions & 4 deletions tests/syntax_test_css.less
Original file line number Diff line number Diff line change
Expand Up @@ -2733,19 +2733,19 @@
/* note: we can't distinguish operators from alpha-separator; */
color: hwb(0 100% 50% / 1.0);
/* ^^^ support.function.color.css */
/* ^ keyword.operator.arithmetic.less */
/* ^ punctuation.separator.alpha.css */

color: lab(0% 0 0 / 1.0);
/* ^^^ support.function.color.css */
/* ^ keyword.operator.arithmetic.less */
/* ^ 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 */
/* ^ keyword.operator.arithmetic.less */
/* ^ punctuation.separator.alpha.css */
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */

color: lch(20% 10% 20grad / 100%);
Expand All @@ -2759,7 +2759,7 @@
/* ^^^^^^ meta.number.integer.decimal.css */
/* ^^ constant.numeric.value.css */
/* ^^^^ constant.numeric.suffix.css */
/* ^ keyword.operator.arithmetic.less */
/* ^ punctuation.separator.alpha.css */
/* ^^^^ meta.number.integer.decimal.css */
/* ^^^ constant.numeric.value.css */
/* ^ constant.numeric.suffix.css */
Expand Down

0 comments on commit 759d7f5

Please sign in to comment.