mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 10:44:23 +08:00
Compare commits
189 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ec4a4bb4b | ||
|
|
de15898a87 | ||
|
|
3b20ef3df2 | ||
|
|
dad0fd9dcc | ||
|
|
09920310c3 | ||
|
|
0d6d49c712 | ||
|
|
2fb65e8ac3 | ||
|
|
91b78456d4 | ||
|
|
00138fb097 | ||
|
|
84924b8934 | ||
|
|
24934b32da | ||
|
|
661a91f249 | ||
|
|
50adac88c4 | ||
|
|
1fc1ff5799 | ||
|
|
adbc12f2ee | ||
|
|
2a04f2d27c | ||
|
|
b0bc65e6f8 | ||
|
|
a6133ac2ff | ||
|
|
cc35f339d8 | ||
|
|
4f8d08e82b | ||
|
|
8d496ec664 | ||
|
|
349772545f | ||
|
|
000f04273c | ||
|
|
b7778bc209 | ||
|
|
089f388a9e | ||
|
|
02dd66a1d0 | ||
|
|
857f1af752 | ||
|
|
f99c2ee07e | ||
|
|
e154d38c2d | ||
|
|
e8202fbb7d | ||
|
|
17624f5993 | ||
|
|
cd2dc6b9f7 | ||
|
|
d066e83f01 | ||
|
|
cb6f429561 | ||
|
|
5ea57b4b51 | ||
|
|
a56bcb6df4 | ||
|
|
43e817811d | ||
|
|
d79ca2faae | ||
|
|
44dd2e6bad | ||
|
|
af20714f72 | ||
|
|
f136721a00 | ||
|
|
ba8002926e | ||
|
|
d8ad25fdb6 | ||
|
|
b73d5028a8 | ||
|
|
3cd856659d | ||
|
|
3bc2e593b7 | ||
|
|
30ef43aed3 | ||
|
|
e06bde335f | ||
|
|
b7a3c55721 | ||
|
|
ab6d5e11e5 | ||
|
|
f933340233 | ||
|
|
60ff15a81e | ||
|
|
61bc815f2b | ||
|
|
d858def9c1 | ||
|
|
f0df5f02f3 | ||
|
|
acfbaf8302 | ||
|
|
539eaac21a | ||
|
|
262749f063 | ||
|
|
ed79b7a86b | ||
|
|
0a0b8ded19 | ||
|
|
5a208f54d6 | ||
|
|
2169136247 | ||
|
|
0d6855dbe4 | ||
|
|
c8e71253f9 | ||
|
|
b27f324d6d | ||
|
|
3482b4608c | ||
|
|
17a022b528 | ||
|
|
be78408dea | ||
|
|
c0495f80bb | ||
|
|
36520507f8 | ||
|
|
44212d3833 | ||
|
|
f53a72ed1a | ||
|
|
9aaa434b28 | ||
|
|
e20dc6170d | ||
|
|
86a79595b8 | ||
|
|
da942b9a9f | ||
|
|
56a598ef5d | ||
|
|
1fbc03d791 | ||
|
|
5dc940911d | ||
|
|
803765eb47 | ||
|
|
f4925aa8e4 | ||
|
|
0148041aac | ||
|
|
4ad0cb7d7c | ||
|
|
f6dde98e89 | ||
|
|
b9a3a6df3e | ||
|
|
25d1b40347 | ||
|
|
ef6498403d | ||
|
|
124ed746cf | ||
|
|
5ad8dc0270 | ||
|
|
2cbb2ddada | ||
|
|
3409476ae0 | ||
|
|
60da01e45f | ||
|
|
158c39b3ee | ||
|
|
5c104fcfee | ||
|
|
bbf675f5fd | ||
|
|
87283273b0 | ||
|
|
329a8f8bdf | ||
|
|
529d0f5c5a | ||
|
|
77022dc970 | ||
|
|
0318de664c | ||
|
|
090a873101 | ||
|
|
9a24ae3c6f | ||
|
|
cb69880032 | ||
|
|
0e04cfbb09 | ||
|
|
3c4f1d2057 | ||
|
|
a60106e39b | ||
|
|
ba1986d07d | ||
|
|
671f8ea579 | ||
|
|
3d98523278 | ||
|
|
b8c1fa4623 | ||
|
|
05b11eb4a0 | ||
|
|
b9921e5062 | ||
|
|
90c47814cb | ||
|
|
b3e6a86d9d | ||
|
|
9d7741a59f | ||
|
|
479dc522a7 | ||
|
|
052c7459d0 | ||
|
|
ea7a9a2325 | ||
|
|
52a53e3fe6 | ||
|
|
8c32514b04 | ||
|
|
308b231f79 | ||
|
|
3d1487297d | ||
|
|
a9eba379a1 | ||
|
|
efdac10d73 | ||
|
|
c19f58b453 | ||
|
|
9de844a6a8 | ||
|
|
13469ac58b | ||
|
|
851fad4f69 | ||
|
|
1f1f2b252a | ||
|
|
565790d45d | ||
|
|
46bb23a763 | ||
|
|
be917f98bb | ||
|
|
3992f2254a | ||
|
|
53c2606574 | ||
|
|
b31ab2c3c7 | ||
|
|
5361a81b52 | ||
|
|
63136b80f0 | ||
|
|
9b0a104f17 | ||
|
|
f548cf1f61 | ||
|
|
4b04851c40 | ||
|
|
fc0b368942 | ||
|
|
ec0f9fde01 | ||
|
|
6ec93fe239 | ||
|
|
d23bfc5841 | ||
|
|
b693202398 | ||
|
|
71d2416832 | ||
|
|
058c8141e3 | ||
|
|
cfe5fae3b8 | ||
|
|
4bea539df0 | ||
|
|
c3793de3f5 | ||
|
|
6b36c31304 | ||
|
|
e9bba514fd | ||
|
|
4a3c90092d | ||
|
|
d1b62f70e7 | ||
|
|
64ad3eaec3 | ||
|
|
a2e644f632 | ||
|
|
7df74cc2e0 | ||
|
|
0a84e0bb38 | ||
|
|
82afdcdc63 | ||
|
|
7f1c068e64 | ||
|
|
6aa08ed7a8 | ||
|
|
444215b6fd | ||
|
|
246cc6e099 | ||
|
|
5540e02485 | ||
|
|
1a895dc088 | ||
|
|
841e4bb515 | ||
|
|
0ac0b4ca08 | ||
|
|
da60696e7b | ||
|
|
f3de982f44 | ||
|
|
6fab44a6c4 | ||
|
|
a72b347b75 | ||
|
|
213ac91578 | ||
|
|
bbfd67f785 | ||
|
|
0e25532d8a | ||
|
|
e74a5c6940 | ||
|
|
47f59169c0 | ||
|
|
cdbc9512db | ||
|
|
cb426f77cf | ||
|
|
4cabff16d6 | ||
|
|
18d867b3b1 | ||
|
|
0b4b3219e1 | ||
|
|
be159483e9 | ||
|
|
fcb88f2110 | ||
|
|
1baaddd039 | ||
|
|
c1dc0b4c7c | ||
|
|
6ea52b468a | ||
|
|
5a004b69ad | ||
|
|
750667a312 | ||
|
|
ab5722664a |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: [hail2u]
|
||||
37
README.md
37
README.md
@@ -5,12 +5,21 @@ CSS3 syntax (and syntax defined in some foreign specifications) support for
|
||||
[Vim][1]’s built-in `syntax/css.vim`
|
||||
|
||||
|
||||
COMPATIBILITY
|
||||
-------------
|
||||
|
||||
This syntax files are compatible with the default runtime files that come with
|
||||
**Vim 9.0 or higher**. If you still use Vim 8.x or lower, you must:
|
||||
|
||||
- Copy [latest CSS syntax file][2] to your `~/.vim/` directory (recommended)
|
||||
- Update runtime files
|
||||
- Use [older version][3]
|
||||
- Switch to [`vim80` branch][4]
|
||||
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
I **strongly** recommend to install this plugin on *Vim 8.2 or higher with
|
||||
default runtime files*.
|
||||
|
||||
|
||||
### Vim package
|
||||
|
||||
@@ -34,25 +43,6 @@ to your `~/.vim` directory.
|
||||
NOTES
|
||||
-----
|
||||
|
||||
### Highlighting problems on: `vertical-align`, `box-shadow`, and others
|
||||
|
||||
Some properties do not highlight correctly by default. This is a limitation of
|
||||
Vim’s highlight priority mechanism. To fix this problems, put following lines
|
||||
in your `~/.vim/after/css.vim`:
|
||||
|
||||
setlocal iskeyword+=-
|
||||
|
||||
Or in your `~/.vimrc`:
|
||||
|
||||
augroup VimCSS3Syntax
|
||||
autocmd!
|
||||
|
||||
autocmd FileType css setlocal iskeyword+=-
|
||||
augroup END
|
||||
|
||||
This setting have side effects. So, use it at your own risk.
|
||||
|
||||
|
||||
### Vendor Prefixes
|
||||
|
||||
I do not plan to support CSS3 properties (or functions) with vendor prefixes,
|
||||
@@ -93,3 +83,6 @@ MIT
|
||||
|
||||
|
||||
[1]: http://www.vim.org/
|
||||
[2]: https://github.com/vim/vim/blob/master/runtime/syntax/css.vim
|
||||
[3]: https://github.com/hail2u/vim-css3-syntax/releases/tag/v1.10.2
|
||||
[4]: https://github.com/hail2u/vim-css3-syntax/tree/vim80
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
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\>"
|
||||
syn keyword cssFontProp contained place-self place-content place-items row-gap
|
||||
syn keyword cssFontAttr contained safe unsafe legacy self-start self-end
|
||||
|
||||
4
after/syntax/css/anchor-position-1.vim
Normal file
4
after/syntax/css/anchor-position-1.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn keyword cssFontProp contained anchor-name anchor-scope position-area position-anchor position-try position-try-fallbacks position-try-order position-visibility
|
||||
syn keyword cssFontAttr contained span-left span-right span-x-start span-x-end self-x-start self-x-end span-self-x-start span-self-x-end span-all span-top span-bottom span-y-start span-y-end self-y-start self-y-end span-self-y-start span-self-y-end block-start block-end span-block-start span-block-end self-block-start self-block-end span-self-block-start span-self-block-end inline-start inline-end span-inline-start span-inline-end self-inline-start self-inline-end span-self-inline-start span-self-inline-end span-start span-end self-start self-end span-self-start span-self-end anchor-center most-width most-height most-block-size most-inline-size flip-block flip-inline flip-start
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<anchor\(-size\)\=\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@position-try\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
1
after/syntax/css/anchor-position-2.vim
Normal file
1
after/syntax/css/anchor-position-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained anchored
|
||||
2
after/syntax/css/animations-2.vim
Normal file
2
after/syntax/css/animations-2.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained animation-composition animation-timeline
|
||||
syn keyword cssFontAttr contained replace accumulate
|
||||
@@ -1,7 +1,2 @@
|
||||
syn keyword cssFontProp contained corners
|
||||
syn match cssFontProp contained "\<background-position-\(x\|y\|inline\|block\)\>"
|
||||
syn match cssFontProp contained "\<corner-shape\>"
|
||||
syn match cssFontProp contained "\<border-limit\>"
|
||||
syn match cssFontProp contained "\<border-clip\(-\(top\|right\|bottom\|left\)\)\=\>"
|
||||
syn keyword cssFontAttr contained bevel scoop notch
|
||||
syn match cssFontAttr contained "\<\(x\|y\)-\(start\|end\)\>"
|
||||
syn keyword cssFontProp contained background-position-x background-position-y background-position-inline background-position-block
|
||||
syn keyword cssFontAttr contained x-start x-end y-start y-end
|
||||
|
||||
3
after/syntax/css/borders-4.vim
Normal file
3
after/syntax/css/borders-4.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained border-top-radius border-right-radius border-bottom-radius border-left-radius border-block-start-radius border-block-end-radius border-inline-start-radius border-inline-end-radius corner-top-left-shape corner-top-right-shape corner-bottom-right-shape corner-bottom-left-shape corner-start-start-shape corner-start-end-shape corner-end-start-shape corner-end-end-shape corner-top-shape corner-right-shape corner-bottom-shape corner-left-shape corner-block-start-shape corner-block-end-shape corner-inline-start-shape corner-inline-end-shape corner-shape corners border-limit border-clip border-clip-top border-clip-right border-clip-bottom border-clip-left box-shadow-color box-shadow-offset box-shadow-blur box-shadow-spread box-shadow-position border-shape
|
||||
syn keyword cssFontAttr contained squircle bevel scoop notch sides corners
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<superellipse\s*(" end=")" oneline keepend
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssBoxProp contained "\<margin-trim\>"
|
||||
syn match cssBoxAttr contained "\<in-flow\>"
|
||||
syn keyword cssFontProp contained margin-trim
|
||||
syn keyword cssFontAttr contained in-flow
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssBoxProp contained "\<margin-break\>"
|
||||
syn keyword cssFontProp contained margin-break
|
||||
syn keyword cssFontAttr contained keep
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssCommonAttr contained revert
|
||||
syn keyword cssFontAttr contained revert
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<supports\s*(" end=")" oneline keepend
|
||||
|
||||
1
after/syntax/css/cascade-5.vim
Normal file
1
after/syntax/css/cascade-5.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained revert-layer
|
||||
@@ -1,4 +1,2 @@
|
||||
syn keyword cssFontAttr contained perceptual
|
||||
syn match cssFontAttr contained "\<\(relative\|absolute\)-colorimetric\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|color\|device-cmyk\=\)\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn keyword cssFontAttr contained accentcolor accentcolortext
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(hwb\|lab\|lch\|oklab\|oklch\|color\=\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
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
|
||||
syn keyword cssFontProp contained components
|
||||
syn keyword cssFontAttr contained relative-colorimetric absolute-colorimetric perceptual
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(color-mix\|device-cmyk\|light-dark\|contrast-color\)\>\s*(" end=")" contains=cssCustomProp,cssFunction,cssColor,cssFunctionComma oneline
|
||||
syn match cssFontDescriptor "@color-profile\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssColorProp contained "\<\(forced-\)\=color-adjust\>"
|
||||
syn match cssColorProp contained "\<color-scheme\>"
|
||||
syn keyword cssFontProp contained forced-color-adjust print-color-adjust color-adjust color-scheme
|
||||
syn keyword cssFontAttr contained economy exact
|
||||
|
||||
3
after/syntax/css/color-hdr-1.vim
Normal file
3
after/syntax/css/color-hdr-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained dynamic-range-limit
|
||||
syn keyword cssFontAttr contained standard constrained-high
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<dynamic-range-limit-mix\s*(" end=")" oneline keepend
|
||||
@@ -1,3 +1,2 @@
|
||||
syn keyword cssFontProp contained isolation
|
||||
syn match cssFontProp contained "\<\(mix\|background\)-blend-mode\>"
|
||||
syn keyword cssFontProp contained isolation mix-blend-mode 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
|
||||
|
||||
3
after/syntax/css/conditional-5.vim
Normal file
3
after/syntax/css/conditional-5.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained container-type container-name container
|
||||
syn keyword cssFontAttr contained inline-size
|
||||
syn match cssFontDescriptor "@\(when\|else\|supports-condition\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontProp contained "\<content-visibility\>"
|
||||
syn keyword cssFontProp content-visibility
|
||||
|
||||
0
after/syntax/css/contain-3.vim
Normal file
0
after/syntax/css/contain-3.vim
Normal file
@@ -1,4 +1,3 @@
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained open closed
|
||||
syn keyword cssFontProp contained string-set bookmark-label bookmark-level bookmark-state
|
||||
syn keyword cssFontAttr contained open closed
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(leader\|string\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
syn keyword cssGeneratedContentProp contained system negative prefix suffix range pad fallback
|
||||
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
|
||||
syn match cssGeneratedContentProp contained "\<speak-as\>"
|
||||
syn keyword cssGeneratedContentAttr contained cyclic symbolic additive extends bullets numbers words bengali cambodian khmer devanagari gujarati gurmukhi kannada lao malayalam mongolian myanmar oriya persian tamil telugu thai tibetan
|
||||
syn match cssGeneratedContentAttr contained "\<\(ethiopic-\)\=numeric\>"
|
||||
syn match cssGeneratedContentAttr contained "\<arabic-indic\>"
|
||||
syn match cssGeneratedContentAttr contained "\<\(upper\|lower\)-armenian\>"
|
||||
syn match cssGeneratedContentAttr contained "\<cjk-\(decimal\|earthly-branch\|heavenly-stem\)\>"
|
||||
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 keyword cssFontProp contained system negative prefix suffix range pad fallback additive-symbols symbols speak-as
|
||||
syn keyword cssFontAttr contained cyclic symbolic additive extends bullets numbers words bengali cambodian khmer devanagari gujarati gurmukhi kannada lao malayalam mongolian myanmar oriya persian tamil telugu thai tibetan ethiopic-numeric numeric arabic-indic upper-armenian lower-armenian cjk-decimal cjk-earthly-branch cjk-heavenly-stem disclosure-open disclosure-closed japanese-formal korean-hanja-formal simp-chinese-formal trad-chinese-formal japanese-informal korean-hanja-informal simp-chinese-informal trad-chinese-informal 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,2 +0,0 @@
|
||||
syn match cssFontProp contained "\<scroll-behavior\>"
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<\(min\|max\|user\)-zoom\>"
|
||||
syn keyword cssFontProp contained min-zoom max-zoom user-zoom
|
||||
syn match cssFontDescriptor "@viewport\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
syn keyword cssFontAttr contained contents run-in
|
||||
|
||||
2
after/syntax/css/display-4.vim
Normal file
2
after/syntax/css/display-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained reading-flow
|
||||
syn keyword cssFontAttr contained flex-visual flex-flow grid-rows grid-columns
|
||||
1
after/syntax/css/easing-2.vim
Normal file
1
after/syntax/css/easing-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<linear\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
||||
1
after/syntax/css/env-1.vim
Normal file
1
after/syntax/css/env-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<env\s*(" end=")" oneline contains=cssValueInteger,cssValueNumber,cssValueLength,cssFunctionComma
|
||||
@@ -1,3 +1,2 @@
|
||||
" TODO: create cssExclusionsProp group and cssExclusionsAttr group
|
||||
syn match cssFontProp contained "\<wrap-\(flow\|through\)\>"
|
||||
syn keyword cssFontProp contained wrap-flow wrap-through
|
||||
syn keyword cssFontAttr contained minimum maximum
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
syn match cssFontProp contained "\<\(fill\|stroke\)\(-\(break\|color\|image\|origin\|position\|size\|repeat\|opacity\)\)\=\>"
|
||||
syn match cssFontProp contained "\<fill-rule\>"
|
||||
syn match cssFontProp contained "\<stroke-\(width\|align\|line\(cap\|join\)\|miterlimit\|dash\(array\|offset\)\|dash-\(corner\|justify\)\)\>"
|
||||
syn keyword cssFontAttr contained butt arcs stupid compress dashes gaps
|
||||
syn match cssFontAttr contained "\<bounding-box\>"
|
||||
syn keyword cssFontProp contained fill stroke fill-break fill-color fill-image fill-origin fill-position fill-size fill-repeat fill-opacity stroke-break stroke-color stroke-image stroke-origin stroke-position stroke-size stroke-repeat stroke-opacity fill-rule stroke-width stroke-align stroke-linecap stroke-linejoin stroke-miterlimit stroke-dasharray stroke-dashoffset stroke-dash-corner stroke-dash-justify
|
||||
syn keyword cssFontAttr contained butt arcs stupid compress dashes gaps bounding-box
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
syn match cssFontProp contained "\<flood-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<color-interpolation-filters\>"
|
||||
syn match cssFontProp contained "\<lighting-color\>"
|
||||
syn keyword cssFontProp contained flood-color flood-opacity color-interpolation-filters lighting-color
|
||||
syn keyword cssFontAttr sRGB linearRGB
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(blur\|brightness\|contrast\|drop-shadow\|grayscale\|hue-rotate\|invert\|opacity\|saturate\|sepia\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,10 +1 @@
|
||||
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\>"
|
||||
syn keyword cssFontAttr contained unicase jis78 jis83 jis90 jis04 simplified traditional ordinal no-common-ligatures no-discretionary-ligatures no-historical-ligatures common-ligatures discretionary-ligatures historical-ligatures no-contextual contextual all-small-caps all-petite-caps petite-caps titling-caps lining-nums oldstyle-nums proportional-nums tabular-nums diagonal-fractions stacked-fractions proportional-width slashed-zero
|
||||
|
||||
@@ -1,16 +1,5 @@
|
||||
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 keyword cssFontProp contained font-synthesis font-synthesis-weight font-synthesis-style font-synthesis-small-caps font-synthesis-position font-named-instance font-display ascent-override descent-override line-gap-override font-optical-sizing font-variation-settings font-palette font-variant-emoji font-presentation base-palette override-color
|
||||
syn keyword cssFontAttr contained emoji math fangsong swap fallback light dark contained system-ui contained ui-sans-serif ui-serif ui-monospace ui-rounded contained xxx-large contained historical-forms
|
||||
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-feature-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
syn match cssFontDescriptor "@font-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
5
after/syntax/css/forms-1.vim
Normal file
5
after/syntax/css/forms-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn keyword cssFontProp contained slider-orientation
|
||||
syn keyword cssFontAttr contained base left-to-right right-to-left top-to-bottom bottom-to-top
|
||||
syn keyword cssPseudoClassId contained picker-icon file-selector-button checkmark thumb track fill field-text clear-icon placeholder step-control step-up step-down field-component field-separator color-swatch low-value high-value optimal-value
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<picker(" end=")" contains=cssStringQ,cssStringQQ
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<control-value\s*(" end=")" oneline keepend
|
||||
2
after/syntax/css/gaps-1.vim
Normal file
2
after/syntax/css/gaps-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained column-rule-break row-rule-break rule-break column-rule-outset row-rule-outset rule-outset rule-paint-order row-rule-color row-rule-style row-rule-width row-rule rule-color rule-style rule-width rule
|
||||
syn keyword cssFontAttr contained spanning-item intersection row-over-column column-over-row
|
||||
@@ -1,5 +1,4 @@
|
||||
syn keyword cssGeneratedContentProp contained running
|
||||
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained footnote line
|
||||
syn keyword cssFontProp contained running footnote-display footnote-policy
|
||||
syn keyword cssFontAttr contained footnote line
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(element\|running\)\s*(" end=")" oneline keepend
|
||||
syn match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
||||
syn keyword cssPseudoClassId contained footnote-call footnote-marker
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn keyword cssFontAttr contained dense span
|
||||
syn match cssFontAttr contained "\<auto-flow\>"
|
||||
syn keyword cssFontAttr contained dense span auto-flow
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
|
||||
2
after/syntax/css/grid-3.vim
Normal file
2
after/syntax/css/grid-3.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained masonry-direction masonry-fill masonry-flow masonry masonry-template-tracks masonry-template-areas masonry-auto-tracks masonry-track-start masonry-track-end masonry-track masonry-slack item-track item-direction item-wrap item-cross item-pack item-slack item-flow
|
||||
syn keyword cssFontAttr contained masonry inline-masonry
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssTagName picture rb rtc slot template
|
||||
syn keyword cssTagName rb rtc slot template
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained snap flip pixelated
|
||||
syn match cssFontAttr contained "\<scale-down\>"
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn keyword cssFontProp contained image-orientation
|
||||
syn keyword cssFontAttr contained snap flip pixelated from-image
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(repeating-\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<image-resolution\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\|conic-gradient\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssFontProp contained image-resolution
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,8 +1,2 @@
|
||||
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
|
||||
syn match cssFontProp contained "\<baseline-\(shift\|source\)\>"
|
||||
syn match cssFontProp contained "\<text-edge\>"
|
||||
syn match cssFontProp contained "\<leading-trim\>"
|
||||
syn match cssFontProp contained "\<inline-sizing\>"
|
||||
syn match cssFontProp contained "\<initial-letter\(-\(align\|wrap\)\)\=\>"
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise
|
||||
syn match cssFontAttr contained "\<ideographic\(-ink\)\=\>"
|
||||
syn keyword cssFontProp contained dominant-baseline alignment-baseline baseline-shift baseline-source line-fit-edge text-box text-box-edge text-box-trim inline-sizing initial-letter initial-letter-align initial-letter-wrap
|
||||
syn keyword cssFontAttr contained central mathematical leading cap ex drop raise ideographic ideographic-ink trim-start trim-end
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
syn match cssFontProp contained "\<line-\(grid\|snap\)"
|
||||
syn match cssFontProp contained "\<box-snap\>"
|
||||
syn keyword cssFontAttr contained create
|
||||
syn match cssFontAttr contained "\<block-\(start\|end\)\>"
|
||||
syn match cssFontAttr contained "\<\(first\|last\)-baseline\>"
|
||||
syn keyword cssFontProp contained line-grid line-snap box-snap
|
||||
syn keyword cssFontAttr contained create block-start block-end first-baseline last-baseline
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
" 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 cssFontProp contained marker-side counter-set
|
||||
syn keyword cssFontAttr contained marker contained match-self contained list-container
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<counters\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
syn match cssFontProp contained "\<\(\(min\|max\)-\)\=\(block\|inline\)-size\>"
|
||||
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 "\<border-\(start\|end\)-\(start\|end\)-radius\>"
|
||||
syn keyword cssFontProp contained block-size inline-size min-block-size min-inline-size max-block-size max-inline-size margin-block padding-block margin-block-start padding-block-start margin-block-end padding-block-end margin-inline padding-inline margin-inline-start padding-inline-start margin-inline-end padding-inline-end border-block border-inline border-block-start border-block-end border-inline-start border-inline-end border-block-width border-inline-width border-block-start-width border-block-end-width border-inline-start-width border-inline-end-width border-block-style border-inline-style border-block-start-style border-block-end-style border-inline-start-style border-inline-end-style border-block-color border-inline-color border-block-start-color border-block-end-color border-inline-start-color border-inline-end-color border-start-start-radius border-start-end-radius border-end-start-radius border-end-end-radius
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
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\>"
|
||||
syn match cssTagName "\<mask\>"
|
||||
syn keyword cssFontProp contained clip-path clip-rule mask mask-image mask-mode mask-repeat mask-position mask-clip mask-origin mask-size mask-composite mask-type mask-border mask-border-source mask-border-mode mask-border-slice mask-border-width mask-border-outset mask-border-repeat
|
||||
syn keyword cssFontAttr contained nonzero evenodd alpha luminance add subtract intersect exclude fill-box stroke-box view-box no-clip
|
||||
syn keyword cssTagName mask
|
||||
|
||||
2
after/syntax/css/mixins-1.vim
Normal file
2
after/syntax/css/mixins-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained result
|
||||
syn match cssFontDescriptor "@function\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<offset\(-\(path\|distance\|position\|anchor\|rotate\)\)\=\>"
|
||||
syn keyword cssFontProp contained offset offset-path offset-distance offset-position offset-anchor offset-rotate
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(ray\|path\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontAttr contained "\<balance\(-all\)\=\>"
|
||||
syn keyword cssFontAttr contained balance balance-all
|
||||
|
||||
1
after/syntax/css/multicol-2.vim
Normal file
1
after/syntax/css/multicol-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssPseudoClassId contained column
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<spatial-navigation-\(action\|contain\|function\)\>"
|
||||
syn keyword cssFontProp contained spatial-navigation-action spatial-navigation-contain spatial-navigation-function
|
||||
syn keyword cssFontAttr contained focus
|
||||
|
||||
@@ -1,5 +1,2 @@
|
||||
syn keyword cssFontProp contained continue
|
||||
syn match cssFontProp contained "\<overflow-\(clip-margin\|block\|inline\)\>"
|
||||
syn match cssFontProp contained "\<block-ellipsis\>"
|
||||
syn match cssFontProp contained "\<line-clamp\>"
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn keyword cssFontProp contained continue overflow-clip-margin overflow-block overflow-inline scrollbar-gutter block-ellipsis line-clamp max-lines scroll-behavior
|
||||
syn keyword cssFontAttr contained smooth
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssFontProp contained "\<scrollbar-gutter\>"
|
||||
syn keyword cssFontProp contained overflow-clip-margin-block overflow-clip-margin-block-start overflow-clip-margin-block-end overflow-clip-margin-inline overflow-clip-margin-inline-start overflow-clip-margin-inline-end overflow-clip-margin-top overflow-clip-margin-right overflow-clip-margin-bottom overflow-clip-margin-left
|
||||
syn keyword cssFontAttr contained stable force overflow paginate fragments
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth-fragment\)(" end=")" oneline
|
||||
|
||||
2
after/syntax/css/overflow-5.vim
Normal file
2
after/syntax/css/overflow-5.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-marker-group
|
||||
syn keyword cssPseudoClassId contained scroll-marker-group scroll-marker target-current
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontProp contained "\<overscroll-behavior\(-\(block\|inline\|x\|y\)\)\=\>"
|
||||
syn keyword cssFontProp contained overscroll-behavior overscroll-behavior-block overscroll-behavior-inline overscroll-behavior-x overscroll-behavior-y
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn keyword cssFontProp contained marks bleed
|
||||
syn keyword cssFontProp contained marks bleed page-orientation
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
syn match cssPositioningProp contained "\<float-\(reference\|defer\|offset\)\>"
|
||||
syn match cssPositioningAttr contained "\<inline-\(start\|end\)\>"
|
||||
syn match cssPositioningAttr contained "\<snap-\(block\|inline\)\>"
|
||||
syn keyword cssFontProp contained float-reference float-defer float-offset
|
||||
syn keyword cssFontAttr contained inline-start inline-end snap-block snap-inline
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<snap-\(block\|inline\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssFontProp contained "\<touch-action\>"
|
||||
syn keyword cssFontAttr contained manipulation
|
||||
syn match cssFontAttr contained "\<pan-\(x\|y\)\>"
|
||||
syn keyword cssFontProp contained touch-action
|
||||
syn keyword cssFontAttr contained manipulation pan-x pan-y
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
syn match cssFontProp contained "\<inset\(-\(block\|inline\)\(-\(start\|end\)\)\=\)\=\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
syn keyword cssFontProp contained inset inset-block inset-inline inset-block-start inset-block-end inset-inline-start inset-inline-end
|
||||
|
||||
2
after/syntax/css/position-4.vim
Normal file
2
after/syntax/css/position-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained overlay
|
||||
syn keyword cssPseudoClassId contained backdrop
|
||||
@@ -1,2 +1 @@
|
||||
syn keyword cssFontProp contained syntax inherits
|
||||
syn match cssFontProp contained "\<initial-value\>"
|
||||
syn keyword cssFontProp contained syntax inherits initial-value
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
syn match cssPseudoClassId contained "\<inactive-selection\>"
|
||||
syn match cssPseudoClassId contained "\<\(spelling\|grammer\)-error\>"
|
||||
syn keyword cssPseudoClassId contained prefix suffix target-text spelling-error grammer-error file-selectors-button search-text details-content
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
" TODO: create cssRegionsProp group and cssRegionsAttr group
|
||||
syn match cssFontProp contained "\<flow-\(into\|from\)\>"
|
||||
syn match cssFontProp contained "\<region-fragment\>"
|
||||
syn keyword cssFontAttr contained element content break
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=region\>"
|
||||
syn keyword cssFontProp contained flow-into flow-from region-fragment
|
||||
syn keyword cssFontAttr contained element content break avoid-region region
|
||||
syn keyword cssPseudoClassId contained region
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssFontProp contained "\<line-height-step\>"
|
||||
syn match cssFontProp contained "\<block-step\(-\(size\|insert\|align\|round\)\)\=\>"
|
||||
syn keyword cssFontProp contained line-height-step block-step block-step-size block-step-insert block-step-align block-step-round
|
||||
syn keyword cssFontAttr contained margin up down nearest
|
||||
|
||||
@@ -1,7 +1,2 @@
|
||||
syn match cssFontProp contained "\<shape-inside\>"
|
||||
syn match cssFontProp contained "\<border-boundary\>"
|
||||
syn match cssFontProp contained "\<polar-\(angle\|distance\)\>"
|
||||
syn keyword cssFontAttr contained parent polar
|
||||
syn match cssFontAttr contained "\<outside-shape\>"
|
||||
syn match cssFontAttr contained "\<shape-box\>"
|
||||
syn match cssMediaProp contained /device-radius/
|
||||
syn keyword cssFontProp contained shape-inside border-boundary polar-angle polar-distance device-radius
|
||||
syn keyword cssFontAttr contained parent polar contained outside-shape contained shape-box
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\|overhang\)"
|
||||
syn match cssFontAttr contained "\<ruby-\(base\|text\)-container\>"
|
||||
syn match cssFontAttr contained "\<inter-character\>"
|
||||
syn keyword cssFontProp contained ruby-position ruby-merge ruby-align ruby-overhang
|
||||
syn keyword cssFontAttr contained ruby ruby-base ruby-text ruby-base-container ruby-text-container inter-character merge
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
syn keyword cssPseudoClassId contained host shadow content
|
||||
syn match cssPseudoClassId contained "\<\(scope\|host\)-context\>"
|
||||
syn keyword cssPseudoClassId contained host shadow content scope-context host-context
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(host\)(" end=")" oneline
|
||||
syn match cssSelectorOp2 "/deep/"
|
||||
syn match cssFontDescriptor "@scope\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontProp contained "\<overflow-anchor\>"
|
||||
syn keyword cssFontProp contained overflow-anchor
|
||||
|
||||
2
after/syntax/css/scroll-animations-1.vim
Normal file
2
after/syntax/css/scroll-animations-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-timeline-name scroll-timeline-axis scroll-timeline view-timeline-name view-timeline-axis view-timeline-inset view-timeline animation-range animation-delay-start animation-delay-end timeline-scope
|
||||
syn keyword cssFontAttr contained entry exit defer ancestor
|
||||
@@ -1,3 +1,2 @@
|
||||
syn match cssFontProp contained "\<scroll-snap-\(type\|align\|stop\)\>"
|
||||
syn match cssFontProp contained "\<scroll-\(padding\|margin\)\(-\(top\|bottom\|right\|left\|\(block\|inline\)\(-\(end\|start\)\)\=\)\)\=\>"
|
||||
syn keyword cssFontProp contained scroll-snap-type scroll-snap-align scroll-snap-stop scroll-padding scroll-margin scroll-padding-top scroll-padding-right scroll-padding-bottom scroll-padding-left scroll-padding-inline-start scroll-padding-block-start scroll-padding-inline-end scroll-padding-block-end scroll-padding-block scroll-padding-inline scroll-margin-top scroll-margin-right scroll-margin-bottom scroll-margin-left scroll-margin-inline-start scroll-margin-block-start scroll-margin-inline-end scroll-margin-block-end scroll-margin-block scroll-margin-inline
|
||||
syn keyword cssFontAttr contained x y mandatory proximity
|
||||
|
||||
2
after/syntax/css/scroll-snap-2.vim
Normal file
2
after/syntax/css/scroll-snap-2.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained scroll-start-target
|
||||
syn keyword cssPseudoClassId contained snapped snapped-x snapped-y snapped-block snapped-inline
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontProp contained "\<scrollbar-\(color\|width\)\>"
|
||||
syn keyword cssFontProp contained scrollbar-color scrollbar-width
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn keyword cssPseudoClassId contained enabled indeterminate
|
||||
syn keyword cssPseudoClassId contained indeterminate
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth\(-last\)\=-\(child\|of-type\)\|not\)(" end=")" oneline
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
syn match cssSelectorOp "[|]"
|
||||
syn keyword cssPseudoClassId contained scope current past future default valid required optional blank playing paused
|
||||
syn match cssPseudoClassId contained "\<\(any\|local\)-link\>"
|
||||
syn match cssPseudoClassId contained "\<read-\(only\|write\)\>"
|
||||
syn match cssPseudoClassId contained "\<placeholder-shown\>"
|
||||
syn match cssPseudoClassId contained "\<\(in\|out-of\)-range\>"
|
||||
syn match cssPseudoClassId contained "\<user-invalid\>"
|
||||
syn match cssPseudoClassId contained "\<target-within\>"
|
||||
syn match cssPseudoClassId contained "\<focus-\(within\|visible\)\>"
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(is\|dir\|local-link\|current\|nth\(-last\)\=-col\|has\|where\)(" end=")" oneline
|
||||
syn keyword cssPseudoClassId contained scope current past future default valid required optional blank playing paused any-link local-link read-only read-write placeholder-shown in-range out-of-range user-invalid user-valid target-within defined modal fullscreen picture-in-picture seeking buffering stalled muted volume-locked autofill open closed
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(dir\|local-link\|current\|nth\(-last\)\=-col\|has\|where\)(" end=")" oneline
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
" TODO: create cssShapesProp group and cssShapesAttr group
|
||||
syn match cssFontProp contained "\<shape-\(outside\|image-threshold\|margin\)\>"
|
||||
syn match cssFontAttr contained "\<margin-box\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssFontProp contained shape-outside shape-image-threshold shape-margin
|
||||
syn keyword cssFontAttr contained margin-box
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\|shape\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
syn match cssFontAttr contained "\<\(\(min\|max\)-content\)\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(fit-content\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssFontProp contained "\<contain-intrinsic-size\>"
|
||||
syn match cssFontAttr contained "\<\fit-content\>"
|
||||
syn keyword cssFontProp contained contain-intrinsic-size min-intrinsic-sizing
|
||||
syn keyword cssFontAttr contained zero-if-scroll zero-if-extrinsic
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
syn match cssAuralProp contained "\<voice-\(volume\|balance\|rate\|pitch\|range\|stress\|duration\)\>"
|
||||
syn match cssAuralProp contained "\<rest\(-\(before\|after\)\)\=\>"
|
||||
syn keyword cssAuralAttr contained young old neutral preserve moderate reduced
|
||||
syn match cssAuralAttr contained "\<\(literal\|no\)-punctuation\>"
|
||||
syn match cssAuralAttr contained "\<\(x-\)\=\(weak\|strong\)\>"
|
||||
syn keyword cssFontProp contained voice-volume voice-balance voice-rate voice-pitch voice-range voice-stress voice-duration rest rest-before rest-after
|
||||
syn keyword cssFontAttr contained young old neutral preserve moderate reduced literal-punctuation no-punctuation weak x-weak strong x-strong never
|
||||
syn match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"
|
||||
|
||||
@@ -1,15 +1,4 @@
|
||||
syn keyword cssTagName animate animateMotion animateTransform circle clipPath cursor defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter foreignObject g hatch hatchpath image line linearGradient marker mesh meshgradient meshpatch meshrow metadata mpath path pattern polygon polyline radialGradient rect set solidcolor stop switch symbol text textPath tspan unknown use view
|
||||
syn keyword cssFontProp contained cx cy d r rx ry x y
|
||||
syn match cssFontProp contained "\<color-\(interpolation\|rendering\)\>"
|
||||
syn match cssFontProp contained "\<marker-\(end\|mid\|start\)\>"
|
||||
syn match cssFontProp contained "\<shape-rendering\>"
|
||||
syn match cssFontProp contained "\<solid-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<stop-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<text-anchor\>"
|
||||
syn match cssFontProp contained "\<vector-effect\>"
|
||||
syn keyword cssFontAttr contained crispEdges geometricPrecision optimizeQuality viewport
|
||||
syn match cssFontAttr contained "\<context-\(fill\|stroke\)\>"
|
||||
syn match cssFontAttr contained "\<fixed-position\>"
|
||||
syn match cssFontAttr contained "\<miter\(-clip\)\=\>"
|
||||
syn match cssFontAttr contained "\<non-\(scaling-stroke\|scaling-size\|rotation\)\>"
|
||||
syn keyword cssFontProp contained cx cy d r rx ry x y color-interpolation color-rendering marker-end marker-mid marker-start shape-rendering solid-color solid-opacity stop-color stop-opacity text-anchor vector-effect
|
||||
syn keyword cssFontAttr contained crispEdges geometricPrecision optimizeQuality viewport context-fill context-stroke fixed-position miter miter-clip non-scaling-stroke non-scaling-size non-rotation
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(child\|icc-color\)\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,8 +1,2 @@
|
||||
syn match cssTextProp contained "\<tab-size\>"
|
||||
syn match cssTextProp contained "\<text-align-all\>"
|
||||
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\>"
|
||||
syn match cssTextAttr contained "\<justify-all\>"
|
||||
syn match cssTextAttr contained "\<break-spaces\>"
|
||||
syn keyword cssFontProp contained tab-size text-align-all
|
||||
syn keyword cssFontAttr contained loose strict hanging anywhere match-parent each-line full-width justify-all break-spaces
|
||||
|
||||
@@ -1,16 +1,2 @@
|
||||
syn match cssTextProp contained "\<text-space-\(collapse\|trim\)\>"
|
||||
syn match cssTextProp contained "\<text-\(wrap\|spacing\|group-align\)\>"
|
||||
syn match cssTextProp contained "\<wrap-\(before\|after\|inside\)\>"
|
||||
syn match cssTextProp contained "\<hyphenate-\(character\|limit-\(zone\|chars\|lines\|last\)\)\>"
|
||||
syn match cssTextProp contained "\<line-padding\>"
|
||||
syn keyword cssTextAttr contained spread punctuation
|
||||
syn match cssTextAttr contained "\<preserve-\(breaks\|spaces\)\>"
|
||||
syn match cssTextAttr contained "\<trim-inner\>"
|
||||
syn match cssTextAttr contained "\<discard-\(before\|after\)\>"
|
||||
syn match cssTextAttr contained "\<avoid-\(line\|flex\)\>"
|
||||
syn match cssTextAttr contained "\<pre-wrap-auto\>"
|
||||
syn match cssTextAttr contained "\<no-limit\>"
|
||||
syn match cssTextAttr contained "\<\(trim\|space\)-\(start\|end\|adjacent\)\>"
|
||||
syn match cssTextAttr contained "\<space-first\>"
|
||||
syn match cssTextAttr contained "\<no-compress\>"
|
||||
syn match cssTextAttr contained "\<ideograph-\(alpha\|numeric\)\>"
|
||||
syn keyword cssFontProp contained white-space-collapse white-space-trim text-space-trim text-wrap text-autospace text-spacing-trim text-spacing text-group-align wrap-before wrap-after wrap-inside hyphenate-character hyphenate-limit-zone hyphenate-limit-chars hyphenate-limit-lines hyphenate-limit-last line-padding word-boundary-detection word-space-transform
|
||||
syn keyword cssFontAttr contained math-auto spread punctuation preserve-breaks preserve-spaces discard-inner discard-before discard-after pretty avoid-line avoid-flex pre-wrap-auto no-limit space-all trim-both space-first trim-all no-compress ideograph-alpha ideograph-numeric ideographic-space
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssTextProp contained "\<text-\(decoration\(-\(color\|line\|style\)\)\=\|underline-position\|emphasis\(-\(color\|position\|style\)\)\=\)\>"
|
||||
syn keyword cssTextAttr contained wavy alphabetic ink under filled dot triangle sesame over
|
||||
syn keyword cssFontProp contained text-decoration-color text-decoration-line text-decoration-style text-emphasis text-emphasis-color text-emphasis-position text-emphasis-style
|
||||
syn keyword cssFontAttr contained wavy alphabetic ink under filled dot triangle sesame over
|
||||
|
||||
@@ -1,6 +1,2 @@
|
||||
syn match cssTextProp contained "\<text-\(decoration-\(thickness\|skip\|skip-ink\)\|underline-offset\|emphasis-skip\)\>"
|
||||
syn keyword cssTextAttr contained objects edges symbols narrow
|
||||
syn match cssTextAttr contained "\<\(spelling\|grammer\)-error\>"
|
||||
syn match cssTextAttr contained "\<from-font\>"
|
||||
syn match cssTextAttr contained "\<\(\(leading\|trailing\)-\)\=spaces\>"
|
||||
syn match cssTextAttr contained "\<box-decoration\>"
|
||||
syn keyword cssFontProp contained text-decoration-thickness text-underline-offset text-decoration-skip text-decoration-skip-ink text-emphasis-skip
|
||||
syn keyword cssFontAttr contained objects edges symbols narrow spelling-error grammer-error from-font spaces leading-spaces trailing-spaces box-decoration
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontProp contained "\<transform-box\>"
|
||||
syn keyword cssFontProp contained transform-box
|
||||
|
||||
1
after/syntax/css/transitions-2.vim
Normal file
1
after/syntax/css/transitions-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssFontDescriptor "@\(starting-style\)\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssUIProp contained "\<caret-color\>"
|
||||
syn keyword cssUIAttr contained grab grabbing
|
||||
syn keyword cssFontProp contained caret-color
|
||||
syn keyword cssFontAttr contained grab grabbing
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
syn match cssUIProp contained "\<caret\(-shape\)\=\>"
|
||||
syn keyword cssUIAttr contained fade underscore
|
||||
syn keyword cssFontProp contained caret caret-shape
|
||||
syn keyword cssFontAttr contained fade underscore
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<fade\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
syn match cssFontProp contained "\<backdrop-filter\>"
|
||||
" https://drafts.fxtf.org/filter-effects-2/
|
||||
syn keyword cssFontProp contained backdrop-filter
|
||||
|
||||
" https://drafts.csswg.org/css-env-1/
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<env\s*(" end=")" oneline keepend
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|q\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(q\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(vi\|vb\|ic\|cap\|lh\|rlh\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|toggle\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(rex\|cap\|rcap\|rch\|ic\|ric\|lh\|rlh\)"
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(s\|l\|d\)\=v\(h\|w\|i\|b\|min\|max\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(min\|max\|clamp\|round\|mod\|rem\|a\=\(sin\|cos\|tan\)\|atan2\|pow\|sqrt\|hypot\|log\|exp\|abs\|sign\)\s*(" end=")" oneline keepend
|
||||
|
||||
3
after/syntax/css/values-5.vim
Normal file
3
after/syntax/css/values-5.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained interpolate-size
|
||||
syn keyword cssFontAttr contained numeric-only allow-keyword
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(\(\(media\|container\)-\)\=progress\|\(\(calc\|transform\)-\)\=mix\|cross-fade\|first-valid\|toggle\|if\|inherit\|random\(-item\)\=\|sibling-\(count\|index\)\|calc-size\)\s*(" end=")" oneline keepend
|
||||
3
after/syntax/css/view-transitions-1.vim
Normal file
3
after/syntax/css/view-transitions-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained view-transition-name
|
||||
syn keyword cssPseudoClassId contained view-transition
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<view-transition-\(group\|image-pair\|old\|new\)(" end=")" contains=cssStringQ,cssStringQQ
|
||||
3
after/syntax/css/view-transitions-2.vim
Normal file
3
after/syntax/css/view-transitions-2.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontProp contained view-transition-class navigation types
|
||||
syn keyword cssPseudoClassId contained active-view-transition
|
||||
syn region cssPseudoClassFn contained matchgroup=cssFunctionName start="\<active-view-transition-type(" end=")" contains=cssStringQ,cssStringQQ
|
||||
0
after/syntax/css/web-animations-2.vim
Normal file
0
after/syntax/css/web-animations-2.vim
Normal file
@@ -1,2 +1,2 @@
|
||||
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
|
||||
syn keyword cssPseudoClassId contained cue cue-region
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
" TODO: create cssWillChangeProp group and cssWillChangeAttr group
|
||||
syn match cssFontProp contained "\<will-change\>"
|
||||
syn match cssFontAttr contained "\<scroll-position\>"
|
||||
syn keyword cssFontProp contained will-change
|
||||
syn keyword cssFontAttr contained scroll-position
|
||||
|
||||
@@ -1,7 +1,2 @@
|
||||
syn match cssFontProp contained "\<writing-mode\>"
|
||||
syn match cssFontProp contained "\<text-\(orientation\|combine-upright\)\>"
|
||||
syn match cssFontProp contained "\<glyph-orientation-vertical\>"
|
||||
syn keyword cssFontAttr contained before after mixed upright plaintext sideways
|
||||
syn match cssFontAttr contained "\<isolate\(-override\)\=\>"
|
||||
syn match cssFontAttr contained "\<horizontal-tb\>"
|
||||
syn match cssFontAttr contained "\<vertical-\(rl\|lr\)\>"
|
||||
syn keyword cssFontProp contained writing-mode text-orientation text-combine-upright glyph-orientation-vertical
|
||||
syn keyword cssFontAttr contained before after mixed upright plaintext sideways isolate isolate-override horizontal-tb vertical-rl vertical-lr
|
||||
|
||||
@@ -1 +1 @@
|
||||
syn match cssFontAttr contained "\<sideways-\(rl\|lr\)\>"
|
||||
syn keyword cssFontAttr contained sideways-rl sideways-lr
|
||||
|
||||
1975
test/test.css
1975
test/test.css
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user