Skip to content

Commit bb7af83

Browse files
committed
Fix alpha delimiter
1 parent 0388b42 commit bb7af83

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Syntaxes/Less.sublime-syntax

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@ contexts:
305305
- include: comments
306306
- include: var-functions
307307

308+
hsl-color-function-arguments-list-body:
309+
- meta_content_scope: meta.function-call.arguments.css meta.group.css
310+
- include: alpha-delimiters
311+
- include: other-function-arguments-list-body
312+
313+
rgb-color-function-arguments-list-body:
314+
- meta_content_scope: meta.function-call.arguments.css meta.group.css
315+
- include: alpha-delimiters
316+
- include: other-function-arguments-list-body
317+
308318
url-function-arguments-list-body:
309319
- meta_content_scope: meta.function-call.arguments.css meta.group.css
310320
- include: css-function-arguments-prototype

tests/syntax_test_css.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,19 +2753,19 @@
27532753
/* note: we can't distinguish operators from alpha-separator; */
27542754
color: hwb(0 100% 50% / 1.0);
27552755
/* ^^^ support.function.color.css */
2756-
/* ^ keyword.operator.arithmetic.less */
2756+
/* ^ punctuation.separator.alpha.css */
27572757

27582758
color: lab(0% 0 0 / 1.0);
27592759
/* ^^^ support.function.color.css */
2760-
/* ^ keyword.operator.arithmetic.less */
2760+
/* ^ punctuation.separator.alpha.css */
27612761

27622762
color: lch(0% 0.0 0.0 / 1.0);
27632763
/* ^^^ support.function.color.css */
27642764
/* ^^ meta.number.integer.decimal.css */
27652765
/* ^ constant.numeric.value.css */
27662766
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
27672767
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
2768-
/* ^ keyword.operator.arithmetic.less */
2768+
/* ^ punctuation.separator.alpha.css */
27692769
/* ^^^ meta.number.float.decimal.css constant.numeric.value.css */
27702770

27712771
color: lch(20% 10% 20grad / 100%);
@@ -2779,7 +2779,7 @@
27792779
/* ^^^^^^ meta.number.integer.decimal.css */
27802780
/* ^^ constant.numeric.value.css */
27812781
/* ^^^^ constant.numeric.suffix.css */
2782-
/* ^ keyword.operator.arithmetic.less */
2782+
/* ^ punctuation.separator.alpha.css */
27832783
/* ^^^^ meta.number.integer.decimal.css */
27842784
/* ^^^ constant.numeric.value.css */
27852785
/* ^ constant.numeric.suffix.css */

0 commit comments

Comments
 (0)