mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2026-03-25 14:17:39 +08:00
Add selectors-5.vim
https://www.w3.org/TR/2026/WD-selectors-5-20260217/
This commit is contained in:
4
after/syntax/css/selectors-5.vim
Normal file
4
after/syntax/css/selectors-5.vim
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
syn match cssSelectorOp "[||]"
|
||||||
|
syn match cssSelectorOp "/[a-z:]\+/"
|
||||||
|
syn keyword cssPseudoClassId contained defined local-link interest-source interest-target blank current past future heading
|
||||||
|
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(state\|headings\|nth-col\|nth-last-col\)(" end=")" oneline
|
||||||
@@ -1149,6 +1149,23 @@ mask {
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selectors-5:local-link,
|
||||||
|
.selectors-5:interest-source,
|
||||||
|
.selectors-5:interest-target,
|
||||||
|
.selectors-5:blank,
|
||||||
|
.selectors-5:current,
|
||||||
|
.selectors-5:past,
|
||||||
|
.selectors-5:future,
|
||||||
|
.selectors-5:state(loading),
|
||||||
|
.selectors-5:heading,
|
||||||
|
.selectors-5:headings(1, 3, 5),
|
||||||
|
.selectors-5 || .foo,
|
||||||
|
.selectors-5:nth-col(1),
|
||||||
|
.selectors-5:nth-last-col(1),
|
||||||
|
.selectors-5 /for/ .foo {
|
||||||
|
display: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.shadow-parts::part(textspan) {
|
.shadow-parts::part(textspan) {
|
||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user