mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-08 19:44:45 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d8fcec92e3 | ||
|
|
092f7c3c67 | ||
|
|
ff05f0f5eb | ||
|
|
f815dbb39d | ||
|
|
318b4f0a7a | ||
|
|
b095d6836f | ||
|
|
709783ff3c | ||
|
|
0ce18a4fd7 | ||
|
|
9f1b8dbb3f | ||
|
|
4162325b6c |
@@ -3,7 +3,7 @@ syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\)\>"
|
|||||||
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
||||||
syn match cssFontProp contained "\<grid-area\>"
|
syn match cssFontProp contained "\<grid-area\>"
|
||||||
syn match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
|
syn match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
|
||||||
syn keyword cssFontAttr contained grid subgrid dense span
|
syn keyword cssFontAttr contained grid dense span
|
||||||
syn match cssFontAttr contained "\<inline-grid\>"
|
syn match cssFontAttr contained "\<inline-grid\>"
|
||||||
syn match cssFontAttr contained "\<auto-flow\>"
|
syn match cssFontAttr contained "\<auto-flow\>"
|
||||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||||
|
|||||||
2
after/syntax/css/css-images-4.vim
Normal file
2
after/syntax/css/css-images-4.vim
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
syn match cssFontProp contained "\<image-resolution\>"
|
||||||
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\|conic-gradient\)\s*(" end=")" oneline keepend
|
||||||
5
after/syntax/css/css-logical-1.vim
Normal file
5
after/syntax/css/css-logical-1.vim
Normal file
@@ -0,0 +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 keyword cssFontAttr contained logical physical rotate
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
" TODO: create cssImagesProp group and cssImagesAttr group
|
|
||||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||||
syn match cssFontProp contained "\<image-\(resolution\|orientation\)\>"
|
syn match cssFontProp contained "\<image-orientation\>"
|
||||||
syn keyword cssFontAttr contained contain cover snap
|
syn keyword cssFontAttr contained contain cover snap
|
||||||
syn match cssFontAttr contained "\<from-image\>"
|
syn match cssFontAttr contained "\<from-image\>"
|
||||||
syn match cssFontAttr contained "\<scale-down\>"
|
syn match cssFontAttr contained "\<scale-down\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
syn keyword cssTagName picture rb rtc template
|
syn keyword cssTagName picture rb rtc slot template
|
||||||
|
|||||||
@@ -16,9 +16,11 @@ syn include @htmlCss syntax/css/css-fonts-3.vim
|
|||||||
syn include @htmlCss syntax/css/css-fonts-4.vim
|
syn include @htmlCss syntax/css/css-fonts-4.vim
|
||||||
syn include @htmlCss syntax/css/css-gcpm-3.vim
|
syn include @htmlCss syntax/css/css-gcpm-3.vim
|
||||||
syn include @htmlCss syntax/css/css-grid-1.vim
|
syn include @htmlCss syntax/css/css-grid-1.vim
|
||||||
|
syn include @htmlCss syntax/css/css-images-4.vim
|
||||||
syn include @htmlCss syntax/css/css-inline-3.vim
|
syn include @htmlCss syntax/css/css-inline-3.vim
|
||||||
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
syn include @htmlCss syntax/css/css-line-grid-1.vim
|
||||||
syn include @htmlCss syntax/css/css-lists-3.vim
|
syn include @htmlCss syntax/css/css-lists-3.vim
|
||||||
|
syn include @htmlCss syntax/css/css-logical-1.vim
|
||||||
syn include @htmlCss syntax/css/css-masking-1.vim
|
syn include @htmlCss syntax/css/css-masking-1.vim
|
||||||
syn include @htmlCss syntax/css/css-overflow-3.vim
|
syn include @htmlCss syntax/css/css-overflow-3.vim
|
||||||
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
syn include @htmlCss syntax/css/css-page-floats-3.vim
|
||||||
|
|||||||
@@ -351,8 +351,8 @@
|
|||||||
grid-auto-columns: 0.2fr;
|
grid-auto-columns: 0.2fr;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
grid: auto-flow;
|
grid: auto-flow;
|
||||||
grid-row-start: subgrid;
|
grid-row-start: span;
|
||||||
grid-column-start: span;
|
grid-column-start: auto;
|
||||||
grid-row-end: auto;
|
grid-row-end: auto;
|
||||||
grid-column-end: auto;
|
grid-column-end: auto;
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
@@ -363,19 +363,24 @@
|
|||||||
grid-gap: auto;
|
grid-gap: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.images {
|
.images-3 {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: cover;
|
object-position: cover;
|
||||||
image-resolution: snap;
|
image-orientation: snap;
|
||||||
image-orientation: scale-down;
|
display: scale-down;
|
||||||
display: from-image;
|
display: from-image;
|
||||||
display: image("sprite.svg#xywh=40,0,20,20");
|
|
||||||
display: linear-gradient(to bottom, yellow, blue);
|
display: linear-gradient(to bottom, yellow, blue);
|
||||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||||
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.images-4 {
|
||||||
|
image-resolution: image("sprite.svg#xywh=40,0,20,20");
|
||||||
|
display: element(#test);
|
||||||
|
display: conic-gradient(at 25% 30%, white, black 60%);
|
||||||
|
}
|
||||||
|
|
||||||
.inline-3 {
|
.inline-3 {
|
||||||
dominant-baseline: mathematical;
|
dominant-baseline: mathematical;
|
||||||
alignment-baseline: ideographic;
|
alignment-baseline: ideographic;
|
||||||
@@ -397,6 +402,60 @@
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logical-1 {
|
||||||
|
block-size: logical;
|
||||||
|
inline-size: physical;
|
||||||
|
min-block-size: rotate;
|
||||||
|
min-inline-size: auto;
|
||||||
|
max-block-size: auto;
|
||||||
|
max-inline-size: auto;
|
||||||
|
margin-block-start: auto;
|
||||||
|
margin-block-end: auto;
|
||||||
|
margin-inline-start: auto;
|
||||||
|
margin-inline-end: auto;
|
||||||
|
margin-block: auto;
|
||||||
|
margin-inline: auto;
|
||||||
|
inset-block-start: auto;
|
||||||
|
inset-block-end: auto;
|
||||||
|
inset-inline-start: auto;
|
||||||
|
inset-inline-end: auto;
|
||||||
|
inset-block: auto;
|
||||||
|
inset-inline: auto;
|
||||||
|
inset: auto;
|
||||||
|
padding-block-start: auto;
|
||||||
|
padding-block-end: auto;
|
||||||
|
padding-inline-start: auto;
|
||||||
|
padding-inline-end: auto;
|
||||||
|
padding-block: auto;
|
||||||
|
padding-inline: auto;
|
||||||
|
border-block-start-width: auto;
|
||||||
|
border-block-end-width: auto;
|
||||||
|
border-inline-start-width: auto;
|
||||||
|
border-inline-end-width: auto;
|
||||||
|
border-block-width: auto;
|
||||||
|
border-inline-width: auto;
|
||||||
|
border-block-start-style: auto;
|
||||||
|
border-block-end-style: auto;
|
||||||
|
border-inline-start-style: auto;
|
||||||
|
border-inline-end-style: auto;
|
||||||
|
border-block-style: auto;
|
||||||
|
border-inline-style: auto;
|
||||||
|
border-block-start-color: auto;
|
||||||
|
border-block-end-color: auto;
|
||||||
|
border-inline-start-color: auto;
|
||||||
|
border-inline-end-color: auto;
|
||||||
|
border-block-color: auto;
|
||||||
|
border-inline-color: auto;
|
||||||
|
border-block-start: auto;
|
||||||
|
border-block-end: auto;
|
||||||
|
border-inline-start: auto;
|
||||||
|
border-inline-end: auto;
|
||||||
|
border-block: auto;
|
||||||
|
border-inline: auto;
|
||||||
|
background-image-transform: auto;
|
||||||
|
border-image-transform: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.masking-1 {
|
.masking-1 {
|
||||||
clip-path: fill-box;
|
clip-path: fill-box;
|
||||||
clip-rule: stroke-box;
|
clip-rule: stroke-box;
|
||||||
@@ -813,6 +872,7 @@
|
|||||||
picture,
|
picture,
|
||||||
rb,
|
rb,
|
||||||
rtc,
|
rtc,
|
||||||
|
slot,
|
||||||
template {
|
template {
|
||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -388,8 +388,8 @@
|
|||||||
grid-auto-columns: 0.2fr;
|
grid-auto-columns: 0.2fr;
|
||||||
grid-auto-flow: dense;
|
grid-auto-flow: dense;
|
||||||
grid: auto-flow;
|
grid: auto-flow;
|
||||||
grid-row-start: subgrid;
|
grid-row-start: span;
|
||||||
grid-column-start: span;
|
grid-column-start: auto;
|
||||||
grid-row-end: auto;
|
grid-row-end: auto;
|
||||||
grid-column-end: auto;
|
grid-column-end: auto;
|
||||||
grid-column: auto;
|
grid-column: auto;
|
||||||
@@ -404,10 +404,9 @@
|
|||||||
.images {
|
.images {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: cover;
|
object-position: cover;
|
||||||
image-resolution: snap;
|
image-orientation: snap;
|
||||||
image-orientation: scale-down;
|
display: scale-down;
|
||||||
display: from-image;
|
display: from-image;
|
||||||
display: image("sprite.svg#xywh=40,0,20,20");
|
|
||||||
display: linear-gradient(to bottom, yellow, blue);
|
display: linear-gradient(to bottom, yellow, blue);
|
||||||
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
|
||||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||||
@@ -415,6 +414,13 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
.images-4 {
|
||||||
|
image-resolution: image("sprite.svg#xywh=40,0,20,20");
|
||||||
|
display: element(#test);
|
||||||
|
display: conic-gradient(at 25% 30%, white, black 60%);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
.inline-3 {
|
.inline-3 {
|
||||||
dominant-baseline: mathematical;
|
dominant-baseline: mathematical;
|
||||||
alignment-baseline: ideographic;
|
alignment-baseline: ideographic;
|
||||||
@@ -462,6 +468,61 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
.logical-1 {
|
||||||
|
block-size: logical;
|
||||||
|
inline-size: physical;
|
||||||
|
min-block-size: rotate;
|
||||||
|
min-inline-size: auto;
|
||||||
|
max-block-size: auto;
|
||||||
|
max-inline-size: auto;
|
||||||
|
margin-block-start: auto;
|
||||||
|
margin-block-end: auto;
|
||||||
|
margin-inline-start: auto;
|
||||||
|
margin-inline-end: auto;
|
||||||
|
margin-block: auto;
|
||||||
|
margin-inline: auto;
|
||||||
|
inset-block-start: auto;
|
||||||
|
inset-block-end: auto;
|
||||||
|
inset-inline-start: auto;
|
||||||
|
inset-inline-end: auto;
|
||||||
|
inset-block: auto;
|
||||||
|
inset-inline: auto;
|
||||||
|
inset: auto;
|
||||||
|
padding-block-start: auto;
|
||||||
|
padding-block-end: auto;
|
||||||
|
padding-inline-start: auto;
|
||||||
|
padding-inline-end: auto;
|
||||||
|
padding-block: auto;
|
||||||
|
padding-inline: auto;
|
||||||
|
border-block-start-width: auto;
|
||||||
|
border-block-end-width: auto;
|
||||||
|
border-inline-start-width: auto;
|
||||||
|
border-inline-end-width: auto;
|
||||||
|
border-block-width: auto;
|
||||||
|
border-inline-width: auto;
|
||||||
|
border-block-start-style: auto;
|
||||||
|
border-block-end-style: auto;
|
||||||
|
border-inline-start-style: auto;
|
||||||
|
border-inline-end-style: auto;
|
||||||
|
border-block-style: auto;
|
||||||
|
border-inline-style: auto;
|
||||||
|
border-block-start-color: auto;
|
||||||
|
border-block-end-color: auto;
|
||||||
|
border-inline-start-color: auto;
|
||||||
|
border-inline-end-color: auto;
|
||||||
|
border-block-color: auto;
|
||||||
|
border-inline-color: auto;
|
||||||
|
border-block-start: auto;
|
||||||
|
border-block-end: auto;
|
||||||
|
border-inline-start: auto;
|
||||||
|
border-inline-end: auto;
|
||||||
|
border-block: auto;
|
||||||
|
border-inline: auto;
|
||||||
|
background-image-transform: auto;
|
||||||
|
border-image-transform: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style>
|
||||||
.motion-1 {
|
.motion-1 {
|
||||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
||||||
motion-offset: auto;
|
motion-offset: auto;
|
||||||
@@ -895,6 +956,7 @@
|
|||||||
picture,
|
picture,
|
||||||
rb,
|
rb,
|
||||||
rtc,
|
rtc,
|
||||||
|
slot,
|
||||||
template {
|
template {
|
||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user