diff --git a/after/syntax/css/css3-selectors.vim b/after/syntax/css/css3-selectors.vim index 3f98e5a..a39feb1 100644 --- a/after/syntax/css/css3-selectors.vim +++ b/after/syntax/css/css3-selectors.vim @@ -1,5 +1,8 @@ -syn keyword cssPseudoClassId contained target enabled disabled checked indeterminate root empty +syn keyword cssPseudoClassId contained target scope current past future enabled disabled checked indeterminate default required optional root empty blank +syn match cssPseudoClassId contained "\<\(any\|local\)-link\>" +syn match cssPseudoClassId contained "\<\(in\|out-of\)-range\>" +syn match cssPseudoClassId contained "\" syn match cssPseudoClassId contained "\" syn match cssPseudoClassId contained "\" syn match cssPseudoClassId contained "\" -syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth\(-last\)\=-\(child\|of-type\)\|not\)(" end=")" oneline +syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(not\|matches\|current\|local-link\|nth\(-last\)\=-\(child\|of-type\|match\|column\)\|column\)(" end=")" oneline diff --git a/test/test.css b/test/test.css index a6f909d..4552efd 100644 --- a/test/test.css +++ b/test/test.css @@ -345,23 +345,44 @@ display: line-edge; } +.selectors:not([DISABLED]), +.selectors:matches(:hover, :focus), +.selectors:any-link, +.selectors:local-link, +.selectors:local-link(0), .selectors:target, +.selectors:scope, +.selectors:current, +.selectors:current(p, li, dt, dd), +.selectors:past, +.selectors:future, .selectors:enabled, .selectors:disabled, .selectors:checked, .selectors:indeterminate, +.selectors:default, +.selecors:in-range, +.selectors:out-of-range, +.selectors:required, +.selectors:optional, +.selectors:read-only, +.selectors:read-write, .selectors:root, .selectors:empty, -.selectors:first-of-type, -.selectors:last-child, -.selectors:last-of-type, -.selectors:only-child, -.selectors:only-of-type, .selectors:nth-child(2n+1), -.selectors:nth-of-type(odd), -.selectors:nth-last-child(2n+0), -.selectors:nth-last-of-type(even), -.selectors:not([DISABLED]), { +.selectors:last-child, +.selectors:nth-last-child(-n+2), +.selectors:only-child, +.selectors:first-of-type, +.selectors:nth-of-type(2n+1), +.selectors:last-of-type, +.selectors:nth-last-of-type(n+2), +.selectors:only-of-type, +.selectors:nth-match(2n+1), +.selectors:nth-last-match(-n+2), +.selectors:column(p, li, dt, dd), +.selectors:nth-column(2n+1), +.selectors:nth-last-column(-n+2) { display: auto; }