Compare commits

...

28 Commits

Author SHA1 Message Date
Kyo Nagashima
3e40dde46c 1.1.1 2018-09-23 10:01:09 +09:00
Kyo Nagashima
087d9db240 Follow changes in PR-selectors-3-20180911
No changes, see also: https://www.w3.org/TR/2018/PR-selectors-3-20180911/
2018-09-23 09:59:48 +09:00
Kyo Nagashima
36900064ff Follow changes in WD-css-fonts-4-20180920
See also: https://www.w3.org/TR/2018/WD-css-fonts-4-20180920/
2018-09-23 09:58:00 +09:00
Kyo Nagashima
98cfdbf087 Follow changes in REC-css-fonts-3-20180920
No changes, see also: https://www.w3.org/TR/2018/REC-css-fonts-3-20180920/
2018-09-23 09:44:52 +09:00
Kyo Nagashima
de5a0e2dc2 Follow chnages in WD-css-text-3-20180920
No changes, see also: https://www.w3.org/TR/2018/WD-css-text-3-20180920/
2018-09-20 16:42:33 +09:00
Kyo Nagashima
af01de4490 Follow changes in WD-css-text-4-20180920
See also: https://www.w3.org/TR/2018/WD-css-text-4-20180920/
2018-09-20 16:33:22 +09:00
Kyo Nagashima
f18eabedc0 Follow changes in WD-css-align-3-20180830
No changes, see also: https://www.w3.org/TR/2018/WD-css-align-3-20180830/
2018-09-01 12:49:19 +09:00
Kyo Nagashima
51c5ee1f88 Follow changes in CR-css-display-3-20180828
No changes, see also: https://www.w3.org/TR/2018/CR-css-display-3-20180828/
2018-08-29 12:02:52 +09:00
Kyo Nagashima
77e3358574 Follow changes in CR-css-cascade-4-20180828
No changes, see also: https://www.w3.org/TR/2018/CR-css-cascade-4-20180828/
2018-08-29 11:59:06 +09:00
Kyo Nagashima
0aa17c3079 Follow changes in CR-css-cascade-3-20180828
No changes, see also: https://www.w3.org/TR/2018/CR-css-cascade-3-20180828/
2018-08-29 11:57:55 +09:00
Kyo Nagashima
928b94ea6c Follow changes in WD-css-logical-1-20180827
See also: https://www.w3.org/TR/2018/WD-css-logical-1-20180827/
2018-08-28 07:57:12 +09:00
Kyo Nagashima
123abe00c6 1.1.0 2018-08-16 09:29:11 +09:00
Kyo Nagashima
33d7eb1218 Add values-4.vim
This is a syntax file for CSS Values and Units Module Level 4.
See also: https://www.w3.org/TR/2018/CR-css-values-3-20180814/
2018-08-16 09:26:37 +09:00
Kyo Nagashima
d7d7f60fe8 Follow changes in CR-css-values-3-20180814
No changes, see also: https://www.w3.org/TR/2018/CR-css-values-3-20180814/
2018-08-16 09:15:15 +09:00
Kyo Nagashima
e09eb1d37a Follow changes in PR-css-fonts-3-20180814
This commit removes some functions taht differred to fonts-4.
See also: https://www.w3.org/TR/2018/PR-css-fonts-3-20180814/
2018-08-16 09:13:08 +09:00
Kyo Nagashima
4e6ef67e51 Follow changes in: CR-css-scroll-snap-1-20180814
No changes, see also: https://www.w3.org/TR/2018/CR-css-scroll-snap-1-20180814/
2018-08-16 08:53:24 +09:00
Kyo Nagashima
d8681a0d5e Follow changes in WD-css-box-3-20180809
The box-3 spec is rewrote completely. But properties defined in previous
spec is not ported anywhere. So keep them.

See also: https://www.w3.org/TR/2018/WD-css-box-3-20180809/
2018-08-10 22:22:47 +09:00
Kyo Nagashima
0ce5d19c35 Follow changes in CR-css-paint-api-1-20180809
No changes, see also: https://www.w3.org/TR/2018/CR-css-paint-api-1-20180809/
2018-08-10 22:10:39 +09:00
Kyo Nagashima
db86f3acd0 Follow changes in WD-css-display-3-20180809
See also: https://www.w3.org/TR/2018/WD-css-display-3-20180809/
2018-08-10 22:08:48 +09:00
Kyo Nagashima
56e9026121 Follow changes in WD-css-inline-3-20180808
See also: https://www.w3.org/TR/2018/WD-css-inline-3-20180808/
2018-08-10 22:00:14 +09:00
Kyo Nagashima
a1345ce338 Follow changes in WD-css-inline-3-20180802
See also: https://www.w3.org/TR/2018/WD-css-inline-3-20180802/
2018-08-03 23:39:11 +09:00
Kyo Nagashima
fca7100977 Follow changes in: WD-css-overflow-3-20180731
See also: https://www.w3.org/TR/2018/WD-css-overflow-3-20180731/
2018-08-01 20:40:43 +09:00
Kyo Nagashima
4832514608 Follow changes in WD-css3-box-20180731
See also: https://www.w3.org/TR/2018/WD-css3-box-20180731/

Note: This changes does not include `float-displace--alternative-*`
properties.
2018-08-01 09:46:51 +09:00
Kyo Nagashima
7caa7719df Follow changes in CR-css-text-decor-3-20180703
No changes, see also: https://www.w3.org/TR/2018/CR-css-text-decor-3-20180703/
2018-07-10 08:44:36 +09:00
Kyo Nagashima
31e5506234 Follow changes in WD-css-grid-2-20180628
No changes, see also: https://www.w3.org/TR/2018/WD-css-grid-2-20180628/
2018-06-28 18:42:48 +09:00
Kyo Nagashima
f2760f867c Follow changes in CR-css-fonts-3-20180626
No changes, see also: https://www.w3.org/TR/2018/CR-css-fonts-3-20180626/
2018-06-27 21:34:50 +09:00
Kyo Nagashima
4285ca74a3 Follow changes in REC-css-ui-3-20180621
No changes, see also: https://www.w3.org/TR/2018/REC-css-ui-3-20180621/
2018-06-22 08:30:18 +09:00
Kyo Nagashima
0862797623 Follow changes in REC-css-color-3-20180619
No changes, see also: https://www.w3.org/TR/2018/REC-css-color-3-20180619/
2018-06-20 22:52:15 +09:00
11 changed files with 83 additions and 42 deletions

View File

@@ -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\>"

View File

@@ -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\)\=\)\)\=\>"

View File

@@ -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\>"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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\)\>"

View File

@@ -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

View File

@@ -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\)\>"

View 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

View File

@@ -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);