runtime(css): Update pseudo-classes in syntax script (#11595)
Commit:
https://github.com/vim/vim/commit/309ded19543c140375b28ef562257e9f22c918c6
Author: Adrian Heine né Lang <[email protected]>
Date: Sun Aug 20 21:23:18 2023 +0200
runtime(css): Update pseudo-classes in syntax script
(https://github.com/vim/vim/issues/11595)
diff --git a/runtime/syntax/css.vim b/runtime/syntax/css.vim
index 564dc151b..f8104ea2c 100644
--- a/runtime/syntax/css.vim
+++ b/runtime/syntax/css.vim
@@ -452,12 +452,12 @@ syn match cssAttrComma ","
" Pseudo class
" https://www.w3.org/TR/selectors-4/
syn match cssPseudoClass ":[A-Za-z0-9_-]*"
contains=cssNoise,cssPseudoClassId,cssUnicodeEscape,cssVendor,cssPseudoClassFn
-syn keyword cssPseudoClassId contained link visited active hover before after
left right
-syn keyword cssPseudoClassId contained root empty target enabled disabled
checked invalid
+syn keyword cssPseudoClassId contained link visited active hover before after
left right any-link
+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
syn match cssPseudoClassId contained "\<first-\(line\|letter\)\>"
syn match cssPseudoClassId contained
"\<\(first\|last\|only\)-\(of-type\|child\)\>"
syn match cssPseudoClassId contained "\<focus\(-within\|-visible\)\=\>"
-syn region cssPseudoClassFn contained matchgroup=cssFunctionName
start="\<\(not\|is\|lang\|\(nth\|nth-last\)-\(of-type\|child\)\)(" end=")"
contains=cssStringQ,cssStringQQ,cssTagName,cssAttributeSelector,cssClassName,cssIdentifier
+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
" ------------------------------------
" Vendor specific properties
syn match cssPseudoClassId contained "\<selection\>"
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1qXo7k-00AvT4-8m%40256bit.org.