mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 11:14:25 +08:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e40dde46c | ||
|
|
087d9db240 | ||
|
|
36900064ff | ||
|
|
98cfdbf087 | ||
|
|
de5a0e2dc2 | ||
|
|
af01de4490 | ||
|
|
f18eabedc0 | ||
|
|
51c5ee1f88 | ||
|
|
77e3358574 | ||
|
|
0aa17c3079 | ||
|
|
928b94ea6c | ||
|
|
123abe00c6 | ||
|
|
33d7eb1218 | ||
|
|
d7d7f60fe8 | ||
|
|
e09eb1d37a | ||
|
|
4e6ef67e51 | ||
|
|
d8681a0d5e | ||
|
|
0ce5d19c35 | ||
|
|
db86f3acd0 | ||
|
|
56e9026121 | ||
|
|
a1345ce338 | ||
|
|
fca7100977 | ||
|
|
4832514608 | ||
|
|
7caa7719df | ||
|
|
31e5506234 | ||
|
|
f2760f867c | ||
|
|
4285ca74a3 | ||
|
|
0862797623 |
@@ -1,4 +1,7 @@
|
||||
syn match cssBoxProp contained "\<overflow-\(style\|x\|y\)\>"
|
||||
syn match cssBoxProp contained "\<rotation\(-point\)\=\>"
|
||||
syn keyword cssBoxAttr contained scrollbar panner marquee
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
" These will be moved to block-3
|
||||
syn match cssBoxProp contained "\<clear-after\>"
|
||||
syn match cssBoxProp contained "\<float-displace\>"
|
||||
syn match cssBoxProp contained "\<indent-edge-reset\>"
|
||||
syn keyword cssBoxAttr contained scrollbar panner marquee decendants
|
||||
syn match cssBoxAttr contained "\<block-within-page\>"
|
||||
syn match cssBoxAttr contained "\<\(margin\|border\|padding\|content\)-edge\>"
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
syn keyword cssFontAttr contained unicase ordinal jis78 jis83 jis90 jis04 simplified traditional
|
||||
syn keyword cssFontAttr contained unicase jis78 jis83 jis90 jis04 simplified traditional ordinal
|
||||
syn match cssFontAttr contained "\<\(no-\)\=\(common\|discretionary\|historical\)-ligatures\>"
|
||||
syn match cssFontAttr contained "\<\(no-\)\=contextual\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn match cssFontAttr contained "\<all-small-caps\>"
|
||||
syn match cssFontAttr contained "\<\(all-\)\=petite-caps\>"
|
||||
syn match cssFontAttr contained "\<titling-caps\>"
|
||||
syn match cssFontAttr contained "\<\(lining\|oldstyle\|proportional\|tabular\)-nums\>"
|
||||
syn match cssFontAttr contained "\<\(diagonal\|stacked\)-fractions\>"
|
||||
syn match cssFontAttr contained "\<slashed-zero\>"
|
||||
syn match cssFontAttr contained "\<proportional-width\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontAttr contained "\<slashed-zero\>"
|
||||
|
||||
@@ -5,7 +5,11 @@ syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
syn match cssFontProp contained "\<override-color\>"
|
||||
syn match cssFontProp contained "\<font-variant-emoji\>"
|
||||
syn keyword cssFontAttr contained emoji math fangsong infinity swap fallback optional light dark
|
||||
syn match cssFontAttr contained "\<system-ui\>"
|
||||
syn match cssFontAttr 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
|
||||
syn match cssFontDescriptor "@font-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
|
||||
syn match cssFontProp contained "\<baseline-shift\>"
|
||||
syn match cssFontProp contained "\<initial-letter\(-\(align\|wrap\)\)\="
|
||||
syn match cssFontProp contained "\<inline-sizing\>"
|
||||
syn match cssFontProp contained "\<initial-letters\(-\(align\|wrap\)\)\="
|
||||
syn keyword cssFontAttr contained mathematical ideographic
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
|
||||
syn match cssFontProp contained "\<\(margin\|inset\|padding\)\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<\(background\|border\)-image-transform\>"
|
||||
syn match cssFontProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>"
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<block-overflow\>"
|
||||
syn match cssFontProp contained "\<line-clamp\>"
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn match cssFontProp contained "\<overflow-\(block\|inline\)\>"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<scrollbar-gutter\>"
|
||||
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
syn match cssTextProp contained "\<text-space-\(collapse\|trim\)\>"
|
||||
syn match cssTextProp contained "\<text-\(wrap\|spacing\)\>"
|
||||
syn match cssTextProp contained "\<text-\(wrap\|spacing\|group-align\)\>"
|
||||
syn match cssTextProp contained "\<wrap-\(before\|after\|inside\)\>"
|
||||
syn match cssTextProp contained "\<hyphenate-\(character\|limit-\(zone\|chars\|lines\|last\)\)\>"
|
||||
syn match cssTextProp contained "\<line-padding\>"
|
||||
syn keyword cssTextAttr contained spread punctuation
|
||||
syn match cssTextAttr contained "\<preserve-\(auto\|trim\|breaks\|spaces\)\>"
|
||||
syn match cssTextAttr contained "\<preserve-\(breaks\|spaces\)\>"
|
||||
syn match cssTextAttr contained "\<trim-inner\>"
|
||||
syn match cssTextAttr contained "\<discard-\(before\|after\)\>"
|
||||
syn match cssTextAttr contained "\<avoid-\(line\|flex\)\>"
|
||||
syn match cssTextAttr contained "\<pre-wrap-auto\>"
|
||||
syn match cssTextAttr contained "\<no-limit\>"
|
||||
syn match cssTextAttr contained "\<\(trim\|space\)-\(start\|end\|adjacent\)\>"
|
||||
syn match cssTextAttr contained "\<space-first\>"
|
||||
syn match cssTextAttr contained "\<no-compress\>"
|
||||
syn match cssTextAttr contained "\<ideograph-\(alpha\|numeric\)\>"
|
||||
|
||||
2
after/syntax/css/values-4.vim
Normal file
2
after/syntax/css/values-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(vi\|vb\|ic\|cap\|lh\|rlh\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|toggle\)\s*(" end=")" oneline keepend
|
||||
@@ -43,18 +43,19 @@
|
||||
}
|
||||
|
||||
.box-3 {
|
||||
overflow-style: auto;
|
||||
overflow-x: auto;
|
||||
overflow-y: auto;
|
||||
rotation-point: auto;
|
||||
clear-after: auto;
|
||||
float-displace: auto;
|
||||
indent-edge-reset: auto;
|
||||
display: scrollbar;
|
||||
display: panner;
|
||||
display: marquee;
|
||||
display: ruby;
|
||||
display: ruby-base;
|
||||
display: ruby-text;
|
||||
display: ruby-base-group;
|
||||
display: ruby-text-group;
|
||||
display: discard;
|
||||
display: decendants;
|
||||
display: block-within-page;
|
||||
display: margin-edge;
|
||||
display: border-edge;
|
||||
display: padding-edge;
|
||||
display: content-edge;
|
||||
}
|
||||
|
||||
.break-3 {
|
||||
@@ -220,7 +221,11 @@
|
||||
display: flow;
|
||||
display: flow-root;
|
||||
display: contents;
|
||||
display: discard;
|
||||
display: ruby;
|
||||
display: ruby-base;
|
||||
display: ruby-text;
|
||||
display: ruby-base-group;
|
||||
display: ruby-text-group;
|
||||
}
|
||||
|
||||
.exclusions-3 {
|
||||
@@ -298,18 +303,12 @@
|
||||
.fonts-3 {
|
||||
display: common-ligatures;
|
||||
display: no-common-ligatures;
|
||||
display: discretionary-ligatures;
|
||||
display: no-discretionary-ligatures;
|
||||
display: historical-ligatures;
|
||||
display: no-historical-ligatures;
|
||||
display: contextual;
|
||||
display: no-contextual;
|
||||
display: stylistic(feature-value-name);
|
||||
display: historical-forms;
|
||||
display: styleset(feature-value-name #);
|
||||
display: character-variant(feature-vlue-name #);
|
||||
display: swash(feature-value-name);
|
||||
display: ornaments(feature-value-name);
|
||||
display: annotation(feature-value-name);
|
||||
display: all-small-caps;
|
||||
display: petite-caps;
|
||||
display: all-petite-caps;
|
||||
@@ -321,8 +320,6 @@
|
||||
display: tabular-nums;
|
||||
display: diagonal-fractions;
|
||||
display: stacked-fractions;
|
||||
display: ordinal;
|
||||
display: slashed-zero;
|
||||
display: jis78;
|
||||
display: jis83;
|
||||
display: jis90;
|
||||
@@ -330,7 +327,8 @@
|
||||
display: simplified;
|
||||
display: traditional;
|
||||
display: proportional-width;
|
||||
display: discretionary-ligatures;
|
||||
display: ordinal;
|
||||
display: slashed-zero;
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
@@ -342,11 +340,18 @@
|
||||
font-palette: auto;
|
||||
font-presentation: auto;
|
||||
font-variant-emoji: auto;
|
||||
display: system-ui;
|
||||
display: emoji;
|
||||
display: math;
|
||||
display: fangsong;
|
||||
display: system-ui;
|
||||
display: infinity;
|
||||
display: stylistic(feature-value-name);
|
||||
display: historical-forms;
|
||||
display: styleset(feature-value-name #);
|
||||
display: character-variant(feature-vlue-name #);
|
||||
display: swash(feature-value-name);
|
||||
display: ornaments(feature-value-name);
|
||||
display: annotation(feature-value-name);
|
||||
display: swap;
|
||||
display: fallback;
|
||||
display: optional;
|
||||
@@ -356,6 +361,7 @@
|
||||
|
||||
@font-palette-values Test {
|
||||
base-palette: 1;
|
||||
override-color: 1 rgb(43, 12, 9);
|
||||
}
|
||||
|
||||
.gcpm-3::footnote-call,
|
||||
@@ -418,9 +424,10 @@ template {
|
||||
dominant-baseline: auto;
|
||||
alignment-baseline: auto;
|
||||
baseline-shift: auto;
|
||||
initial-letter: auto;
|
||||
initial-letter-align: auto;
|
||||
initial-letter-wrap: auto;
|
||||
inline-sizing: auto;
|
||||
initial-letters: auto;
|
||||
initial-letters-align: auto;
|
||||
initial-letters-wrap: auto;
|
||||
display: mathematical;
|
||||
display: ideographic;
|
||||
}
|
||||
@@ -498,8 +505,10 @@ template {
|
||||
border-inline-end: auto;
|
||||
border-block: auto;
|
||||
border-inline: auto;
|
||||
background-image-transform: auto;
|
||||
border-image-transform: auto;
|
||||
border-start-start-radius: auto;
|
||||
border-start-end-radius: auto;
|
||||
border-end-start-radius: auto;
|
||||
border-end-end-radius: auto;
|
||||
display: logical;
|
||||
display: physical;
|
||||
display: rotate;
|
||||
@@ -560,11 +569,15 @@ mask {
|
||||
|
||||
.overflow-3 {
|
||||
max-lines: auto;
|
||||
block-overflow: auto;
|
||||
line-clamp: auto;
|
||||
continue: auto;
|
||||
overflow-block: auto;
|
||||
overflow-inline: auto;
|
||||
}
|
||||
|
||||
.overflow-4::nth-fragment(1) {
|
||||
scrollbar-gutter: auto;
|
||||
continue: auto;
|
||||
display: stable;
|
||||
display: force;
|
||||
display: overflow;
|
||||
@@ -921,9 +934,9 @@ view {
|
||||
hyphenate-limit-chars: auto;
|
||||
hyphenate-limit-lines: auto;
|
||||
hyphenate-limit-last: auto;
|
||||
text-group-align: auto;
|
||||
line-padding: auto;
|
||||
text-spacing: auto;
|
||||
display: preserve-auto;
|
||||
display: preserve-trim;
|
||||
display: preserve-breaks;
|
||||
display: preserve-spaces;
|
||||
display: trim-inner;
|
||||
@@ -936,6 +949,7 @@ view {
|
||||
display: spread;
|
||||
display: trim-start;
|
||||
display: space-start;
|
||||
display: space-first;
|
||||
display: trim-end;
|
||||
display: space-end;
|
||||
display: trim-adjacent;
|
||||
@@ -1022,6 +1036,19 @@ view {
|
||||
display: calc(100%/3 - 2*1em - 2*1px);
|
||||
}
|
||||
|
||||
.values-4 {
|
||||
display: 1vi;
|
||||
display: 1vb;
|
||||
display: 1ic;
|
||||
display: 1cap;
|
||||
display: 1lh;
|
||||
display: 1rlh;
|
||||
display: min(0, 1);
|
||||
display: max(0, 1);
|
||||
display: clamp(0, 100, 2);
|
||||
display: toggle(italic, normal);
|
||||
}
|
||||
|
||||
.variables-1 {
|
||||
--var-foo: auto;
|
||||
display: var(foo);
|
||||
|
||||
Reference in New Issue
Block a user