diff --git a/Syntaxes/Less.sublime-syntax b/Syntaxes/Less.sublime-syntax index 75c71d4..088ea2e 100644 --- a/Syntaxes/Less.sublime-syntax +++ b/Syntaxes/Less.sublime-syntax @@ -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 diff --git a/tests/syntax_test_css.less b/tests/syntax_test_css.less index 5a3ece6..90166f4 100644 --- a/tests/syntax_test_css.less +++ b/tests/syntax_test_css.less @@ -2733,11 +2733,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 */ @@ -2745,7 +2745,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%); @@ -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 */