Skip to content

Commit 309ded1

Browse files
authored
runtime(css): Update pseudo-classes in syntax script (#11595)
1 parent 9fa35b1 commit 309ded1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

runtime/syntax/css.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,12 @@ syn match cssAttrComma ","
452452
" Pseudo class
453453
" https://www.w3.org/TR/selectors-4/
454454
syn match cssPseudoClass ":[A-Za-z0-9_-]*" contains=cssNoise,cssPseudoClassId,cssUnicodeEscape,cssVendor,cssPseudoClassFn
455-
syn keyword cssPseudoClassId contained link visited active hover before after left right
456-
syn keyword cssPseudoClassId contained root empty target enabled disabled checked invalid
455+
syn keyword cssPseudoClassId contained link visited active hover before after left right any-link
456+
syn keyword cssPseudoClassId contained root empty target enabled disabled checked invalid default defined autofill fullscreen host indeterminate in-range modal optional out-of-range picture-in-picture placeholder-shown paused playing read-only read-write required scope
457457
syn match cssPseudoClassId contained "\<first-\(line\|letter\)\>"
458458
syn match cssPseudoClassId contained "\<\(first\|last\|only\)-\(of-type\|child\)\>"
459459
syn match cssPseudoClassId contained "\<focus\(-within\|-visible\)\=\>"
460-
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<\(not\|is\|lang\|\(nth\|nth-last\)-\(of-type\|child\)\)(" end=")" contains=cssStringQ,cssStringQQ,cssTagName,cssAttributeSelector,cssClassName,cssIdentifier
460+
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<\(where\|has\|host\|not\|is\|lang\|\(nth\|nth-last\)-\(of-type\|child\)\)(" end=")" contains=cssStringQ,cssStringQQ,cssTagName,cssAttributeSelector,cssClassName,cssIdentifier
461461
" ------------------------------------
462462
" Vendor specific properties
463463
syn match cssPseudoClassId contained "\<selection\>"

0 commit comments

Comments
 (0)