mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
26 Commits
v2.5.0
...
3abb10e722
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3abb10e722 | ||
|
|
6993f12aef | ||
|
|
3ec4a4bb4b | ||
|
|
de15898a87 | ||
|
|
3b20ef3df2 | ||
|
|
dad0fd9dcc | ||
|
|
09920310c3 | ||
|
|
0d6d49c712 | ||
|
|
2fb65e8ac3 | ||
|
|
91b78456d4 | ||
|
|
00138fb097 | ||
|
|
84924b8934 | ||
|
|
24934b32da | ||
|
|
661a91f249 | ||
|
|
50adac88c4 | ||
|
|
1fc1ff5799 | ||
|
|
adbc12f2ee | ||
|
|
2a04f2d27c | ||
|
|
b0bc65e6f8 | ||
|
|
a6133ac2ff | ||
|
|
cc35f339d8 | ||
|
|
4f8d08e82b | ||
|
|
8d496ec664 | ||
|
|
349772545f | ||
|
|
000f04273c | ||
|
|
b7778bc209 |
@@ -1,4 +1,4 @@
|
||||
syn keyword cssFontProp contained anchor-name anchor-scope position-area position-anchor position-try position-try-fallbacks position-try-order position-visibility
|
||||
syn keyword cssFontAttr contained span-left span-right span-x-start span-x-end x-self-start x-self-end span-x-self-start span-x-self-end span-all span-top span-bottom span-y-start span-y-end y-self-start y-self-end span-y-self-start span-y-self-end block-start block-end span-block-start span-block-end self-block-start self-block-end span-self-block-start span-self-block-end inline-start inline-end span-inline-start span-inline-end self-inline-start self-inline-end span-self-inline-start span-self-inline-end span-start span-end self-start self-end span-self-start span-self-end anchor-center most-width most-height most-block-size most-inline-size flip-block flip-inline flip-start
|
||||
syn keyword cssFontAttr contained span-left span-right span-x-start span-x-end self-x-start self-x-end span-self-x-start span-self-x-end span-all span-top span-bottom span-y-start span-y-end self-y-start self-y-end span-self-y-start span-self-y-end block-start block-end span-block-start span-block-end self-block-start self-block-end span-self-block-start span-self-block-end inline-start inline-end span-inline-start span-inline-end self-inline-start self-inline-end span-self-inline-start span-self-inline-end span-start span-end self-start self-end span-self-start span-self-end anchor-center most-width most-height most-block-size most-inline-size flip-block flip-inline flip-start
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<anchor\(-size\)\=\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@position-try\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
1
after/syntax/css/anchor-position-2.vim
Normal file
1
after/syntax/css/anchor-position-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained anchored
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained background-position-x background-position-y background-position-inline background-position-block corners corner-shape border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left
|
||||
syn keyword cssFontAttr contained x-start x-end y-start y-end bevel scoop notch
|
||||
syn keyword cssFontProp contained background-repeat-x background-repeat-y background-repeat-inline background-repeat-block background-position-x background-position-y background-position-inline background-position-block background-tbd
|
||||
syn keyword cssFontAttr contained x-start x-end y-start y-end border-area text repeat-block repeat-inline
|
||||
|
||||
3
after/syntax/css/borders-4.vim
Normal file
3
after/syntax/css/borders-4.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained border-top-radius border-right-radius border-bottom-radius border-left-radius border-block-start-radius border-block-end-radius border-inline-start-radius border-inline-end-radius corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape corner-start-start-shape corner-start-end-shape corner-end-start-shape corner-end-end-shape corner-top-shape corner-right-shape corner-bottom-shape corner-left-shape corner-block-start-shape corner-block-end-shape corner-inline-start-shape corner-inline-end-shape corner-shape corners border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position border-shape
|
||||
syn keyword cssFontAttr contained squircle bevel scoop notch sides corners
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<superellipse\s*(" end=")" oneline keepend
|
||||
3
after/syntax/css/color-hdr-1.vim
Normal file
3
after/syntax/css/color-hdr-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained dynamic-range-limit
|
||||
syn keyword cssFontAttr contained standard constrained-high
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<dynamic-range-limit-mix\s*(" end=")" oneline keepend
|
||||
@@ -1,3 +1,3 @@
|
||||
syn keyword cssFontProp contained container-type container-name container
|
||||
syn keyword cssFontAttr contained inline-size
|
||||
syn match cssFontDescriptor "@\(when\|else\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn match cssFontDescriptor "@\(when\|else\|supports-condition\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
syn keyword cssFontProp contained scroll-behavior
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
2
after/syntax/css/display-4.vim
Normal file
2
after/syntax/css/display-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained reading-flow reading-order
|
||||
syn keyword cssFontAttr contained flex-visual flex-flow grid-rows grid-columns source-order force-hidden
|
||||
1
after/syntax/css/env-1.vim
Normal file
1
after/syntax/css/env-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<env\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
||||
5
after/syntax/css/forms-1.vim
Normal file
5
after/syntax/css/forms-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn keyword cssFontProp contained slider-orientation
|
||||
syn keyword cssFontAttr contained base left-to-right right-to-left top-to-bottom bottom-to-top
|
||||
syn keyword cssPseudoClassId contained picker-icon file-selector-button checkmark thumb track fill field-text clear-icon placeholder step-control step-up step-down field-component field-separator color-swatch low-value high-value optimal-value
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<picker(" end=")" contains=cssStringQ,cssStringQQ
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<control-value\s*(" end=")" oneline keepend
|
||||
2
after/syntax/css/gaps-1.vim
Normal file
2
after/syntax/css/gaps-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained column-rule-break row-rule-break rule-break column-rule-outset row-rule-outset rule-outset rule-paint-order row-rule-color row-rule-style row-rule-width row-rule rule-color rule-style rule-width rule
|
||||
syn keyword cssFontAttr contained spanning-item intersection row-over-column column-over-row
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained masonry-direction masonry-fill masonry-flow masonry masonry-template-tracks masonry-template-areas masonry-auto-tracks masonry-track-start masonry-track-end masonry-track masonry-slack
|
||||
syn keyword cssFontProp contained masonry-direction masonry-fill masonry-flow masonry masonry-template-tracks masonry-template-areas masonry-auto-tracks masonry-track-start masonry-track-end masonry-track masonry-slack item-track item-direction item-wrap item-cross item-pack item-slack item-flow
|
||||
syn keyword cssFontAttr contained masonry inline-masonry
|
||||
|
||||
2
after/syntax/css/mixins-1.vim
Normal file
2
after/syntax/css/mixins-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained result
|
||||
syn match cssFontDescriptor "@function\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
1
after/syntax/css/multicol-2.vim
Normal file
1
after/syntax/css/multicol-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssPseudoClassId contained column
|
||||
@@ -1 +1,2 @@
|
||||
syn keyword cssFontProp contained continue overflow-clip-margin overflow-block overflow-inline scrollbar-gutter block-ellipsis line-clamp max-lines
|
||||
syn keyword cssFontProp contained continue overflow-clip-margin overflow-block overflow-inline scrollbar-gutter block-ellipsis line-clamp max-lines scroll-behavior
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
2
after/syntax/css/overflow-5.vim
Normal file
2
after/syntax/css/overflow-5.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-marker-group
|
||||
syn keyword cssPseudoClassId contained scroll-marker-group scroll-marker target-current
|
||||
2
after/syntax/css/position-4.vim
Normal file
2
after/syntax/css/position-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained overlay
|
||||
syn keyword cssPseudoClassId contained backdrop
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssPseudoClassId contained prefix postfix target-text spelling-error grammer-error file-selectors-button
|
||||
syn keyword cssPseudoClassId contained prefix suffix target-text spelling-error grammer-error file-selectors-button search-text details-content
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn keyword cssFontProp contained shape-outside shape-image-threshold shape-margin
|
||||
syn keyword cssFontAttr contained margin-box
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\|shape\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
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
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|first-valid\|toggle\|if\|inherit\|random\(-item\)\=\|sibling-\(count\|index\)\|calc-size\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
|
||||
syn keyword cssPseudoClassId contained cue cue-region
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline
|
||||
|
||||
195
test/test.css
195
test/test.css
@@ -23,19 +23,19 @@
|
||||
display: span-right;
|
||||
display: span-x-start;
|
||||
display: span-x-end;
|
||||
display: x-self-start;
|
||||
display: x-self-end;
|
||||
display: span-x-self-start;
|
||||
display: span-x-self-end;
|
||||
display: self-x-start;
|
||||
display: self-x-end;
|
||||
display: span-self-x-start;
|
||||
display: span-self-x-end;
|
||||
display: span-all;
|
||||
display: span-top;
|
||||
display: span-bottom;
|
||||
display: span-y-start;
|
||||
display: span-y-end;
|
||||
display: y-self-start;
|
||||
display: y-self-end;
|
||||
display: span-y-self-start;
|
||||
display: span-y-self-end;
|
||||
display: self-y-start;
|
||||
display: self-y-end;
|
||||
display: span-self-y-start;
|
||||
display: span-self-y-end;
|
||||
display: span-block-start;
|
||||
display: span-block-end;
|
||||
display: self-block-start;
|
||||
@@ -60,10 +60,15 @@
|
||||
display: flip-block;
|
||||
display: flip-inline;
|
||||
display: flip-start;
|
||||
display: dialog;
|
||||
display: anchor(--x 50%);
|
||||
display: anchor-size(--foo height);
|
||||
}
|
||||
|
||||
.anchor-position-2 {
|
||||
display: anchored;
|
||||
}
|
||||
|
||||
.animations-1 {
|
||||
display: auto;
|
||||
}
|
||||
@@ -80,10 +85,50 @@
|
||||
}
|
||||
|
||||
.backgrounds-4 {
|
||||
background-repeat-x: auto;
|
||||
background-repeat-y: auto;
|
||||
background-repeat-inline: auto;
|
||||
background-repeat-block: auto;
|
||||
background-position-x: auto;
|
||||
background-position-y: auto;
|
||||
background-position-inline: auto;
|
||||
background-position-block: auto;
|
||||
background-tbd: auto;
|
||||
display: x-start;
|
||||
display: x-end;
|
||||
display: y-start;
|
||||
display: y-end;
|
||||
display: border-area;
|
||||
display: text;
|
||||
display: repeat-block;
|
||||
display: repeat-inline;
|
||||
}
|
||||
|
||||
.borders-4 {
|
||||
border-top-radius: auto;
|
||||
border-right-radius: auto;
|
||||
border-bottom-radius: auto;
|
||||
border-left-radius: auto;
|
||||
border-block-start-radius: auto;
|
||||
border-block-end-radius: auto;
|
||||
border-inline-start-radius: auto;
|
||||
border-inline-end-radius: auto;
|
||||
corner-top-left-shape: auto;
|
||||
corner-top-right-shape: auto;
|
||||
corner-bottom-right-shape: auto;
|
||||
corner-bottom-left-shape: auto;
|
||||
corner-start-start-shape: auto;
|
||||
corner-start-end-shape: auto;
|
||||
corner-end-start-shape: auto;
|
||||
corner-end-end-shape: auto;
|
||||
corner-top-shape: auto;
|
||||
corner-right-shape: auto;
|
||||
corner-bottom-shape: auto;
|
||||
corner-left-shape: auto;
|
||||
corner-inline-start-shape: auto;
|
||||
corner-inline-end-shape: auto;
|
||||
corner-block-start-shape: auto;
|
||||
corner-block-end-shape: auto;
|
||||
corner-shape: auto;
|
||||
corners: auto;
|
||||
border-limit: auto;
|
||||
@@ -92,13 +137,19 @@
|
||||
border-clip-right: auto;
|
||||
border-clip-bottom: auto;
|
||||
border-clip-left: auto;
|
||||
display: x-start;
|
||||
display: x-end;
|
||||
display: y-start;
|
||||
display: y-end;
|
||||
box-shadow-color: auto;
|
||||
box-shadow-offset: auto;
|
||||
box-shadow-blur: auto;
|
||||
box-shadow-spread: auto;
|
||||
box-shadow-position: auto;
|
||||
border-shape: auto;
|
||||
display: squircle;
|
||||
display: bevel;
|
||||
display: scoop;
|
||||
display: notch;
|
||||
display: superellipse(1);
|
||||
display: sides;
|
||||
display: corners;
|
||||
}
|
||||
|
||||
.box-3 {
|
||||
@@ -176,6 +227,13 @@
|
||||
display: exact;
|
||||
}
|
||||
|
||||
.color-hdr-1 {
|
||||
dynamic-range-limit: auto;
|
||||
display: standard;
|
||||
display: constrained-high;
|
||||
display: dynamic-range-limit-mix(standard 10%, constrained-high 40%, high 50%);
|
||||
}
|
||||
|
||||
.compositing-1 {
|
||||
mix-blend-mode: auto;
|
||||
isolation: auto;
|
||||
@@ -224,6 +282,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
@supports-condition --thicker-underlines {
|
||||
.conditional-5 {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.contain-1 {
|
||||
contain: auto;
|
||||
display: layout;
|
||||
@@ -310,11 +374,10 @@
|
||||
}
|
||||
|
||||
.cssom-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.cssom-view-1 {
|
||||
scroll-behavior: smooth;
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.device-adapt-1 {
|
||||
@@ -332,6 +395,17 @@
|
||||
display: run-in;
|
||||
}
|
||||
|
||||
.display-4 {
|
||||
reading-flow: auto;
|
||||
reading-order: auto;
|
||||
display: flex-visual;
|
||||
display: flex-flow;
|
||||
display: grid-rows;
|
||||
display: grid-columns;
|
||||
display: source-order;
|
||||
display: force-hidden;
|
||||
}
|
||||
|
||||
.easing-1 {
|
||||
display: auto;
|
||||
}
|
||||
@@ -340,6 +414,10 @@
|
||||
display: linear(0, 0.25, 1);
|
||||
}
|
||||
|
||||
.env-1 {
|
||||
display: env(foo, red, blue);
|
||||
}
|
||||
|
||||
.exclusions-3 {
|
||||
wrap-flow: auto;
|
||||
wrap-through: auto;
|
||||
@@ -482,6 +560,57 @@
|
||||
override-color: 1 rgb(43, 12, 9);
|
||||
}
|
||||
|
||||
.forms-1::picker(select),
|
||||
.forms-1::picker-icon,
|
||||
.forms-1::file-selector-button,
|
||||
.forms-1::checkmark,
|
||||
.forms-1::thumb,
|
||||
.forms-1::track,
|
||||
.forms-1::fill
|
||||
.forms-1::field-text,
|
||||
.forms-1::clear-icon,
|
||||
.forms-1::placeholder,
|
||||
.forms-1::field-text,
|
||||
.forms-1::step-control,
|
||||
.forms-1::step-up,
|
||||
.forms-1::step-down,
|
||||
.forms-1::field-component,
|
||||
.forms-1::field-separator,
|
||||
.forms-1::color-swatch,
|
||||
.forms-1:low-value,
|
||||
.forms-1:high-value,
|
||||
.forms-1:optimal-value {
|
||||
slider-orientation: auto;
|
||||
display: base;
|
||||
display: control-value(<number>);
|
||||
display: left-to-right;
|
||||
display: right-to-left;
|
||||
display: top-to-bottom;
|
||||
display: bottom-to-top;
|
||||
}
|
||||
|
||||
.gaps-1 {
|
||||
column-rule-break: auto;
|
||||
row-rule-break: auto;
|
||||
rule-break: auto;
|
||||
column-rule-outset: auto;
|
||||
row-rule-outset: auto;
|
||||
rule-outset: auto;
|
||||
rule-paint-order: auto;
|
||||
row-rule-color: auto;
|
||||
row-rule-style: auto;
|
||||
row-rule-width: auto;
|
||||
row-rule: auto;
|
||||
rule-color: auto;
|
||||
rule-style: auto;
|
||||
rule-width: auto;
|
||||
rule: auto;
|
||||
display: spanning-item;
|
||||
display: intersection;
|
||||
display: row-over-column;
|
||||
display: column-over-row;
|
||||
}
|
||||
|
||||
.gcpm-3::footnote-call,
|
||||
.gcpm-3::footnote-marker {
|
||||
running: auto;
|
||||
@@ -521,6 +650,13 @@
|
||||
masonry-track-end: auto;
|
||||
masonry-track: auto;
|
||||
masonry-slack: auto;
|
||||
item-track: auto;
|
||||
item-direction: auto;
|
||||
item-wrap: auto;
|
||||
item-cross: auto;
|
||||
item-pack: auto;
|
||||
item-slack: auto;
|
||||
item-flow: auto;
|
||||
display: masonry;
|
||||
display: inline-masonry;
|
||||
}
|
||||
@@ -690,6 +826,10 @@ mask {
|
||||
mask-type: auto;
|
||||
}
|
||||
|
||||
@function mixins-1() {
|
||||
result: auto;
|
||||
}
|
||||
|
||||
.motion-1 {
|
||||
offset-path: auto;
|
||||
offset-distance: auto;
|
||||
@@ -705,6 +845,10 @@ mask {
|
||||
display: balance-all;
|
||||
}
|
||||
|
||||
.multicol-2::column {
|
||||
display: auto:
|
||||
}
|
||||
|
||||
.namespace-3 {
|
||||
display: auto;
|
||||
}
|
||||
@@ -722,9 +866,11 @@ mask {
|
||||
overflow-inline: auto;
|
||||
scrollbar-gutter: auto;
|
||||
block-ellipsis: auto;
|
||||
scroll-behavior: auto;
|
||||
line-clamp: auto;
|
||||
max-lines: auto;
|
||||
continue: auto;
|
||||
display: smooth;
|
||||
}
|
||||
|
||||
.overflow-4::nth-fragment(1) {
|
||||
@@ -745,6 +891,12 @@ mask {
|
||||
display: fragments;
|
||||
}
|
||||
|
||||
.overflow-5::scroll-marker-group,
|
||||
.overflow-5::scroll-marker,
|
||||
.overflow-5:target-current {
|
||||
sroll-marker-group: auto;
|
||||
}
|
||||
|
||||
.overscroll-1 {
|
||||
overscroll-behavior: auto;
|
||||
overscroll-behavior-block: auto;
|
||||
@@ -792,6 +944,10 @@ mask {
|
||||
inset: auto;
|
||||
}
|
||||
|
||||
.position-4::backdrop {
|
||||
overlay: auto;
|
||||
}
|
||||
|
||||
.properties-values-api-1 {
|
||||
syntax: auto;
|
||||
inherits: auto;
|
||||
@@ -799,11 +955,13 @@ mask {
|
||||
}
|
||||
|
||||
.pseudo-4::first-letter::prefix,
|
||||
.pseudo-4::first-letter::postfix,
|
||||
.pseudo-4::first-letter::suffix,
|
||||
.pseudo-4::target-text,
|
||||
.pseudo-4::spelling-error,
|
||||
.pseudo-4::grammer-error,
|
||||
.pseudo-4::file-selectors-button {
|
||||
.pseudo-4::file-selectors-button,
|
||||
.pseudo-4::search-text,
|
||||
.pseudo-4::details-content {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
@@ -1012,10 +1170,11 @@ mask {
|
||||
display: circle(100px 50px 100px);
|
||||
display: ellipse(0 0 250px 100px);
|
||||
display: polygon(0 0, 100% 100%, 0 100%);
|
||||
display: shape(from 0% 0%, hline to 100%, line to 0% 100%, vline to 0%);
|
||||
}
|
||||
|
||||
.sizing-3 {
|
||||
display: auto;
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.sizing-4 {
|
||||
@@ -1383,6 +1542,8 @@ view {
|
||||
display: cross-fade(15%, url(foo.png), white);
|
||||
display: toggle(italic, normal);
|
||||
display: first-valid(center, none, 1px);
|
||||
display: if(media(screen): red; else: auto);
|
||||
display: inherit(--foo, auto);
|
||||
display: random(1, 10, by 1);
|
||||
display: random-item(--x, red, yellow, green);
|
||||
display: sibling-count();
|
||||
|
||||
Reference in New Issue
Block a user