Skip to content

Commit bd960e5

Browse files
authored
Merge pull request #4 from argyleink/color-function-updates
Color function updates
2 parents 092c72b + 90038c6 commit bd960e5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

grammars/css.cson

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@
828828
}
829829
# Colours
830830
{
831-
'begin': '(?i)(?<![\\w-])(rgba?|hsla?|hwb|lab|lch)(\\()'
831+
'begin': '(?i)(?<![\\w-])(rgba?|rgb|hsla?|hsl|hwb|lab|oklab|lch|oklch|color)(\\()'
832832
'beginCaptures':
833833
'1':
834834
'name': 'support.function.misc.css'
@@ -868,7 +868,7 @@
868868
'name': 'meta.function.gradient.css'
869869
'patterns': [
870870
{
871-
'match': '(?i)(?<![\\w-])(from|to|at)(?![\\w-])'
871+
'match': '(?i)(?<![\\w-])(from|to|at|in|hue)(?![\\w-])'
872872
'name': 'keyword.operator.gradient.css'
873873
}
874874
{
@@ -916,7 +916,7 @@
916916
{
917917
'begin': '''(?xi) (?<![\\w-])
918918
(annotation|attr|blur|brightness|character-variant|clamp|contrast|counters?
919-
|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate
919+
|cross-fade|drop-shadow|element|fit-content|format|grayscale|hue-rotate|color-mix
920920
|image-set|invert|local|max|min|minmax|opacity|ornaments|repeat|saturate|sepia
921921
|styleset|stylistic|swash|symbols)
922922
(\\()

0 commit comments

Comments
 (0)