mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 10:44:23 +08:00
Compare commits
141 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11c2d059f0 | ||
|
|
4c478d0373 | ||
|
|
e5e2662f56 | ||
|
|
4f0f6717cf | ||
|
|
5e9d081260 | ||
|
|
77a3fb8386 | ||
|
|
2c75d94fc8 | ||
|
|
a916d1e5d2 | ||
|
|
6e2f05fb29 | ||
|
|
6a677287df | ||
|
|
2714472120 | ||
|
|
ab4ce39f68 | ||
|
|
de8b85301d | ||
|
|
0c33e55d36 | ||
|
|
2a59a029d1 | ||
|
|
036ac88f82 | ||
|
|
7e863a82ba | ||
|
|
5f1c2f4cfe | ||
|
|
24df990311 | ||
|
|
2017ababce | ||
|
|
9caf119a57 | ||
|
|
c61637cc7a | ||
|
|
d852533256 | ||
|
|
6f5b17688c | ||
|
|
d65cd9c88e | ||
|
|
107e3bd060 | ||
|
|
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 | ||
|
|
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 | ||
|
|
03c1c9001d | ||
|
|
feea4b6c25 | ||
|
|
53eef9c64c | ||
|
|
ef50fcbe7e | ||
|
|
be717f2c70 | ||
|
|
47b3ce2e5a | ||
|
|
cf22db698e | ||
|
|
6ed54d346b | ||
|
|
b2d66799b7 | ||
|
|
da0119205e | ||
|
|
4e71c04913 | ||
|
|
8c6b5eaf1f | ||
|
|
afcbfc85a8 | ||
|
|
3e40dde46c | ||
|
|
087d9db240 | ||
|
|
36900064ff | ||
|
|
98cfdbf087 | ||
|
|
de5a0e2dc2 | ||
|
|
af01de4490 | ||
|
|
f18eabedc0 | ||
|
|
51c5ee1f88 | ||
|
|
77e3358574 | ||
|
|
0aa17c3079 | ||
|
|
928b94ea6c | ||
|
|
123abe00c6 | ||
|
|
33d7eb1218 | ||
|
|
d7d7f60fe8 | ||
|
|
e09eb1d37a | ||
|
|
4e6ef67e51 | ||
|
|
d8681a0d5e | ||
|
|
0ce5d19c35 | ||
|
|
db86f3acd0 | ||
|
|
56e9026121 | ||
|
|
a1345ce338 | ||
|
|
fca7100977 | ||
|
|
4832514608 | ||
|
|
7caa7719df | ||
|
|
31e5506234 | ||
|
|
f2760f867c | ||
|
|
4285ca74a3 | ||
|
|
0862797623 | ||
|
|
f71e26a0a4 | ||
|
|
2cc2be3afd | ||
|
|
8d36b7e632 | ||
|
|
34fadbd24a | ||
|
|
ee365d3727 | ||
|
|
f21174778a | ||
|
|
3cf4415567 | ||
|
|
912de28994 | ||
|
|
9ee9e64622 |
@@ -8,7 +8,7 @@ CSS3 syntax (and syntax defined in some foreign specifications) support for
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
I **strongly** recommend to install this plugin on *Vim 8.0 or higher with
|
||||
I **strongly** recommend to install this plugin on *Vim 8.1 or higher with
|
||||
default runtime files*.
|
||||
|
||||
|
||||
@@ -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/
|
||||
|
||||
5
after/syntax/css/align-3.vim
Normal file
5
after/syntax/css/align-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssFontProp contained "\<place-\(self\|content\|items\)\>"
|
||||
syn match cssFontProp contained "\<\(row-\)\=gap\>"
|
||||
syn keyword cssFontAttr contained safe unsafe legacy
|
||||
syn match cssFontAttr contained "\<self-\(start\|end\)\>"
|
||||
syn match cssFontAttr contained "\<space-evenly\>"
|
||||
0
after/syntax/css/animation-worklet-1.vim
Normal file
0
after/syntax/css/animation-worklet-1.vim
Normal file
0
after/syntax/css/animations-1.vim
Normal file
0
after/syntax/css/animations-1.vim
Normal file
0
after/syntax/css/backgrounds-3.vim
Normal file
0
after/syntax/css/backgrounds-3.vim
Normal file
0
after/syntax/css/box-3.vim
Normal file
0
after/syntax/css/box-3.vim
Normal file
2
after/syntax/css/box-4.vim
Normal file
2
after/syntax/css/box-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssBoxProp contained "\<margin-trim\>"
|
||||
syn match cssBoxAttr contained "\<in-flow\>"
|
||||
1
after/syntax/css/break-3.vim
Normal file
1
after/syntax/css/break-3.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained recto verso
|
||||
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
|
||||
0
after/syntax/css/cascade-3.vim
Normal file
0
after/syntax/css/cascade-3.vim
Normal file
0
after/syntax/css/color-3.vim
Normal file
0
after/syntax/css/color-3.vim
Normal file
4
after/syntax/css/color-4.vim
Normal file
4
after/syntax/css/color-4.vim
Normal file
@@ -0,0 +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
after/syntax/css/color-5.vim
Normal file
1
after/syntax/css/color-5.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-\(mix\|contrast\|adjust\)\|red\|green\|blue\|alpha\|hue\|saturation\|lightness\|whiteness\|blackness\|a\|b\|chroma\)\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
3
after/syntax/css/color-adjust-1.vim
Normal file
3
after/syntax/css/color-adjust-1.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
|
||||
@@ -1,4 +1,3 @@
|
||||
" TODO: create cssCompositingProp and cssCompositingAttr
|
||||
syn keyword cssFontProp contained isolation
|
||||
syn match cssFontProp contained "\<\(mix\|background\)-blend-mode\>"
|
||||
syn keyword cssFontAttr contained multiply screen overlay darken lighten color-dodge color-burn hard-light soft-light difference exclusion hue saturation color luminosity
|
||||
|
||||
0
after/syntax/css/conditional-3.vim
Normal file
0
after/syntax/css/conditional-3.vim
Normal file
0
after/syntax/css/conditional-4.vim
Normal file
0
after/syntax/css/conditional-4.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
0
after/syntax/css/contain-2.vim
Normal file
@@ -1,5 +1,3 @@
|
||||
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptors
|
||||
syn region cssInclude start=/@counter-style\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
syn keyword cssGeneratedContentProp contained system negative prefix suffix range pad fallback
|
||||
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
|
||||
syn match cssGeneratedContentProp contained "\<speak-as\>"
|
||||
@@ -12,3 +10,4 @@ syn match cssGeneratedContentAttr contained "\<disclosure-\(open\|closed\)\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(japanese\|korean-hanja\|\(simp\|trad\)-chinese\)-\(in\)\=formal\>"
|
||||
syn match cssGeneratedContentAttr contained "\<korean-hangul-formal\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<symbols\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@counter-style\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,5 +0,0 @@
|
||||
syn match cssFontProp contained "\<\(justify\|align\|place\)-\(self\|content\|items\)\>"
|
||||
syn match cssFontProp contained "\<\(\(row\|column\)-\)\=gap\>"
|
||||
syn keyword cssFontAttr contained safe unsafe legacy
|
||||
syn match cssFontAttr contained "\<\(self\|flex\)-\(start\|end\)\>"
|
||||
syn match cssFontAttr contained "\<space-\(between\|around\|evenly\)\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssFontProp contained "\<animation\(-\(name\|duration\|timing-function\|iteration-count\|direction\|play-state\|delay\|fill-mode\)\)\=\>"
|
||||
syn keyword cssFontAttr contained forwards backwards running paused
|
||||
syn match cssFontAttr contained "\<alternate-reverse\>"
|
||||
@@ -1,6 +0,0 @@
|
||||
syn match cssFontProp contained "\<background-\(clip\|origin\|size\)\>"
|
||||
syn match cssFontProp contained "\<border-image\(-\(source\|slice\|width\|outset\|repeat\)\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(\(top-right\|bottom-right\|bottom-left\|top-left\)-\)\=radius\>"
|
||||
syn match cssFontProp contained "\<box-shadow\>"
|
||||
syn keyword cssFontAttr contained space round local fill stretch clone slice
|
||||
syn match cssFontAttr contained "\<\(padding\|border\|content\)-box\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
|
||||
syn match cssFontProp contained "\<box-decoration-break\>"
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=column\>"
|
||||
@@ -1,2 +0,0 @@
|
||||
syn keyword cssFontProp all
|
||||
syn keyword cssCommonAttr contained initial unset
|
||||
@@ -1,3 +0,0 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(rgba\|hsla\=\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssColorProp contained opacity
|
||||
syn match cssColor contained "\<currentcolor\>"
|
||||
@@ -1,5 +0,0 @@
|
||||
syn match cssColorProp contained "\<color-adjust\>"
|
||||
syn keyword cssColor contained rebeccapurple
|
||||
syn match cssColor contained "#[0-9A-Fa-f]\{8\}\>" contains=cssUnitDecorators
|
||||
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
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<\(min\|max\|user\)-zoom\>"
|
||||
syn region cssInclude start=/@viewport\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
@@ -1,2 +0,0 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
@@ -1,5 +0,0 @@
|
||||
syn keyword cssFontProp order
|
||||
syn match cssFontProp contained "\<flex\(-\(basis\|direction\|flow\|grow\|shrink\|wrap\)\)\=\>"
|
||||
syn keyword cssFontAttr contained flex row wrap
|
||||
syn match cssFontAttr contained "\<inline-flex\>"
|
||||
syn match cssFontAttr contained "\<\(row\|column\|wrap\)-reverse\>"
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1,16 +0,0 @@
|
||||
syn match cssFontProp contained "\<font-feature-settings\>"
|
||||
syn match cssFontProp contained "\<font-kerning\>"
|
||||
syn match cssFontProp contained "\<font-synthesis\>"
|
||||
syn match cssFontProp contained "\<font-variant-\(alternates\|caps\|east-asian\|ligatures\|numeric\|position\)\>"
|
||||
syn keyword cssFontAttr contained unicase ordinal jis78 jis83 jis90 jis04 simplified traditional
|
||||
syn match cssFontAttr contained "\<\(no-\)\=\(common\|discretionary\|historical\)-ligatures\>"
|
||||
syn match cssFontAttr contained "\<\(no-\)\=contextual\>"
|
||||
syn match cssFontAttr contained "\<historical-forms\>"
|
||||
syn match cssFontAttr contained "\<all-small-caps\>"
|
||||
syn match cssFontAttr contained "\<\(all-\)\=petite-caps\>"
|
||||
syn match cssFontAttr contained "\<titling-caps\>"
|
||||
syn match cssFontAttr contained "\<\(lining\|oldstyle\|proportional\|tabular\)-nums\>"
|
||||
syn match cssFontAttr contained "\<\(diagonal\|stacked\)-fractions\>"
|
||||
syn match cssFontAttr contained "\<slashed-zero\>"
|
||||
syn match cssFontAttr contained "\<proportional-width\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(stylistic\|styleset\|character-variant\|swash\|ornaments\|annotation\)\s*(" end=")" oneline keepend
|
||||
@@ -1,12 +0,0 @@
|
||||
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\>"
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
syn match cssFontProp contained "\<font-language-override\>"
|
||||
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 region cssInclude start=/@font-palette-values\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
@@ -1,9 +0,0 @@
|
||||
syn match cssFontProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\)\>"
|
||||
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-area\>"
|
||||
syn keyword cssFontAttr contained grid dense span
|
||||
syn match cssFontAttr contained "\<inline-grid\>"
|
||||
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,2 +0,0 @@
|
||||
syn keyword cssFontAttr contained subgrid
|
||||
syn match cssValueNumber contained "\d\(.\d\+\)\=ar"
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1,3 +0,0 @@
|
||||
syn keyword cssFontProp contained columns
|
||||
syn match cssFontProp contained "\<column-\(count\|fill\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>"
|
||||
syn match cssFontAttr contained "\<balance\(-all\)\=\>"
|
||||
@@ -1 +0,0 @@
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<offset-\(before\|end\|after\|start\)\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1,4 +0,0 @@
|
||||
syn match cssTextProp contained "\<text-\(decoration-\(width\|skip\|skip-ink\)\|underline-offset\|emphasis-skip\)\>"
|
||||
syn keyword cssTextAttr contained objects edges symbols narrow
|
||||
syn match cssTextAttr contained "\<box-decoration\>"
|
||||
syn match cssTextAttr contained "\<\(\(leading\|trailing\)-\)\=spaces\>"
|
||||
@@ -1,6 +0,0 @@
|
||||
syn match cssFontProp contained "\<backface-visibility\>"
|
||||
syn match cssFontProp contained "\<perspective\(-origin\)\=\>"
|
||||
syn match cssFontProp contained "\<transform\(-\(origin\|style\)\)\=\>"
|
||||
syn keyword cssFontAttr contained flat
|
||||
syn match cssFontAttr contained "\<preserve-3d\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(matrix\(3d\)\=\|translate\(3d\|X\|Y\|Z\)\=\|scale\(3d\|X\|Y\|Z\)\=\|rotate\(3d\|X\|Y\|Z\)\=\|skew\(X\|Y\)\=\|perspective\)\s*(" end=")" oneline keepend
|
||||
@@ -1,5 +0,0 @@
|
||||
syn match cssFontProp contained "\<transition\(-\(property\|duration\|timing-function\|delay\)\)\=\>"
|
||||
syn keyword cssFontAttr contained linear
|
||||
syn match cssFontAttr contained "\<ease\(-\(in\|out\|in-out\)\)\=\>"
|
||||
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|vw\|vh\|vmin\|vmax\|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
|
||||
@@ -1,5 +0,0 @@
|
||||
syn match cssBoxProp contained "\<overflow-\(style\|x\|y\)\>"
|
||||
syn match cssBoxProp contained "\<rotation\(-point\)\=\>"
|
||||
syn keyword cssBoxAttr contained scrollbar panner marquee
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
syn match cssBoxAttr contained "\<no-\(display\|content\)\>"
|
||||
@@ -1 +0,0 @@
|
||||
syn region cssInclude start=/@supports\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: Create cssPageAttr group
|
||||
syn keyword cssFontAttr contained recto verso
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=page\>"
|
||||
@@ -1 +0,0 @@
|
||||
" N/A
|
||||
|
||||
2
after/syntax/css/device-adapt-1.vim
Normal file
2
after/syntax/css/device-adapt-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<\(min\|max\|user\)-zoom\>"
|
||||
syn match cssFontDescriptor "@viewport\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
2
after/syntax/css/display-3.vim
Normal file
2
after/syntax/css/display-3.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
0
after/syntax/css/easing-1.vim
Normal file
0
after/syntax/css/easing-1.vim
Normal file
0
after/syntax/css/flexbox-1.vim
Normal file
0
after/syntax/css/flexbox-1.vim
Normal file
0
after/syntax/css/font-loading-3.vim
Normal file
0
after/syntax/css/font-loading-3.vim
Normal file
10
after/syntax/css/fonts-3.vim
Normal file
10
after/syntax/css/fonts-3.vim
Normal file
@@ -0,0 +1,10 @@
|
||||
syn keyword cssFontAttr contained unicase jis78 jis83 jis90 jis04 simplified traditional ordinal
|
||||
syn match cssFontAttr contained "\<\(no-\)\=\(common\|discretionary\|historical\)-ligatures\>"
|
||||
syn match cssFontAttr contained "\<\(no-\)\=contextual\>"
|
||||
syn match cssFontAttr contained "\<all-small-caps\>"
|
||||
syn match cssFontAttr contained "\<\(all-\)\=petite-caps\>"
|
||||
syn match cssFontAttr contained "\<titling-caps\>"
|
||||
syn match cssFontAttr contained "\<\(lining\|oldstyle\|proportional\|tabular\)-nums\>"
|
||||
syn match cssFontAttr contained "\<\(diagonal\|stacked\)-fractions\>"
|
||||
syn match cssFontAttr contained "\<proportional-width\>"
|
||||
syn match cssFontAttr contained "\<slashed-zero\>"
|
||||
16
after/syntax/css/fonts-4.vim
Normal file
16
after/syntax/css/fonts-4.vim
Normal file
@@ -0,0 +1,16 @@
|
||||
syn match cssFontProp contained "\<font-display\>"
|
||||
syn match cssFontProp contained "\<font-optical-sizing\>"
|
||||
syn match cssFontProp contained "\<font-variation-settings\>"
|
||||
syn match cssFontProp contained "\<font-palette\>"
|
||||
syn match cssFontProp contained "\<font-presentation\>"
|
||||
syn match cssFontProp contained "\<base-palette\>"
|
||||
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 +0,0 @@
|
||||
" N/A
|
||||
|
||||
3
after/syntax/css/grid-1.vim
Normal file
3
after/syntax/css/grid-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontAttr contained dense span
|
||||
syn match cssFontAttr contained "\<auto-flow\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
0
after/syntax/css/grid-2.vim
Normal file
0
after/syntax/css/grid-2.vim
Normal file
@@ -1,6 +1,6 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained contain cover snap
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn keyword cssFontAttr contained snap flip pixelated
|
||||
syn match cssFontAttr contained "\<scale-down\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
@@ -1,4 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
|
||||
syn match cssFontProp contained "\<baseline-shift\>"
|
||||
syn match cssFontProp contained "\<initial-letter\(-\(align\|wrap\)\)\="
|
||||
syn match cssFontProp contained "\<inline-sizing\>"
|
||||
syn match cssFontProp contained "\<initial-letters\(-\(align\|wrap\)\)\="
|
||||
syn keyword cssFontAttr contained mathematical ideographic
|
||||
0
after/syntax/css/layout-api-1.vim
Normal file
0
after/syntax/css/layout-api-1.vim
Normal file
@@ -1,4 +1,3 @@
|
||||
" TODO: create cssLineGridProp and cssLineGridAttr
|
||||
syn match cssFontProp contained "\<line-\(grid\|snap\)"
|
||||
syn match cssFontProp contained "\<box-snap\>"
|
||||
syn keyword cssFontAttr contained create
|
||||
@@ -1,6 +1,7 @@
|
||||
" WD-css-lists-3-20190817
|
||||
syn match cssGeneratedContentProp contained "\<marker-side\>"
|
||||
syn match cssGeneratedContentProp contained "\<counter-set\>"
|
||||
syn keyword cssGeneratedContentAttr contained marker
|
||||
syn match cssGeneratedContentAttr contained "\<match-self\>"
|
||||
syn match cssGeneratedContentAttr contained "\<list-container\>"
|
||||
syn keyword cssPseudoClassId contained marker
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<counters\s*(" end=")" oneline keepend
|
||||
@@ -1,5 +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 "\<\(margin\|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 match cssFontProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>"
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
@@ -1,10 +1,7 @@
|
||||
" TODO: create cssMaskingProp group and cssMaskingValue group
|
||||
syn match cssFontProp contained "\<clip-\(path\|rule\)\>"
|
||||
syn match cssFontProp contained "\<mask\(-\(image\|mode\|repeat\|position\|clip\|origin\|size\|composite\|type\)\)\=\>"
|
||||
syn match cssFontProp contained "\<mask-border\(-\(source\|mode\|slice\|width\|outset\|repeat\)\)\=\>"
|
||||
syn keyword cssFontAttr contained nonzero evenodd alpha luminance add subtract intersect exclude
|
||||
syn match cssFontAttr contained "\<\(fill\|stroke\|view\)-box\>"
|
||||
syn match cssFontAttr contained "\<no-clip\>"
|
||||
|
||||
" http://www.w3.org/TR/css-masking/#MaskElement
|
||||
syn keyword cssTagName mask
|
||||
syn match cssTagName "\<mask\>"
|
||||
@@ -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
|
||||
|
||||
1
after/syntax/css/multicol-1.vim
Normal file
1
after/syntax/css/multicol-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontAttr contained "\<balance\(-all\)\=\>"
|
||||
0
after/syntax/css/namespace-3.vim
Normal file
0
after/syntax/css/namespace-3.vim
Normal file
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\|function\)\>"
|
||||
syn keyword cssFontAttr contained focus
|
||||
5
after/syntax/css/overflow-3.vim
Normal file
5
after/syntax/css/overflow-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<block-overflow\>"
|
||||
syn match cssFontProp contained "\<line-clamp\>"
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn match cssFontProp contained "\<overflow-\(block\|inline\)\>"
|
||||
@@ -1,4 +1,3 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<scrollbar-gutter\>"
|
||||
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||
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\)\)\=\>"
|
||||
1
after/syntax/css/page-3.vim
Normal file
1
after/syntax/css/page-3.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontProp contained marks bleed
|
||||
2
after/syntax/css/position-3.vim
Normal file
2
after/syntax/css/position-3.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<inset\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
2
after/syntax/css/properties-values-api-1.vim
Normal file
2
after/syntax/css/properties-values-api-1.vim
Normal file
@@ -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,4 +1,3 @@
|
||||
" TODO: create cssRubyProp group and cssRubyAttr group
|
||||
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\)"
|
||||
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\|overhang\)"
|
||||
syn match cssFontAttr contained "\<ruby-\(base\|text\)-container\>"
|
||||
syn match cssFontAttr contained "\<inter-character\>"
|
||||
@@ -1,5 +1,5 @@
|
||||
syn region cssInclude start=/@scope\>/ end=/\ze{/ skipwhite skipnl nextgroup=cssMediaBlock
|
||||
syn keyword cssPseudoClassId contained host shadow content
|
||||
syn match cssPseudoClassId contained "\<\(scope\|host\)-context\>"
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(host\)(" end=")" oneline
|
||||
syn match cssSelectorOp2 "/deep/"
|
||||
syn match cssFontDescriptor "@scope\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
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
after/syntax/css/scrollbars-1.vim
Normal file
1
after/syntax/css/scrollbars-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontProp contained "\<scrollbar-\(color\|width\)\>"
|
||||
@@ -1,5 +1,2 @@
|
||||
syn keyword cssPseudoClassId contained target enabled disabled checked indeterminate root empty
|
||||
syn match cssPseudoClassId contained "\<last-\(child\|of-type\)\>"
|
||||
syn match cssPseudoClassId contained "\<first-of-type\>"
|
||||
syn match cssPseudoClassId contained "\<only-\(child\|of-type\)\>"
|
||||
syn keyword cssPseudoClassId contained enabled indeterminate
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth\(-last\)\=-\(child\|of-type\)\|not\)(" end=")" oneline
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user