Skip to content

Commit 5c81b99

Browse files
committed
Add missing #RRGGBBAA notation support
1 parent 519acb0 commit 5c81b99

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

after/syntax/css/css-color-4.vim

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
syn match cssColorProp contained "\<color-adjust\>"
22
syn keyword cssColor contained rebeccapurple
3+
syn match cssColor contained "#[0-9A-Fa-f]\{8\}\>" contains=cssUnitDecorators
34
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\|color-mod\=\)\s*(" end=")" oneline keepend
45
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl

test/test.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
}
9999

100100
.color-4 {
101-
color-adjust: rebeccapurple;
101+
color-adjust: #FFEEDDFF;
102+
display: rebeccapurple;
102103
display: hwb(120deg, 44%, 50%);
103104
display: lab(1 2 3);
104105
display: lch(4 5 6);

test/test.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@
117117
}
118118

119119
.color-4 {
120-
color-adjust: rebeccapurple;
120+
color-adjust: #FFEEDDFF;
121+
display: rebeccapurple;
121122
display: hwb(120deg, 44%, 50%);
122123
display: lab(1 2 3);
123124
display: lch(4 5 6);

0 commit comments

Comments
 (0)