mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-09 03:54:46 +08:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dcb96c01ca | ||
|
|
fa194bb638 | ||
|
|
ff32d693f5 | ||
|
|
63de9cc2f7 | ||
|
|
912bb8944f | ||
|
|
1efb945868 | ||
|
|
da08f55d67 | ||
|
|
d51d95c7fe | ||
|
|
e58e59dd42 | ||
|
|
05a535f954 |
@@ -1,4 +1,2 @@
|
|||||||
" TODO: create cssDisplayProp group and cssDisplayAttr group
|
|
||||||
syn keyword cssFontAttr contained contents discard
|
syn keyword cssFontAttr contained contents discard
|
||||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||||
syn match cssFontAttr contained "\<inline-list-item\>"
|
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
|
syn match cssFontProp contained "\<font-\(min\|max\)-size\>"
|
||||||
|
syn match cssFontProp contained "\<font-display\>"
|
||||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||||
syn keyword cssFontAttr contained emoji math fangsong
|
syn match cssFontProp contained "\<font-palette\>"
|
||||||
|
syn match cssFontProp contained "\<font-presentation\>"
|
||||||
|
syn match cssFontProp contained "\<base-palette\>"
|
||||||
|
syn keyword cssFontAttr contained emoji math fangsong infinity swap fallback optional light dark
|
||||||
syn match cssFontAttr contained "\<system-ui\>"
|
syn match cssFontAttr contained "\<system-ui\>"
|
||||||
|
syn region cssInclude start=/@font-palette-values\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ syn keyword cssTextProp contained hyphens
|
|||||||
syn match cssTextProp contained "\<line-break\>"
|
syn match cssTextProp contained "\<line-break\>"
|
||||||
syn match cssTextProp contained "\<overflow-wrap\>"
|
syn match cssTextProp contained "\<overflow-wrap\>"
|
||||||
syn match cssTextProp contained "\<tab-size\>"
|
syn match cssTextProp contained "\<tab-size\>"
|
||||||
syn keyword cssTextAttr contained manual loose strict hanging
|
syn match cssTextProp contained "\<text-align-all\>"
|
||||||
|
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\>"
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
syn match cssFontProp contained "\<motion\(-\(path\|offset\|rotation\)\)\=\>"
|
syn match cssFontProp contained "\<offset\(-\(path\|distance\|anchor\|rotate\)\)\=\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<path\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
||||||
|
|||||||
@@ -214,7 +214,6 @@
|
|||||||
display: flow;
|
display: flow;
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
display: contents;
|
display: contents;
|
||||||
display: inline-list-item;
|
|
||||||
display: discard;
|
display: discard;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -285,6 +284,9 @@
|
|||||||
display: auto;
|
display: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fonts-4 {
|
||||||
|
}
|
||||||
|
|
||||||
.fonts-3 {
|
.fonts-3 {
|
||||||
font-feature-settings: common-ligatures;
|
font-feature-settings: common-ligatures;
|
||||||
font-kerning: no-common-ligatures;
|
font-kerning: no-common-ligatures;
|
||||||
@@ -324,10 +326,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fonts-4 {
|
.fonts-4 {
|
||||||
font-optical-sizing: emoji;
|
font-min-size: emoji;
|
||||||
font-variation-settings: math;
|
font-max-size: math;
|
||||||
display: fangsong;
|
font-display: fangsong;
|
||||||
display: system-ui;
|
font-optical-sizing: system-ui;
|
||||||
|
font-variation-settings: infinity;
|
||||||
|
font-palette: swap;
|
||||||
|
font-presentation: fallback;
|
||||||
|
display: optional;
|
||||||
|
display: light;
|
||||||
|
display: dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-palette-values Test {
|
||||||
|
base-palette: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gcpm-3::footnote-call,
|
.gcpm-3::footnote-call,
|
||||||
@@ -479,10 +491,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.motion-1 {
|
.motion-1 {
|
||||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
offset-path: ray(45deg closest-side);
|
||||||
motion-offset: auto;
|
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||||
motion-rotation: auto;
|
offset-anchor: auto;
|
||||||
motion: auto;
|
offset-rotate: auto;
|
||||||
|
offset: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.multicol {
|
.multicol {
|
||||||
@@ -733,9 +746,10 @@
|
|||||||
line-break: loose;
|
line-break: loose;
|
||||||
overflow-wrap: strict;
|
overflow-wrap: strict;
|
||||||
tab-size: match-parent;
|
tab-size: match-parent;
|
||||||
display: hanging;
|
text-align-all: hanging;
|
||||||
display: each-line;
|
display: each-line;
|
||||||
display: full-width;
|
display: full-width;
|
||||||
|
display: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-4 {
|
.text-4 {
|
||||||
|
|||||||
@@ -241,7 +241,6 @@
|
|||||||
display: flow;
|
display: flow;
|
||||||
display: flow-root;
|
display: flow-root;
|
||||||
display: contents;
|
display: contents;
|
||||||
display: inline-list-item;
|
|
||||||
display: discard;
|
display: discard;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -358,10 +357,20 @@
|
|||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.fonts-4 {
|
.fonts-4 {
|
||||||
font-optical-sizing: emoji;
|
font-min-size: emoji;
|
||||||
font-variation-settings: math;
|
font-max-size: math;
|
||||||
display: fangsong;
|
font-display: fangsong;
|
||||||
display: system-ui;
|
font-optical-sizing: system-ui;
|
||||||
|
font-variation-settings: infinity;
|
||||||
|
font-palette: swap;
|
||||||
|
font-presentation: fallback;
|
||||||
|
display: optional;
|
||||||
|
display: light;
|
||||||
|
display: dark;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-palette-values Test {
|
||||||
|
base-palette: 1;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@@ -524,10 +533,11 @@
|
|||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
.motion-1 {
|
.motion-1 {
|
||||||
motion-path: path(M 100 100 L 300 100 L 200 300 z);
|
offset-path: ray(45deg closest-side);
|
||||||
motion-offset: auto;
|
offset-distance: path(M 100 100 L 300 100 L 200 300 z);
|
||||||
motion-rotation: auto;
|
offset-anchor: auto;
|
||||||
motion: auto;
|
offset-rotate: auto;
|
||||||
|
offset: auto;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
@@ -804,9 +814,10 @@
|
|||||||
line-break: loose;
|
line-break: loose;
|
||||||
overflow-wrap: strict;
|
overflow-wrap: strict;
|
||||||
tab-size: match-parent;
|
tab-size: match-parent;
|
||||||
display: hanging;
|
text-align-all: hanging;
|
||||||
display: each-line;
|
display: each-line;
|
||||||
display: full-width;
|
display: full-width;
|
||||||
|
display: anywhere;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
Reference in New Issue
Block a user