mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c975bde063 | ||
|
|
69b55bf234 | ||
|
|
241f57e057 | ||
|
|
14f6b95d25 | ||
|
|
f483738520 | ||
|
|
6253d1b746 | ||
|
|
75322b91a1 | ||
|
|
496f27aaf3 | ||
|
|
dcd7e3dca8 | ||
|
|
8aee9a339d | ||
|
|
c1f03abe28 | ||
|
|
81364390d3 | ||
|
|
70cb73d4d8 | ||
|
|
cf953ffa27 | ||
|
|
1e61ba9b5d |
@@ -1,2 +0,0 @@
|
||||
syn keyword cssFontProp all
|
||||
syn keyword cssCommonAttr contained initial unset
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
syn keyword cssFontAttr contained perceptual
|
||||
syn match cssFontAttr contained "\<\(relative\|absolute\)-colorimetric\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|gray\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
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-variation-settings\>"
|
||||
@@ -9,7 +8,9 @@ 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 "\<ui-\(\(sans-\)\=serif\|monospace\|rounded\)\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn match cssFontAttr contained "\<xxx-large\>"
|
||||
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,5 +1,3 @@
|
||||
syn match cssFontProp contained "\<grid-template\>"
|
||||
syn keyword cssFontAttr contained dense span
|
||||
syn match cssFontAttr contained "\<auto-flow\>"
|
||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
syn match cssValueNumber contained "\d\(.\d\+\)\=ar"
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\)\>"
|
||||
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\|function\)\>"
|
||||
syn keyword cssFontAttr contained focus
|
||||
|
||||
0
after/syntax/css/resize-observer-1.vim
Normal file
0
after/syntax/css/resize-observer-1.vim
Normal file
1
after/syntax/css/scroll-anchoring-1.vim
Normal file
1
after/syntax/css/scroll-anchoring-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<overflow-anchor\>"
|
||||
@@ -1,9 +1,6 @@
|
||||
syn keyword cssTextProp contained hyphens
|
||||
syn match cssTextProp contained "\<line-break\>"
|
||||
syn match cssTextProp contained "\<overflow-wrap\>"
|
||||
syn match cssTextProp contained "\<tab-size\>"
|
||||
syn match cssTextProp contained "\<text-align-all\>"
|
||||
syn keyword cssTextAttr contained manual loose strict hanging anywhere
|
||||
syn keyword cssTextAttr contained loose strict hanging anywhere
|
||||
syn match cssTextAttr contained "\<match-parent\>"
|
||||
syn match cssTextAttr contained "\<each-line\>"
|
||||
syn match cssTextAttr contained "\<full-width\>"
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|vw\|vh\|vmin\|vmax\|q\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|q\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<calc\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<--[A-Za-z_][A-Za-z0-9_-]\+\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<var\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -72,9 +72,7 @@
|
||||
}
|
||||
|
||||
.cascade-3 {
|
||||
all: auto;
|
||||
display: initial;
|
||||
display: unset;
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.cascade-4 {
|
||||
@@ -94,6 +92,9 @@
|
||||
display: gray(50%);
|
||||
display: color(swopc, 0 206 190 77);
|
||||
display: device-cmyk(0, 81%, 81%, 30%);
|
||||
display: relative-colorimetric;
|
||||
display: absolute-colorimetric;
|
||||
display: perceptual;
|
||||
}
|
||||
|
||||
@color-profile swopc {
|
||||
@@ -238,8 +239,6 @@
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
display: flow;
|
||||
display: flow-root;
|
||||
display: contents;
|
||||
display: ruby;
|
||||
display: ruby-base;
|
||||
@@ -356,8 +355,6 @@
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
font-min-size: auto;
|
||||
font-max-size: auto;
|
||||
font-display: auto;
|
||||
font-optical-sizing: auto;
|
||||
font-variation-settings: auto;
|
||||
@@ -381,6 +378,11 @@
|
||||
display: optional;
|
||||
display: light;
|
||||
display: dark;
|
||||
display: ui-serif;
|
||||
display: ui-sans-serif;
|
||||
display: ui-monospace;
|
||||
display: ui-rounded;
|
||||
display: xxx-large;
|
||||
}
|
||||
|
||||
@font-palette-values Test {
|
||||
@@ -404,17 +406,15 @@
|
||||
}
|
||||
|
||||
.grid-1 {
|
||||
grid-template: auto;
|
||||
display: minmax(0, 1);
|
||||
display: repeat(4);
|
||||
display: 0.2fr;
|
||||
display: dense;
|
||||
display: auto-flow;
|
||||
display: span;
|
||||
}
|
||||
|
||||
.grid-2 {
|
||||
display: 1.618ar;
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.html5,
|
||||
@@ -596,6 +596,7 @@ mask {
|
||||
.nav-1 {
|
||||
spatial-navigation-contain: auto;
|
||||
spatial-navigation-action: auto;
|
||||
spatial-navigation-function: auto;
|
||||
display: focus;
|
||||
}
|
||||
|
||||
@@ -684,6 +685,10 @@ mask {
|
||||
display: avoid-region;
|
||||
}
|
||||
|
||||
.resize-observer-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.rhythm-1 {
|
||||
line-height-step: auto;
|
||||
block-step-size: auto;
|
||||
@@ -735,6 +740,10 @@ mask {
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-anchoring-1 {
|
||||
overflow-anchor: auto;
|
||||
}
|
||||
|
||||
.scroll-snap-1 {
|
||||
scroll-snap-type: auto;
|
||||
scroll-padding: auto;
|
||||
@@ -953,12 +962,8 @@ view {
|
||||
}
|
||||
|
||||
.text-3 {
|
||||
hyphens: auto;
|
||||
line-break: auto;
|
||||
overflow-wrap: auto;
|
||||
tab-size: auto;
|
||||
text-align-all: auto;
|
||||
display: manual;
|
||||
display: loose;
|
||||
display: strict;
|
||||
display: match-parent;
|
||||
@@ -1076,12 +1081,8 @@ view {
|
||||
|
||||
.values-3 {
|
||||
display: 1ch;
|
||||
display: 1vw;
|
||||
display: 1vh;
|
||||
display: 1vmin;
|
||||
display: 1q;
|
||||
display: 1turn;
|
||||
display: calc(100%/3 - 2*1em - 2*1px);
|
||||
}
|
||||
|
||||
.values-4 {
|
||||
@@ -1098,8 +1099,7 @@ view {
|
||||
}
|
||||
|
||||
.variables-1 {
|
||||
--var-foo: auto;
|
||||
display: var(foo);
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.web-animations-1 {
|
||||
|
||||
Reference in New Issue
Block a user