mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-09 03:54:46 +08:00
Compare commits
50 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4f8096b95 | ||
|
|
ba724e7725 | ||
|
|
037c11a418 | ||
|
|
6c4e888d30 | ||
|
|
ac5da79ba0 | ||
|
|
9f8026cdc7 | ||
|
|
0c7d58818c | ||
|
|
7eaca88c16 | ||
|
|
cfaa56b81b | ||
|
|
d467649124 | ||
|
|
c67661a5df | ||
|
|
566c51cc9e | ||
|
|
d733704733 | ||
|
|
c9c7ec3896 | ||
|
|
bdfc1fde87 | ||
|
|
29ade81400 | ||
|
|
c5ea01f581 | ||
|
|
a383e34b23 | ||
|
|
a0d55ac3aa | ||
|
|
dc7b427e5b | ||
|
|
22c5e8078d | ||
|
|
84c88ac746 | ||
|
|
af915e056e | ||
|
|
547e1de69f | ||
|
|
39e6999142 | ||
|
|
d4fb6dfd46 | ||
|
|
bb0b14c8ad | ||
|
|
d578651937 | ||
|
|
d9f7b79780 | ||
|
|
26f59493b9 | ||
|
|
1d8006de19 | ||
|
|
0caf93fcd5 | ||
|
|
ddf0eb895b | ||
|
|
c988c907b1 | ||
|
|
bb5e83b87e | ||
|
|
1c12bd23d3 | ||
|
|
affd38a44b | ||
|
|
f1717bf967 | ||
|
|
3c2368b4ca | ||
|
|
d7f0f43dfc | ||
|
|
148d27c9d4 | ||
|
|
1f314d95de | ||
|
|
ef5b1c791a | ||
|
|
119c13f32a | ||
|
|
91840fcbcf | ||
|
|
c6aba8159f | ||
|
|
85a16304be | ||
|
|
61cc3366f8 | ||
|
|
4337a246ac | ||
|
|
0b516ea879 |
@@ -89,7 +89,7 @@ Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
|
|||||||
LICENSE
|
LICENSE
|
||||||
-------
|
-------
|
||||||
|
|
||||||
MIT: http://hail2u.mit-license.org/2011
|
MIT License
|
||||||
|
|
||||||
|
|
||||||
[1]: http://www.vim.org/
|
[1]: http://www.vim.org/
|
||||||
|
|||||||
0
after/syntax/css/animation-worklet-1.vim
Normal file
0
after/syntax/css/animation-worklet-1.vim
Normal file
@@ -1,3 +1,5 @@
|
|||||||
|
syn match cssBoxProp contained "\<margin-trim\>"
|
||||||
|
syn match cssBoxAttr contained "\<in-flow\>"
|
||||||
" These will be moved to block-3
|
" These will be moved to block-3
|
||||||
syn match cssBoxProp contained "\<clear-after\>"
|
syn match cssBoxProp contained "\<clear-after\>"
|
||||||
syn match cssBoxProp contained "\<float-displace\>"
|
syn match cssBoxProp contained "\<float-displace\>"
|
||||||
|
|||||||
2
after/syntax/css/break-4.vim
Normal file
2
after/syntax/css/break-4.vim
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
syn match cssBoxProp contained "\<margin-break\>"
|
||||||
|
syn keyword cssFontAttr contained keep
|
||||||
@@ -1,3 +1,2 @@
|
|||||||
syn match cssColorProp contained "\<color-adjust\>"
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\|color-mod\=\)\s*(" end=")" oneline keepend
|
|
||||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||||
|
|||||||
3
after/syntax/css/color-adjust.vim
Normal file
3
after/syntax/css/color-adjust.vim
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
syn match cssColorProp contained "\<\(forced-\)\=color-adjust\>"
|
||||||
|
syn match cssColorProp contained "\<color-scheme\>"
|
||||||
|
syn keyword cssFontAttr contained only economy exact
|
||||||
0
after/syntax/css/contain-2.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
@@ -1,6 +1,6 @@
|
|||||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||||
syn match cssFontProp contained "\<image-orientation\>"
|
syn match cssFontProp contained "\<image-orientation\>"
|
||||||
syn keyword cssFontAttr contained snap
|
syn keyword cssFontAttr contained snap flip
|
||||||
syn match cssFontAttr contained "\<scale-down\>"
|
syn match cssFontAttr contained "\<scale-down\>"
|
||||||
syn match cssFontAttr contained "\<from-image\>"
|
syn match cssFontAttr contained "\<from-image\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
" WD-css-lists-3-20190817
|
||||||
syn match cssGeneratedContentProp contained "\<marker-side\>"
|
syn match cssGeneratedContentProp contained "\<marker-side\>"
|
||||||
syn match cssGeneratedContentProp contained "\<counter-set\>"
|
syn match cssGeneratedContentProp contained "\<counter-set\>"
|
||||||
syn keyword cssGeneratedContentAttr contained marker
|
syn keyword cssGeneratedContentAttr contained marker
|
||||||
|
syn match cssGeneratedContentAttr contained "\<match-self\>"
|
||||||
syn match cssGeneratedContentAttr contained "\<list-container\>"
|
syn match cssGeneratedContentAttr contained "\<list-container\>"
|
||||||
syn keyword cssPseudoClassId contained marker
|
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<counters\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<counters\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
syn match cssFontProp contained "\<offset\(-\(path\|distance\|anchor\|rotate\)\)\=\>"
|
syn match cssFontProp contained "\<offset\(-\(path\|distance\|position\|anchor\|rotate\)\)\=\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
2
after/syntax/css/nav-1.vim
Normal file
2
after/syntax/css/nav-1.vim
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\)\>"
|
||||||
|
syn keyword cssFontAttr contained focus
|
||||||
1
after/syntax/css/overscroll-1.vim
Normal file
1
after/syntax/css/overscroll-1.vim
Normal file
@@ -0,0 +1 @@
|
|||||||
|
syn match cssFontProp contained "\<overscroll-behavior\(-\(block\|inline\|x\|y\)\)\=\>"
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
syn keyword cssFontProp contained syntax inherits
|
||||||
|
syn match cssFontProp contained "\<initial-value\>"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::attr(" end=")" oneline
|
|
||||||
@@ -7,3 +7,5 @@ syn keyword cssTextAttr contained manual loose strict hanging anywhere
|
|||||||
syn match cssTextAttr contained "\<match-parent\>"
|
syn match cssTextAttr contained "\<match-parent\>"
|
||||||
syn match cssTextAttr contained "\<each-line\>"
|
syn match cssTextAttr contained "\<each-line\>"
|
||||||
syn match cssTextAttr contained "\<full-width\>"
|
syn match cssTextAttr contained "\<full-width\>"
|
||||||
|
syn match cssTextAttr contained "\<justify-all\>"
|
||||||
|
syn match cssTextAttr contained "\<break-spaces\>"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
syn keyword cssFontAttr contained flat
|
syn match cssFontProp contained "\<transform-box\>"
|
||||||
|
|||||||
@@ -43,6 +43,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.box-3 {
|
.box-3 {
|
||||||
|
margin-trim: auto;
|
||||||
|
display: in-flow;
|
||||||
|
/* .block-3 */
|
||||||
clear-after: auto;
|
clear-after: auto;
|
||||||
float-displace: auto;
|
float-displace: auto;
|
||||||
indent-edge-reset: auto;
|
indent-edge-reset: auto;
|
||||||
@@ -63,6 +66,11 @@
|
|||||||
display: verso;
|
display: verso;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.break-4 {
|
||||||
|
margin-break: auto;
|
||||||
|
display: keep;
|
||||||
|
}
|
||||||
|
|
||||||
.cascade-3 {
|
.cascade-3 {
|
||||||
all: auto;
|
all: auto;
|
||||||
display: initial;
|
display: initial;
|
||||||
@@ -80,20 +88,27 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.color-4 {
|
.color-4 {
|
||||||
color-adjust: auto;
|
|
||||||
display: hwb(120deg, 44%, 50%);
|
display: hwb(120deg, 44%, 50%);
|
||||||
display: lab(1 2 3);
|
display: lab(1 2 3);
|
||||||
display: lch(4 5 6);
|
display: lch(4 5 6);
|
||||||
display: gray(50%);
|
display: gray(50%);
|
||||||
display: color(swopc, 0 206 190 77);
|
display: color(swopc, 0 206 190 77);
|
||||||
display: device-cmyk(0, 81%, 81%, 30%);
|
display: device-cmyk(0, 81%, 81%, 30%);
|
||||||
display: color-mod(#112233 tint(50%));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@color-profile swopc {
|
@color-profile swopc {
|
||||||
src: url("http://example.org/swop-coated.icc");
|
src: url("http://example.org/swop-coated.icc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.color-adjust-1 {
|
||||||
|
color-scheme: auto;
|
||||||
|
forced-color-adjust: auto;
|
||||||
|
color-adjust: auto;
|
||||||
|
display: only;
|
||||||
|
display: economy;
|
||||||
|
display: exact;
|
||||||
|
}
|
||||||
|
|
||||||
.compositing-1 {
|
.compositing-1 {
|
||||||
mix-blend-mode: auto;
|
mix-blend-mode: auto;
|
||||||
isolation: auto;
|
isolation: auto;
|
||||||
@@ -130,6 +145,10 @@
|
|||||||
display: size;
|
display: size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.contain-2 {
|
||||||
|
display: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.content-3 {
|
.content-3 {
|
||||||
string-set: auto;
|
string-set: auto;
|
||||||
bookmark-level: auto;
|
bookmark-level: auto;
|
||||||
@@ -412,6 +431,7 @@ template {
|
|||||||
object-position: auto;
|
object-position: auto;
|
||||||
image-orientation: auto;
|
image-orientation: auto;
|
||||||
display: snap;
|
display: snap;
|
||||||
|
display: flip;
|
||||||
display: scale-down;
|
display: scale-down;
|
||||||
display: from-image;
|
display: from-image;
|
||||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||||
@@ -455,7 +475,7 @@ template {
|
|||||||
.lists-3::marker {
|
.lists-3::marker {
|
||||||
marker-side: auto;
|
marker-side: auto;
|
||||||
counter-set: auto;
|
counter-set: auto;
|
||||||
display: marker;
|
display: match-self;
|
||||||
display: list-container;
|
display: list-container;
|
||||||
display: counters(lack-of-example);
|
display: counters(lack-of-example);
|
||||||
}
|
}
|
||||||
@@ -557,6 +577,7 @@ mask {
|
|||||||
.motion-1 {
|
.motion-1 {
|
||||||
offset-path: auto;
|
offset-path: auto;
|
||||||
offset-distance: auto;
|
offset-distance: auto;
|
||||||
|
offset-position: auto;
|
||||||
offset-anchor: auto;
|
offset-anchor: auto;
|
||||||
offset-rotate: auto;
|
offset-rotate: auto;
|
||||||
offset: auto;
|
offset: auto;
|
||||||
@@ -572,6 +593,12 @@ mask {
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav-1 {
|
||||||
|
spatial-navigation-contain: auto;
|
||||||
|
spatial-navigation-action: auto;
|
||||||
|
display: focus;
|
||||||
|
}
|
||||||
|
|
||||||
.overflow-3 {
|
.overflow-3 {
|
||||||
max-lines: auto;
|
max-lines: auto;
|
||||||
block-overflow: auto;
|
block-overflow: auto;
|
||||||
@@ -590,6 +617,14 @@ mask {
|
|||||||
display: fragments;
|
display: fragments;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.overscroll-1 {
|
||||||
|
overscroll-behavior: auto;
|
||||||
|
overscroll-behavior-block: auto;
|
||||||
|
overscroll-behavior-inline: auto;
|
||||||
|
overscroll-behavior-x: auto;
|
||||||
|
overscroll-behavior-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.page-3 {
|
.page-3 {
|
||||||
marks: auto;
|
marks: auto;
|
||||||
bleed: auto;
|
bleed: auto;
|
||||||
@@ -627,7 +662,9 @@ mask {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.properties-values-api-1 {
|
.properties-values-api-1 {
|
||||||
display: auto;
|
syntax: auto;
|
||||||
|
inherits: auto;
|
||||||
|
initial-value: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pseudo-4::inactive-selection,
|
.pseudo-4::inactive-selection,
|
||||||
@@ -929,6 +966,8 @@ view {
|
|||||||
display: each-line;
|
display: each-line;
|
||||||
display: full-width;
|
display: full-width;
|
||||||
display: anywhere;
|
display: anywhere;
|
||||||
|
display: justify-all;
|
||||||
|
display: break-spaces;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-4 {
|
.text-4 {
|
||||||
@@ -1010,7 +1049,7 @@ view {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.transforms-1 {
|
.transforms-1 {
|
||||||
display: flat;
|
transform-box: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.transitions-1 {
|
.transitions-1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user