mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 19:44:45 +08:00
Compare commits
30 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
44dd2e6bad | ||
|
|
af20714f72 | ||
|
|
f136721a00 | ||
|
|
ba8002926e | ||
|
|
d8ad25fdb6 | ||
|
|
b73d5028a8 | ||
|
|
3cd856659d | ||
|
|
3bc2e593b7 | ||
|
|
30ef43aed3 | ||
|
|
e06bde335f | ||
|
|
b7a3c55721 | ||
|
|
ab6d5e11e5 | ||
|
|
f933340233 | ||
|
|
60ff15a81e | ||
|
|
61bc815f2b | ||
|
|
d858def9c1 | ||
|
|
f0df5f02f3 | ||
|
|
acfbaf8302 | ||
|
|
539eaac21a | ||
|
|
262749f063 | ||
|
|
ed79b7a86b | ||
|
|
0a0b8ded19 | ||
|
|
5a208f54d6 | ||
|
|
2169136247 | ||
|
|
0d6855dbe4 | ||
|
|
c8e71253f9 | ||
|
|
b27f324d6d | ||
|
|
3482b4608c | ||
|
|
17a022b528 | ||
|
|
be78408dea |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: [hail2u]
|
||||
4
after/syntax/css/anchor-position-1.vim
Normal file
4
after/syntax/css/anchor-position-1.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn keyword cssFontProp contained anchor-name anchor-scope inset-area position-anchor position-try position-try-options position-try-order
|
||||
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 implicit 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
|
||||
2
after/syntax/css/animations-2.vim
Normal file
2
after/syntax/css/animations-2.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained animation-composition animation-timeline
|
||||
syn keyword cssFontAttr contained replace accumulate
|
||||
@@ -1,4 +1,4 @@
|
||||
syn keyword cssFontProp contained components
|
||||
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<color-mix\|device-cmyk\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-mix\|device-cmyk\|light-dark\|contrast-color\)\>\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
syn keyword cssFontProp contained font-synthesis font-synthesis-weight font-synthesis-style font-synthesis-small-caps font-synthesis-settings font-named-instance font-display ascent-override descent-override line-gap-override font-optical-sizing font-variation-settings font-palette font-variant-emoji font-presentation base-palette override-color
|
||||
syn keyword cssFontProp contained font-synthesis font-synthesis-weight font-synthesis-style font-synthesis-small-caps font-synthesis-position font-named-instance font-display ascent-override descent-override line-gap-override font-optical-sizing font-variation-settings font-palette font-variant-emoji font-presentation base-palette override-color
|
||||
syn keyword cssFontAttr contained emoji math fangsong swap fallback light dark contained system-ui contained ui-sans-serif ui-serif ui-monospace ui-rounded contained xxx-large contained historical-forms
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@font-feature-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained dominant-baseline alignment-baseline baseline-shift baseline-source text-edge leading-trim inline-sizing initial-letter initial-letter-align initial-letter-wrap
|
||||
syn keyword cssFontProp contained dominant-baseline alignment-baseline baseline-shift baseline-source text-box-edge text-box-trim inline-sizing initial-letter initial-letter-align initial-letter-wrap
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise ideographic ideographic-ink
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
syn keyword cssFontProp contained overflow-clip-margin-block overflow-clip-margin-block-start overflow-clip-margin-block-end overflow-clip-margin-inline overflow-clip-margin-inline-start overflow-clip-margin-inline-end overflow-clip-margin-top overflow-clip-margin-right overflow-clip-margin-bottom overflow-clip-margin-left
|
||||
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssFontProp contained marks bleed
|
||||
syn keyword cssFontProp contained marks bleed page-orientation
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-timeline-name scroll-timeline-axis scroll-timeline view-timeline-name view-timeline-axis view-timeline-inset view-timeline animation-range animation-delay-start animation-delay-end
|
||||
syn keyword cssFontAttr contained entry exit
|
||||
syn keyword cssFontProp contained scroll-timeline-name scroll-timeline-axis scroll-timeline view-timeline-name view-timeline-axis view-timeline-inset view-timeline animation-range animation-delay-start animation-delay-end timeline-scope
|
||||
syn keyword cssFontAttr contained entry exit defer ancestor
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn keyword cssFontProp contained voice-volume voice-balance voice-rate voice-pitch voice-range voice-stress voice-duration rest rest-before rest-after
|
||||
syn keyword cssFontAttr contained young old neutral preserve moderate reduced literal-punctuation no-punctuation weak x-weak strong x-strong
|
||||
syn keyword cssFontAttr contained young old neutral preserve moderate reduced literal-punctuation no-punctuation weak x-weak strong x-strong never
|
||||
syn match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssFontProp contained text-space-collapse text-space-trim text-wrap text-spacing text-group-align wrap-before wrap-after wrap-inside hyphenate-character hyphenate-limit-zone hyphenate-limit-chars hyphenate-limit-lines hyphenate-limit-last line-padding word-boundary-detection word-boundary-expansion
|
||||
syn keyword cssFontAttr contained spread punctuation preserve-breaks preserve-spaces discard-inner discard-before discard-after avoid-line avoid-flex pre-wrap-auto no-limit trim-start trim-end trim-adjacent space-start space-end space-adjacent space-first no-compress ideograph-alpha ideograph-numeric ideographic-space
|
||||
syn keyword cssFontProp contained white-space-collapse white-space-trim text-space-trim text-wrap text-autospace text-spacing-trim text-spacing text-group-align wrap-before wrap-after wrap-inside hyphenate-character hyphenate-limit-zone hyphenate-limit-chars hyphenate-limit-lines hyphenate-limit-last line-padding word-boundary-detection word-space-transform
|
||||
syn keyword cssFontAttr contained spread punctuation preserve-breaks preserve-spaces discard-inner discard-before discard-after pretty avoid-line avoid-flex pre-wrap-auto no-limit space-all trim-auto space-first trim-all no-compress ideograph-alpha ideograph-numeric ideographic-space
|
||||
|
||||
1
after/syntax/css/transitions-2.vim
Normal file
1
after/syntax/css/transitions-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontDescriptor "@\(starting-style\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(rex\|cap\|rcap\|rch\|ic\|ric\|lh\|rlh\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(s\|l\|d\)\=v\(h\|w\|i\|b\|min\|max\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(mix\|min\|max\|clamp\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
|
||||
0
after/syntax/css/web-animations-2.vim
Normal file
0
after/syntax/css/web-animations-2.vim
Normal file
109
test/test.css
109
test/test.css
@@ -10,10 +10,71 @@
|
||||
display: legacy;
|
||||
}
|
||||
|
||||
@position-try --anchor-position-1 {
|
||||
anchor-name: auto;
|
||||
anchor-scope: auto;
|
||||
inset-area: auto;
|
||||
position-anchor: auto;
|
||||
position-try: auto;
|
||||
position-try-options: auto;
|
||||
position-try-order: auto;
|
||||
display: span-left;
|
||||
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: 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: span-block-start;
|
||||
display: span-block-end;
|
||||
display: self-block-start;
|
||||
display: self-block-end;
|
||||
display: span-self-block-start;
|
||||
display: span-self-block-end;
|
||||
display: span-inline-start;
|
||||
display: span-inline-end;
|
||||
display: self-inline-start;
|
||||
display: self-inline-end;
|
||||
display: span-self-inline-start;
|
||||
display: span-self-inline-end;
|
||||
display: span-start;
|
||||
display: span-end;
|
||||
display: span-self-start;
|
||||
display: span-self-end;
|
||||
display: implicit;
|
||||
display: anchor-center;
|
||||
display: most-width;
|
||||
display: most-height;
|
||||
display: most-block-size;
|
||||
display: most-inline-size;
|
||||
display: flip-block;
|
||||
display: flip-inline;
|
||||
display: flip-start;
|
||||
display: anchor(--x 50%);
|
||||
display: anchor-size(--foo height);
|
||||
}
|
||||
|
||||
.animations-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.animations-2 {
|
||||
animation-composition: auto;
|
||||
animation-timeline: auto;
|
||||
display: replace;
|
||||
display: accumulate;
|
||||
}
|
||||
|
||||
.backgrounds-3 {
|
||||
display: auto;
|
||||
}
|
||||
@@ -93,6 +154,8 @@
|
||||
.color-5 {
|
||||
display: device-cmyk(0, 81%, 81%, 30%);
|
||||
display: color-mix(red yellow 65%);
|
||||
display: light-dark(white, black);
|
||||
display: contrast-color(red max);
|
||||
}
|
||||
|
||||
@color-profile swopc {
|
||||
@@ -364,10 +427,10 @@
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
font-synthesis-position: auto;
|
||||
font-synthesis-weight: auto;
|
||||
font-synthesis-style: auto;
|
||||
font-synthesis-small-caps: auto;
|
||||
font-variation-settings: auto;
|
||||
font-named-instance: auto;
|
||||
font-display: auto;
|
||||
ascent-override: auto;
|
||||
@@ -472,8 +535,8 @@ template {
|
||||
alignment-baseline: auto;
|
||||
baseline-source: auto;
|
||||
baseline-shift: auto;
|
||||
text-edge: auto;
|
||||
leading-trim: auto;
|
||||
text-box-edge: auto;
|
||||
text-box-trim: auto;
|
||||
inline-sizing: auto;
|
||||
initial-letter: auto;
|
||||
initial-letter-align: auto;
|
||||
@@ -637,6 +700,16 @@ mask {
|
||||
}
|
||||
|
||||
.overflow-4::nth-fragment(1) {
|
||||
overflow-clip-margin-block: auto;
|
||||
overflow-clip-margin-block-start: auto;
|
||||
overflow-clip-margin-block-end: auto;
|
||||
overflow-clip-margin-inline: auto;
|
||||
overflow-clip-margin-inline-start: auto;
|
||||
overflow-clip-margin-inline-end: auto;
|
||||
overflow-clip-margin-top: auto;
|
||||
overflow-clip-margin-right: auto;
|
||||
overflow-clip-margin-bottom: auto;
|
||||
overflow-clip-margin-left: auto;
|
||||
display: stable;
|
||||
display: force;
|
||||
display: overflow;
|
||||
@@ -655,6 +728,7 @@ mask {
|
||||
.page-3 {
|
||||
marks: auto;
|
||||
bleed: auto;
|
||||
page-orientation: auto;
|
||||
}
|
||||
|
||||
.page-floats-3 {
|
||||
@@ -791,8 +865,11 @@ mask {
|
||||
animation-range: auto;
|
||||
animation-delay-start: auto;
|
||||
animation-delay-end: auto;
|
||||
timeline-scope: auto;
|
||||
display: entry;
|
||||
display: exit;
|
||||
display: defer;
|
||||
display: ancestor;
|
||||
}
|
||||
|
||||
.scroll-snap-1 {
|
||||
@@ -937,6 +1014,7 @@ mask {
|
||||
display: 10st;
|
||||
display: moderate;
|
||||
display: reduced;
|
||||
display: never;
|
||||
}
|
||||
|
||||
.style-attr {
|
||||
@@ -1070,8 +1148,8 @@ view {
|
||||
}
|
||||
|
||||
.text-4 {
|
||||
text-space-collapse: auto;
|
||||
text-space-trim: auto;
|
||||
white-space-collapse: auto;
|
||||
white-space-trim: auto;
|
||||
text-wrap: auto;
|
||||
wrap-before: auto;
|
||||
wrap-after: auto;
|
||||
@@ -1083,26 +1161,26 @@ view {
|
||||
hyphenate-limit-last: auto;
|
||||
text-group-align: auto;
|
||||
line-padding: auto;
|
||||
text-autospace: auto;
|
||||
text-spacing-trim: auto;
|
||||
text-spacing: auto;
|
||||
word-boundary-detection: auto;
|
||||
word-boundary-expansion: auto;
|
||||
word-space-transform: auto;
|
||||
display: preserve-breaks;
|
||||
display: preserve-spaces;
|
||||
display: discard-inner;
|
||||
display: discard-before;
|
||||
display: discard-after;
|
||||
display: pretty;
|
||||
display: avoid-line;
|
||||
display: avoid-flex;
|
||||
display: pre-wrap-auto;
|
||||
display: no-limit;
|
||||
display: spread;
|
||||
display: trim-start;
|
||||
display: space-start;
|
||||
display: space-all;
|
||||
display: trim-auto;
|
||||
display: space-first;
|
||||
display: trim-end;
|
||||
display: space-end;
|
||||
display: trim-adjacent;
|
||||
display: space-adjacent;
|
||||
display: trim-all;
|
||||
display: no-compress;
|
||||
display: ideograph-alpha;
|
||||
display: ideograph-numeric;
|
||||
@@ -1168,6 +1246,12 @@ view {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
@starting-style {
|
||||
.transitions-2 {
|
||||
display: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.typed-om-1 {
|
||||
display: auto;
|
||||
}
|
||||
@@ -1245,7 +1329,6 @@ view {
|
||||
display: exp(1);
|
||||
display: abs(-1);
|
||||
display: sign(-4);
|
||||
display: mix(33%; 1px; 2px);
|
||||
}
|
||||
|
||||
.variables-1 {
|
||||
|
||||
Reference in New Issue
Block a user