mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
39 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c975bde063 | ||
|
|
69b55bf234 | ||
|
|
241f57e057 | ||
|
|
14f6b95d25 | ||
|
|
f483738520 | ||
|
|
6253d1b746 | ||
|
|
75322b91a1 | ||
|
|
496f27aaf3 | ||
|
|
dcd7e3dca8 | ||
|
|
8aee9a339d | ||
|
|
c1f03abe28 | ||
|
|
81364390d3 | ||
|
|
70cb73d4d8 | ||
|
|
cf953ffa27 | ||
|
|
1e61ba9b5d | ||
|
|
e4f8096b95 | ||
|
|
ba724e7725 | ||
|
|
037c11a418 | ||
|
|
6c4e888d30 | ||
|
|
ac5da79ba0 | ||
|
|
9f8026cdc7 | ||
|
|
0c7d58818c | ||
|
|
7eaca88c16 | ||
|
|
cfaa56b81b | ||
|
|
d467649124 | ||
|
|
c67661a5df | ||
|
|
566c51cc9e | ||
|
|
d733704733 | ||
|
|
c9c7ec3896 | ||
|
|
bdfc1fde87 | ||
|
|
29ade81400 | ||
|
|
c5ea01f581 | ||
|
|
a383e34b23 | ||
|
|
a0d55ac3aa | ||
|
|
dc7b427e5b | ||
|
|
22c5e8078d | ||
|
|
84c88ac746 | ||
|
|
af915e056e | ||
|
|
547e1de69f |
@@ -89,7 +89,7 @@ Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
|
||||
LICENSE
|
||||
-------
|
||||
|
||||
MIT: http://hail2u.mit-license.org/2011
|
||||
MIT License
|
||||
|
||||
|
||||
[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,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
|
||||
|
||||
0
after/syntax/css/contain-2.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
@@ -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,6 +1,6 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
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 "\<from-image\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
" WD-css-lists-3-20190817
|
||||
syn match cssGeneratedContentProp contained "\<marker-side\>"
|
||||
syn match cssGeneratedContentProp contained "\<counter-set\>"
|
||||
syn keyword cssGeneratedContentAttr contained marker
|
||||
|
||||
@@ -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
|
||||
|
||||
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\>"
|
||||
|
||||
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 {
|
||||
@@ -145,6 +146,10 @@
|
||||
display: size;
|
||||
}
|
||||
|
||||
.contain-2 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.content-3 {
|
||||
string-set: auto;
|
||||
bookmark-level: auto;
|
||||
@@ -234,8 +239,6 @@
|
||||
}
|
||||
|
||||
.display-3 {
|
||||
display: flow;
|
||||
display: flow-root;
|
||||
display: contents;
|
||||
display: ruby;
|
||||
display: ruby-base;
|
||||
@@ -352,8 +355,6 @@
|
||||
}
|
||||
|
||||
.fonts-4 {
|
||||
font-min-size: auto;
|
||||
font-max-size: auto;
|
||||
font-display: auto;
|
||||
font-optical-sizing: auto;
|
||||
font-variation-settings: auto;
|
||||
@@ -377,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 {
|
||||
@@ -400,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,
|
||||
@@ -427,6 +431,7 @@ template {
|
||||
object-position: auto;
|
||||
image-orientation: auto;
|
||||
display: snap;
|
||||
display: flip;
|
||||
display: scale-down;
|
||||
display: from-image;
|
||||
display: repeating-linear-gradient(to bottom, yellow, blue);
|
||||
@@ -591,6 +596,7 @@ mask {
|
||||
.nav-1 {
|
||||
spatial-navigation-contain: auto;
|
||||
spatial-navigation-action: auto;
|
||||
spatial-navigation-function: auto;
|
||||
display: focus;
|
||||
}
|
||||
|
||||
@@ -612,6 +618,14 @@ mask {
|
||||
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 {
|
||||
marks: auto;
|
||||
bleed: auto;
|
||||
@@ -649,7 +663,9 @@ mask {
|
||||
}
|
||||
|
||||
.properties-values-api-1 {
|
||||
display: auto;
|
||||
syntax: auto;
|
||||
inherits: auto;
|
||||
initial-value: auto;
|
||||
}
|
||||
|
||||
.pseudo-4::inactive-selection,
|
||||
@@ -669,6 +685,10 @@ mask {
|
||||
display: avoid-region;
|
||||
}
|
||||
|
||||
.resize-observer-1 {
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.rhythm-1 {
|
||||
line-height-step: auto;
|
||||
block-step-size: auto;
|
||||
@@ -720,6 +740,10 @@ mask {
|
||||
}
|
||||
}
|
||||
|
||||
.scroll-anchoring-1 {
|
||||
overflow-anchor: auto;
|
||||
}
|
||||
|
||||
.scroll-snap-1 {
|
||||
scroll-snap-type: auto;
|
||||
scroll-padding: auto;
|
||||
@@ -938,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;
|
||||
@@ -1061,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 {
|
||||
@@ -1083,8 +1099,7 @@ view {
|
||||
}
|
||||
|
||||
.variables-1 {
|
||||
--var-foo: auto;
|
||||
display: var(foo);
|
||||
display: auto;
|
||||
}
|
||||
|
||||
.web-animations-1 {
|
||||
|
||||
Reference in New Issue
Block a user