Skip to content

Commit ba80029

Browse files
committed
1 parent d8ad25f commit ba80029

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

after/syntax/css/color-5.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
syn keyword cssFontProp contained components
22
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
3-
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\|device-cmyk\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
3+
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-mix\|device-cmyk\|light-dark\|contrast-color\)\>\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
44
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl

test/test.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
.color-5 {
101101
display: device-cmyk(0, 81%, 81%, 30%);
102102
display: color-mix(red yellow 65%);
103+
display: light-dark(white, black);
104+
display: contrast-color(red max);
103105
}
104106

105107
@color-profile swopc {

0 commit comments

Comments
 (0)