Update color-4.vim and color-5.vim

https://www.w3.org/TR/2022/CRD-css-color-4-20221101/
This commit is contained in:
Kyo Nagashima
2022-11-03 07:32:28 +09:00
parent 803765eb47
commit 5dc940911d
3 changed files with 17 additions and 12 deletions

View File

@@ -1,3 +1,2 @@
syn keyword cssFontAttr contained perceptual accentcolor accentcolortext relative-colorimetric absolute-colorimetric
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
syn keyword cssFontAttr contained accentcolor accentcolortext
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|oklab\|oklch\|color\=\)\s*(" end=")" oneline keepend

View File

@@ -1 +1,4 @@
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
syn keyword cssFontProp contained components
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\|device-cmyk\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl