diff --git a/after/syntax/css/values-5.vim b/after/syntax/css/values-5.vim index f8729da..6efee8d 100644 --- a/after/syntax/css/values-5.vim +++ b/after/syntax/css/values-5.vim @@ -1 +1,3 @@ -syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|toggle\)\s*(" end=")" oneline keepend +syn keyword cssFontProp contained interpolate-size +syn keyword cssFontAttr contained numeric-only allow-keyword +syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|first-valid\|toggle\|random\(-item\)\=\|sibling-\(count\|index\)\|calc-size\)\s*(" end=")" oneline keepend diff --git a/test/test.css b/test/test.css index 8cab37b..1444a4e 100644 --- a/test/test.css +++ b/test/test.css @@ -1354,6 +1354,9 @@ view { } .values-5 { + interpolate-size: auto; + display: numeric-only; + display: allow-keyword; display: progress(1, 0, 100); display: media-progress(width, 0, 100); display: container-progress(width, 0, 100); @@ -1363,6 +1366,12 @@ view { display: mix(90%, red, blue); display: cross-fade(15%, url(foo.png), white); display: toggle(italic, normal); + display: first-valid(center, none, 1px); + display: random(1, 10, by 1); + display: random-item(--x, red, yellow, green); + display: sibling-count(); + display: sibling-index(); + display: calc-size(any, 0px); } .variables-1 {