diff --git a/Syntaxes/Less.sublime-syntax b/Syntaxes/Less.sublime-syntax index cf1855f..f8e859c 100644 --- a/Syntaxes/Less.sublime-syntax +++ b/Syntaxes/Less.sublime-syntax @@ -305,6 +305,16 @@ contexts: - include: comments - 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 diff --git a/tests/syntax_test_css.less b/tests/syntax_test_css.less index 920f5f3..c3d073c 100644 --- a/tests/syntax_test_css.less +++ b/tests/syntax_test_css.less @@ -2753,11 +2753,11 @@ /* 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 */ @@ -2765,7 +2765,7 @@ /* ^ 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%); @@ -2779,7 +2779,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 */