mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 18:54:25 +08:00
Compare commits
239 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
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 | ||
|
|
22049b5f2c | ||
|
|
d1319a93e4 | ||
|
|
70ad423158 | ||
|
|
c0aa0f3988 | ||
|
|
3a2d8f6368 | ||
|
|
1a2eb7cffa | ||
|
|
2a3742c83e | ||
|
|
64938abead | ||
|
|
dce15d69ed | ||
|
|
5ded300c0d | ||
|
|
7a4aafada4 | ||
|
|
a5900d0a83 | ||
|
|
9483a44248 | ||
|
|
8863961356 | ||
|
|
b81a10086d | ||
|
|
216d6d7300 | ||
|
|
18ef46ae16 | ||
|
|
c957187e2d | ||
|
|
dac9bf02f8 | ||
|
|
95ea1660d1 | ||
|
|
b581d37345 | ||
|
|
73292c6213 | ||
|
|
2ed61056a8 | ||
|
|
ddbb38a194 | ||
|
|
65ebb1fec8 | ||
|
|
4f2cae25b2 | ||
|
|
b0166696d4 | ||
|
|
f8a7f80019 | ||
|
|
aed0768408 | ||
|
|
f52a441267 | ||
|
|
1ea88056c1 | ||
|
|
f622f42d14 | ||
|
|
f638e6c30b | ||
|
|
9f4e52e66a | ||
|
|
14394d15df | ||
|
|
1321f220ea | ||
|
|
7d50b906d8 | ||
|
|
99583cc304 | ||
|
|
af135857ec | ||
|
|
289619aa56 | ||
|
|
5b1d5676eb | ||
|
|
edf5147e1b | ||
|
|
a552f6b7b2 | ||
|
|
c08702b2de | ||
|
|
ed97cb7111 | ||
|
|
dcb96c01ca | ||
|
|
fa194bb638 | ||
|
|
ff32d693f5 | ||
|
|
63de9cc2f7 | ||
|
|
912bb8944f | ||
|
|
1efb945868 | ||
|
|
da08f55d67 | ||
|
|
d51d95c7fe | ||
|
|
e58e59dd42 | ||
|
|
05a535f954 | ||
|
|
789b3fa6e8 | ||
|
|
c3c6083d44 | ||
|
|
d8fcec92e3 | ||
|
|
092f7c3c67 | ||
|
|
ff05f0f5eb | ||
|
|
f815dbb39d | ||
|
|
318b4f0a7a | ||
|
|
b095d6836f | ||
|
|
709783ff3c | ||
|
|
0ce18a4fd7 | ||
|
|
9f1b8dbb3f | ||
|
|
4162325b6c | ||
|
|
935b51f9b3 | ||
|
|
708f7afb01 | ||
|
|
7bfab47011 | ||
|
|
2d8e5a3711 | ||
|
|
8e6268701f | ||
|
|
9f5cf97dd2 | ||
|
|
09dadbddbc | ||
|
|
ecc663217d | ||
|
|
3342759044 | ||
|
|
0d392a336c | ||
|
|
52ac61ae9b | ||
|
|
b246e15a87 | ||
|
|
b6d75a099b | ||
|
|
796c321b9d | ||
|
|
7baa11dee0 | ||
|
|
33ff4c19ea | ||
|
|
d6644ddde9 | ||
|
|
68ad25f13a | ||
|
|
f4a11a2dfa | ||
|
|
09d94e94d0 | ||
|
|
67e1163e71 | ||
|
|
01f1652ea1 | ||
|
|
b6995753ca | ||
|
|
7340b8d436 | ||
|
|
c553668419 | ||
|
|
9c1ff6a905 | ||
|
|
0ba71f9643 | ||
|
|
7c63923d48 | ||
|
|
02bd142134 | ||
|
|
431686e034 | ||
|
|
9e783f669f | ||
|
|
5793938f1f | ||
|
|
a552555049 | ||
|
|
5bad4550a4 | ||
|
|
f68ddde87c | ||
|
|
f5cfa0895d | ||
|
|
51983f69c1 | ||
|
|
5c81b99e3e | ||
|
|
519acb02ec | ||
|
|
eacc98e57a | ||
|
|
bb70ca813d | ||
|
|
77c66d5b21 | ||
|
|
c7cba6931d | ||
|
|
2eeb46b6a4 | ||
|
|
04cdd2207b | ||
|
|
7656471758 | ||
|
|
ac036acb57 | ||
|
|
01e075a338 | ||
|
|
75ac3daad7 | ||
|
|
246d55ae53 | ||
|
|
de24cfc34f | ||
|
|
70955d83b9 | ||
|
|
34a8be6642 | ||
|
|
69129fdb5a | ||
|
|
fc691cd648 | ||
|
|
aeb5093190 | ||
|
|
3993c90e1d | ||
|
|
09c2971b1c | ||
|
|
0601869517 | ||
|
|
370e8a7c0a | ||
|
|
288339b369 | ||
|
|
0d54d6319f | ||
|
|
7790c1d9f3 | ||
|
|
085e6994ed | ||
|
|
27cf62c0df | ||
|
|
e39520fc9f | ||
|
|
0bc4127113 | ||
|
|
f6a6226db4 | ||
|
|
79216af1aa | ||
|
|
70488eec56 | ||
|
|
eb4d73adc1 | ||
|
|
1b6fc651ab | ||
|
|
e713b6f485 | ||
|
|
a63e01af90 | ||
|
|
74fd8ed4d4 | ||
|
|
bda3401510 | ||
|
|
d5d5bbfd2e | ||
|
|
dc363c34d3 | ||
|
|
fbb5357a0e | ||
|
|
9e0ef247ce | ||
|
|
a801b7b72c | ||
|
|
f970b3abbc | ||
|
|
4afac28691 | ||
|
|
0b469af19b | ||
|
|
b97c4fcd5d | ||
|
|
4d40c5a3b1 | ||
|
|
386f60a9ac | ||
|
|
68f6fba268 | ||
|
|
ee279e71a7 | ||
|
|
9da6a1e58b | ||
|
|
551475e48a | ||
|
|
b6d3c9e843 | ||
|
|
68a1a49e0b | ||
|
|
243b3504d9 | ||
|
|
33d21c75cf | ||
|
|
8feb345b5c | ||
|
|
f8db58b44a | ||
|
|
b24f4cdaf0 | ||
|
|
44525a5ec7 | ||
|
|
2258f16c42 | ||
|
|
eff2b2a4b8 | ||
|
|
9301019689 | ||
|
|
dcb4759c39 | ||
|
|
8f593d8e6f | ||
|
|
8c1d19f922 | ||
|
|
eec6128b8e | ||
|
|
cd20896c4e | ||
|
|
21b74dc4a3 | ||
|
|
f2dccd2c94 | ||
|
|
a292f07fbf | ||
|
|
de9553d8d2 | ||
|
|
73ba250fa1 | ||
|
|
cc70b92b65 | ||
|
|
d6b86507f7 | ||
|
|
e1a9871a10 | ||
|
|
5e4535e990 | ||
|
|
53fe2a1478 | ||
|
|
8a37d5f26d | ||
|
|
0813d4ce72 | ||
|
|
6420c0bf01 | ||
|
|
5586655a59 | ||
|
|
fc7ff7e8c7 | ||
|
|
c1a5acb705 | ||
|
|
49ee3a8b08 | ||
|
|
a27d1a4e71 | ||
|
|
19cc3af11b | ||
|
|
759fc03897 | ||
|
|
5fd2ef803b | ||
|
|
a55db5a0fd | ||
|
|
977e77443c | ||
|
|
cb9f1b3f70 | ||
|
|
324bec05c5 | ||
|
|
a37b31b9a7 | ||
|
|
d7af6a3497 | ||
|
|
21be2c48e2 |
48
README.md
48
README.md
@@ -1,32 +1,44 @@
|
||||
vim-css3-syntax
|
||||
===============
|
||||
|
||||
Add CSS3 syntax support to [Vim][1]'s built-in `syntax/css.vim`.
|
||||
CSS3 syntax (and syntax defined in some foreign specifications) support for
|
||||
[Vim][1]’s built-in `syntax/css.vim`
|
||||
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
|
||||
I **strongly** recommend to install this plugin on *Vim 7.4 or higher with default runtime files*.
|
||||
I **strongly** recommend to install this plugin on *Vim 8.1 or higher with
|
||||
default runtime files*.
|
||||
|
||||
|
||||
### Manual Installation
|
||||
### Vim package
|
||||
|
||||
Download from GitHub, extract `vim-css3-syntax.tar.gz`, and copy the contents to your `~/.vim` directory.
|
||||
$ mkdir -p ~/.vim/pack/css3-syntax/start
|
||||
$ cd ~/.vim/pack/css3-syntax/start
|
||||
$ git clone https://github.com/hail2u/vim-css3-syntax.git
|
||||
|
||||
|
||||
### Installing with Git and pathogen
|
||||
### pathogen.vim
|
||||
|
||||
$ cd ~/.vim/bundle
|
||||
$ git clone https://github.com/hail2u/vim-css3-syntax.git
|
||||
|
||||
|
||||
### Manual
|
||||
|
||||
Download `vim-css3-syntax.tar.gz` from GitHub, extract it, and copy the contents
|
||||
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`:
|
||||
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+=-
|
||||
|
||||
@@ -38,34 +50,40 @@ Or in your `~/.vimrc`:
|
||||
autocmd FileType css setlocal iskeyword+=-
|
||||
augroup END
|
||||
|
||||
This setting have side effects, so use it at your own risk.
|
||||
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, such as `-webkit-` or `-moz-`, etc. These are hard to maintain because they are:
|
||||
I do not plan to support CSS3 properties (or functions) with vendor prefixes,
|
||||
such as `-webkit-` or `-moz-`, etc. These are hard to maintain because they are:
|
||||
|
||||
* Added frequently
|
||||
* Changed unexpectedly
|
||||
* Removed silently
|
||||
|
||||
These must be supported by separate syntax plugins (Vim 7.4's default CSS syntax file supports this). If you want to highlight prefixed properties or functions manually, `:highlight` and `:match` would help:
|
||||
These must be supported by separate syntax plugins (Vim 7.4’s default CSS
|
||||
syntax file supports this). If you want to highlight prefixed properties or
|
||||
functions manually, `:highlight` and `:match` would help:
|
||||
|
||||
:highlight VendorPrefix guifg=#00ffff gui=bold
|
||||
:match VendorPrefix /-\(moz\|webkit\|o\|ms\)-[a-zA-Z-]\+/
|
||||
|
||||
These commands highlight vendor prefixed properties and functions instantly with cyan and bold (on gVim).
|
||||
These commands highlight vendor prefixed properties and functions instantly with
|
||||
cyan and bold (on gVim).
|
||||
|
||||
|
||||
### CSS Preprocessors: [Sass][2], [LESS][3], and [Stylus][4]
|
||||
### Media Queries
|
||||
|
||||
`vim-css3-syntax` supports Sass's SCSS syntax only. If you want use this plugin with LESS, install [VIM-LESS][5]. Sass's indent synatx and Stylus are not supported.
|
||||
I drop Media Queries Level 3 support in v0.12.0. There is no easy way to support
|
||||
Media Queries properly with `after` syntax plugin like this one, sorry. If you
|
||||
want to highlight Media Queries correctly, you must update Vim to 8.0+.
|
||||
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
|
||||
Kyo Namegashima <kyo@hail2u.net>
|
||||
Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
|
||||
|
||||
|
||||
LICENSE
|
||||
@@ -75,7 +93,3 @@ MIT: http://hail2u.mit-license.org/2011
|
||||
|
||||
|
||||
[1]: http://www.vim.org/
|
||||
[2]: http://sass-lang.com/
|
||||
[3]: http://lesscss.org/
|
||||
[4]: http://learnboost.github.io/stylus/
|
||||
[5]: https://github.com/groenewege/vim-less
|
||||
|
||||
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/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
7
after/syntax/css/backgrounds-4.vim
Normal file
7
after/syntax/css/backgrounds-4.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
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\)\>"
|
||||
7
after/syntax/css/box-3.vim
Normal file
7
after/syntax/css/box-3.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
" These will be moved to block-3
|
||||
syn match cssBoxProp contained "\<clear-after\>"
|
||||
syn match cssBoxProp contained "\<float-displace\>"
|
||||
syn match cssBoxProp contained "\<indent-edge-reset\>"
|
||||
syn keyword cssBoxAttr contained scrollbar panner marquee decendants
|
||||
syn match cssBoxAttr contained "\<block-within-page\>"
|
||||
syn match cssBoxAttr contained "\<\(margin\|border\|padding\|content\)-edge\>"
|
||||
0
after/syntax/css/break-3.vim
Normal file
0
after/syntax/css/break-3.vim
Normal file
2
after/syntax/css/cascade-3.vim
Normal file
2
after/syntax/css/cascade-3.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp all
|
||||
syn keyword cssCommonAttr contained initial unset
|
||||
2
after/syntax/css/cascade-4.vim
Normal file
2
after/syntax/css/cascade-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssCommonAttr contained revert
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<supports\s*(" end=")" oneline keepend
|
||||
0
after/syntax/css/color-3.vim
Normal file
0
after/syntax/css/color-3.vim
Normal file
3
after/syntax/css/color-4.vim
Normal file
3
after/syntax/css/color-4.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssColorProp contained "\<color-adjust\>"
|
||||
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,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
2
after/syntax/css/contain-1.vim
Normal file
2
after/syntax/css/contain-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssFontProp contained contain
|
||||
syn keyword cssFontAttr contained layout paint size
|
||||
4
after/syntax/css/content-3.vim
Normal file
4
after/syntax/css/content-3.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained open closed
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(leader\|string\|target-\(counter\|counters\|text\)\)\s*(" end=")" oneline keepend
|
||||
13
after/syntax/css/counter-styles-3.vim
Normal file
13
after/syntax/css/counter-styles-3.vim
Normal file
@@ -0,0 +1,13 @@
|
||||
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 region cssFunction contained matchgroup=cssFunctionName start="\<symbols\s*(" end=")" oneline keepend
|
||||
syn match cssFontDescriptor "@counter-style\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
@@ -1,9 +0,0 @@
|
||||
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptor
|
||||
syn keyword cssGeneratedContentProp contained negative prefix suffix range pad fallback
|
||||
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
|
||||
syn match cssGeneratedContentProp contained "\<speak-as\>"
|
||||
syn match cssGeneratedContentAttr contained "\<disclosure-\(open\|closed\)\>"
|
||||
syn match cssGeneratedContentAttr contained "\<simp-chinese-\(in\)\=formal\>"
|
||||
syn match cssGeneratedContentAttr contained "\<trad-chinese-\(in\)\=formal\>"
|
||||
syn match cssGeneratedContentAttr contained "\<ethiopic-numeric\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<symbols\s*(" end=")" oneline keepend
|
||||
@@ -1,5 +0,0 @@
|
||||
" TODO: create cssDisplayProp group and cssDisplayAttr group
|
||||
syn match cssFontProp contained "\<display-\(inside\|outside\|extras\|box\)\>"
|
||||
syn keyword cssFontAttr contained contents
|
||||
syn match cssFontAttr contained "\<\(block\|inline\)-level\>"
|
||||
syn match cssFontAttr contained "\<inline-list-item\>"
|
||||
@@ -1,6 +0,0 @@
|
||||
" TODO: create cssFlexboxProp group and cssFlexboxAttr group
|
||||
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,8 +0,0 @@
|
||||
syn match cssFontProp contained "\<grid-template\(-\(columns\|rows\|areas\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-auto-\(columns\|rows\|flow\|position\)\>"
|
||||
syn match cssFontProp contained "\<grid-\(row\|column\)\(-\(start\|end\)\)\=\>"
|
||||
syn match cssFontProp contained "\<grid-area\>"
|
||||
syn keyword cssFontAttr contained grid subgrid rows columns dense span
|
||||
syn match cssFontAttr contained "\<inline-grid\>"
|
||||
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|repeat\)\s*(" end=")" oneline keepend
|
||||
@@ -1,7 +0,0 @@
|
||||
" TODO: create cssLineGridProp and cssLineGridAttr
|
||||
syn match cssFontProp contained "\<line-\(grid\|snap\|slack\)"
|
||||
syn match cssFontProp contained "\<box-snap\>"
|
||||
syn match cssFontAttr contained "\<half-border\>"
|
||||
syn keyword cssFontAttr contained create
|
||||
syn match cssValueNumber contained "\d\+gd"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<round\(down\|up\)\s*(" end=")" oneline keepend
|
||||
@@ -1,9 +0,0 @@
|
||||
" TODO: create cssMaskingProp group and cssMaskingValue group
|
||||
syn match cssFontProp contained "\<mask\(-\(image\|source-type\|repeat\|position\|clip\|origin\|size\|type\)\)\=\>"
|
||||
syn match cssFontProp contained "\<mask-box-image\(-\(source\|slice\|width\|outset\|repeat\)\)\=\>"
|
||||
syn match cssFontProp contained "\<clip-\(path\|rule\)\>"
|
||||
syn keyword cssFontAttr contained alpha luminance nonzero evenodd
|
||||
syn match cssFontAttr contained "\<no-clip\>"
|
||||
|
||||
" http://www.w3.org/TR/css-masking/#MaskElement
|
||||
" syn keyword cssTagName mask
|
||||
@@ -1,4 +0,0 @@
|
||||
" TODO: create cssOverflowProp group and cssOverflowAttr group
|
||||
syn match cssFontProp contained "\<max-lines\>"
|
||||
syn keyword cssFontAttr contained fragments
|
||||
syn match cssFontAttr contained "\<paged-\(x\|y\)\(-controls\)\=\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssTextProp contained "\<text-\(decoration\(-\(color\|line\|skip\|style\)\)\=\|underline-position\|emphasis\(-\(color\|position\|style\)\)\=\)\>"
|
||||
syn keyword cssTextAttr contained wavy objects alphabetic spaces edges ink under filled dot triangle sesame over
|
||||
syn match cssTextAttr contained "\<box-decoration\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssVariableProp group
|
||||
syn match cssFontProp contained "\<var-[A-Za-z_][A-Za-z0-9_-]\+\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<var\s*(" end=")" oneline keepend
|
||||
@@ -1,7 +0,0 @@
|
||||
" TODO: create cssWritingModesProp group and cssWritingModesAttr group
|
||||
syn match cssFontProp contained "\<text-\(orientation\|combine-horizontal\)\>"
|
||||
syn match cssFontProp contained "\<writing-mode\>"
|
||||
syn keyword cssFontAttr contained before after mixed isolate plaintext
|
||||
syn match cssFontAttr contained "\<\(upright\|sideways\(-right\|-left\)\=\|use-glyph-orientation\)\>"
|
||||
syn match cssFontAttr contained "\<isolate-override\>"
|
||||
syn match cssFontAttr contained "\<\(horizontal-tb\|vertical-\(rl\|lr\)\)\>"
|
||||
@@ -1,5 +0,0 @@
|
||||
" TODO: create cssAlignProp group and cssAlignAttr group
|
||||
syn match cssFontProp contained "\<\(justify\|align\)-\(self\|content\|items\)\>"
|
||||
syn keyword cssFontAttr contained safe true
|
||||
syn match cssFontAttr contained "\<\(self\|flex\)-\(start\|end\)\>"
|
||||
syn match cssFontAttr contained "\<space-\(between\|around\|evenly\)\>"
|
||||
@@ -1,4 +0,0 @@
|
||||
" TODO: create cssAnimationsProp group and cssAnimationsAttr group
|
||||
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,7 +0,0 @@
|
||||
" TODO: create cssBackgroundProp group and cssBackgroundAttr group
|
||||
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,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,4 +0,0 @@
|
||||
" TODO: create cssBreakProp group and cssBreakAttr group
|
||||
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
|
||||
syn match cssFontProp contained "\<box-decoration-break\>"
|
||||
syn keyword cssFontAttr contained any
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssCascadeProp and cssCascadeAttr
|
||||
syn keyword cssFontProp all
|
||||
syn keyword cssFontAttr 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 +0,0 @@
|
||||
syn region cssInclude start=/@supports\>/ end=/\ze{/ skipwhite skipnl contains=cssMediaType,cssMediaKeyword nextgroup=cssMediaBlock
|
||||
@@ -1,3 +0,0 @@
|
||||
syn match cssGeneratedContentProp contained "\<move-to\>"
|
||||
syn match cssGeneratedContentProp contained "\<page-policy\>"
|
||||
syn keyword cssGeneratedContentAttr contained inhibit here first last
|
||||
@@ -1,17 +0,0 @@
|
||||
syn match cssFontProp contained "\<font-feature-settings\>"
|
||||
syn match cssFontProp contained "\<font-kerning\>"
|
||||
syn match cssFontProp contained "\<font-language-override\>"
|
||||
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,6 +0,0 @@
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(target-\(counter\|counters\|text\)\|symbols\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssGeneratedContentProp contained bleed marks
|
||||
syn match cssGeneratedContentProp contained "\<bookmark-\(label\|level\|state\|target\)\>"
|
||||
syn match cssGeneratedContentProp contained "\<float-offset\>"
|
||||
syn match cssGeneratedContentProp contained "\<string-set\>"
|
||||
syn keyword cssGeneratedContentAttr contained open closed crop cross
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssHyperlinksProp group and cssHyperlinksAttr group
|
||||
syn match cssFontProp contained "\<target\(-\(name\|new\|position\)\)\=\>"
|
||||
syn keyword cssFontAttr contained current new modal window tab front back
|
||||
@@ -1,7 +0,0 @@
|
||||
" TODO: create cssImagesProp group and cssImagesAttr group
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-\(resolution\|orientation\)\>"
|
||||
syn keyword cssFontAttr contained contain cover snap
|
||||
syn match cssFontAttr contained "\<from-image\>"
|
||||
syn match cssFontAttr contained "\<scale-down\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssLayoutAttr group
|
||||
syn keyword cssFontAttr contained same
|
||||
syn keyword cssPseudoClassId contained slot
|
||||
@@ -1,16 +0,0 @@
|
||||
" TODO: create cssLineboxProp group and cssLineboxAttr group
|
||||
syn match cssFontProp contained "\<alignment-\(adjust\|baseline\)\>"
|
||||
syn match cssFontProp contained "\<baseline-shift\>"
|
||||
syn match cssFontProp contained "\<dominate-baseline\>"
|
||||
syn match cssFontProp contained "\<drop-initial-\(after-\(adjust\|align\)\|before-\(adjust\|align\)\|size\|value\)\>"
|
||||
syn match cssFontProp contained "\<inline-box-align\>"
|
||||
syn match cssFontProp contained "\<line-stacking\(-\(ruby\|shift\|strategy\)\)\=\>"
|
||||
syn match cssFontProp contained "\<text-height\>"
|
||||
syn keyword cssFontAttr contained central mathematical
|
||||
syn match cssFontAttr contained "\<\(text-\)\=\(before\|after\)-edge\>"
|
||||
syn match cssFontAttr contained "\<use-script\>"
|
||||
syn match cssFontAttr contained "\<caps-height\>"
|
||||
syn match cssFontAttr contained "\<\(exclude\|include\)-ruby\>"
|
||||
syn match cssFontAttr contained "\<\(consider\|disregard\)-shift\>"
|
||||
syn match cssFontAttr contained "\<\(\(inline\|block\)-line\|max\|grid\)-height\>"
|
||||
syn match cssFontAttr contained "\<\(font\|text\|max\)-size\>"
|
||||
@@ -1,4 +0,0 @@
|
||||
" TODO: create cssMarqueeProp group and cssMarqueeAttr group
|
||||
syn match cssFontProp contained "\<marquee-\(direction\|play-count\|speed\|style\)\>"
|
||||
syn keyword cssFontAttr contained forward reverse infinite slide alternate
|
||||
syn match cssFontAttr contained "\<marquee-\(line\|block\)\>"
|
||||
@@ -1,4 +0,0 @@
|
||||
syn region cssMediaType contained start='(' end=')' contains=css.*Attr,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape nextgroup=cssMediaComma,cssMediaAnd,cssMediaBlock skipwhite skipnl
|
||||
syn match cssMediaAnd "and" nextgroup=cssMediaType skipwhite skipnl
|
||||
syn clear cssMediaBlock
|
||||
syn region cssMediaBlock contained transparent matchgroup=cssBraces start='{' end='}' contains=cssTagName,cssSelectorOp,cssAttributeSelector,cssIdentifier,cssError,cssDefinition,cssPseudoClass,cssPseudoClassLang,cssComment,cssUnicodeEscape,cssClassName,cssURL
|
||||
@@ -1,5 +0,0 @@
|
||||
" TODO: create cssMulticolProp group and cssMulticolAttr group
|
||||
syn keyword cssFontProp contained columns
|
||||
syn match cssFontProp contained "\<column-\(count\|fill\|gap\|rule\(-\(color\|style\|width\)\)\=\|span\|width\)\>"
|
||||
syn keyword cssFontAttr contained balance
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=column\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: Create cssPageAttr group
|
||||
syn keyword cssFontAttr contained recto verso
|
||||
syn match cssFontAttr contained "\<\(avoid-\)\=page\>"
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssPresLevProp group and cssPresLevAttr group
|
||||
syn match cssFontProp contained "\<presentation-level\>"
|
||||
syn keyword cssFontAttr contained increment
|
||||
@@ -1,5 +0,0 @@
|
||||
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 region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth\(-last\)\=-\(child\|of-type\)\|not\)(" end=")" oneline
|
||||
@@ -1,3 +0,0 @@
|
||||
" TODO: create cssSizingAttr group
|
||||
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\|fill-available\|repudiate-floats\)\>"
|
||||
syn match cssFontAttr contained "\<contain-floats\>"
|
||||
@@ -1,6 +0,0 @@
|
||||
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 match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"
|
||||
@@ -1,7 +0,0 @@
|
||||
" TODO: create cssTransformsProp group and cssTransformsAttr group
|
||||
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,6 +0,0 @@
|
||||
" TODO: create cssTransitionsProp group and cssTransitionsAttr group
|
||||
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,7 +0,0 @@
|
||||
syn keyword cssUIProp contained icon resize
|
||||
syn match cssUIProp contained "\<box-sizing\>"
|
||||
syn match cssUIProp contained "\<ime-mode\>"
|
||||
syn match cssUIProp contained "\<nav-\(index\|up\|right\|down\|left\)"
|
||||
syn match cssUIProp contained "\<outline-offset\>"
|
||||
syn match cssUIProp contained "\<text-overflow\>"
|
||||
syn keyword cssUIAttr contained active inactive disabled root horizontal vertical clip ellipsis
|
||||
@@ -1,6 +0,0 @@
|
||||
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|rem\|vw\|vh\|vmin\|vmax\)"
|
||||
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
|
||||
" TODO: create cssValueResolution group
|
||||
syn match cssValueNumber contained "[-+]\=\d\+\(\.\d*\)\=dp\(i\|cm\|px\)"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(calc\|toggle\)\s*(" end=")" oneline keepend
|
||||
syn keyword cssCommonAttr contained initial
|
||||
0
after/syntax/css/cssom-1.vim
Normal file
0
after/syntax/css/cssom-1.vim
Normal file
2
after/syntax/css/cssom-view-1.vim
Normal file
2
after/syntax/css/cssom-view-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<scroll-behavior\>"
|
||||
syn keyword cssFontAttr contained smooth
|
||||
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
|
||||
3
after/syntax/css/display-3.vim
Normal file
3
after/syntax/css/display-3.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn keyword cssFontAttr contained contents discard
|
||||
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
|
||||
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
|
||||
5
after/syntax/css/fill-stroke-3.vim
Normal file
5
after/syntax/css/fill-stroke-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
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\>"
|
||||
5
after/syntax/css/filter-effects-1.vim
Normal file
5
after/syntax/css/filter-effects-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssFontProp contained "\<flood-\(color\|opacity\)\>"
|
||||
syn match cssFontProp contained "\<color-interpolation-filters\>"
|
||||
syn match cssFontProp contained "\<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
|
||||
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\>"
|
||||
15
after/syntax/css/fonts-4.vim
Normal file
15
after/syntax/css/fonts-4.vim
Normal file
@@ -0,0 +1,15 @@
|
||||
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 "\<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 "\<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-palette-values\>" nextgroup=cssFontDescriptorBlock skipwhite skipnl
|
||||
5
after/syntax/css/gcpm-3.vim
Normal file
5
after/syntax/css/gcpm-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn keyword cssGeneratedContentProp contained running
|
||||
syn match cssGeneratedContentProp contained "\<footnote-\(display\|policy\)\>"
|
||||
syn keyword cssGeneratedContentAttr contained footnote line
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(element\|running\)\s*(" end=")" oneline keepend
|
||||
syn match cssPseudoClassId contained "\<footnote-\(call\|marker\)\>"
|
||||
0
after/syntax/css/geometry-1.vim
Normal file
0
after/syntax/css/geometry-1.vim
Normal file
5
after/syntax/css/grid-1.vim
Normal file
5
after/syntax/css/grid-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
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
after/syntax/css/grid-2.vim
Normal file
1
after/syntax/css/grid-2.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn match cssValueNumber contained "\d\(.\d\+\)\=ar"
|
||||
@@ -1,22 +0,0 @@
|
||||
" HTML5 new elements
|
||||
|
||||
" Sections
|
||||
syn keyword cssTagName article section nav aside header footer
|
||||
|
||||
" Grouping content
|
||||
syn keyword cssTagName figure figcaption main
|
||||
|
||||
" Text-level semantics
|
||||
syn keyword cssTagName data time mark ruby rb rt rtc rp bdi wbr
|
||||
|
||||
" Embedded content
|
||||
syn keyword cssTagName embed video audio source track
|
||||
|
||||
" Forms
|
||||
syn keyword cssTagName datalist keygen output progress meter
|
||||
|
||||
" Interactive elements
|
||||
syn keyword cssTagName details summary dialog
|
||||
|
||||
" Scripting
|
||||
syn keyword cssTagName template canvas
|
||||
1
after/syntax/css/html5.vim
Normal file
1
after/syntax/css/html5.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssTagName picture rb rtc slot template
|
||||
6
after/syntax/css/images-3.vim
Normal file
6
after/syntax/css/images-3.vim
Normal file
@@ -0,0 +1,6 @@
|
||||
syn match cssFontProp contained "\<object-\(fit\|position\)\>"
|
||||
syn match cssFontProp contained "\<image-orientation\>"
|
||||
syn keyword cssFontAttr contained snap
|
||||
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
|
||||
2
after/syntax/css/images-4.vim
Normal file
2
after/syntax/css/images-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<image-resolution\>"
|
||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|element\|conic-gradient\)\s*(" end=")" oneline keepend
|
||||
5
after/syntax/css/inline-3.vim
Normal file
5
after/syntax/css/inline-3.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
|
||||
syn match cssFontProp contained "\<baseline-shift\>"
|
||||
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
5
after/syntax/css/line-grid-1.vim
Normal file
5
after/syntax/css/line-grid-1.vim
Normal file
@@ -0,0 +1,5 @@
|
||||
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\>"
|
||||
5
after/syntax/css/logical-1.vim
Normal file
5
after/syntax/css/logical-1.vim
Normal file
@@ -0,0 +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 "\<border-\(block\|inline\)\(\(-\(start\|end\)\)\=\(-\(width\|style\|color\)\)\=\)\=\>"
|
||||
syn match cssFontProp contained "\<border-\(start\|end\)-\(start\|end\)-radius\>"
|
||||
syn keyword cssFontAttr contained logical physical rotate
|
||||
7
after/syntax/css/masking-1.vim
Normal file
7
after/syntax/css/masking-1.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
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\>"
|
||||
2
after/syntax/css/motion-1.vim
Normal file
2
after/syntax/css/motion-1.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssFontProp contained "\<offset\(-\(path\|distance\|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
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\)\>"
|
||||
3
after/syntax/css/overflow-4.vim
Normal file
3
after/syntax/css/overflow-4.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
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/page-3.vim
Normal file
1
after/syntax/css/page-3.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn keyword cssFontAttr contained recto verso
|
||||
4
after/syntax/css/page-floats-3.vim
Normal file
4
after/syntax/css/page-floats-3.vim
Normal file
@@ -0,0 +1,4 @@
|
||||
syn match cssPositioningProp contained "\<float-\(reference\|defer\|offset\)\>"
|
||||
syn match cssPositioningAttr contained "\<inline-\(start\|end\)\>"
|
||||
syn match cssPositioningAttr contained "\<snap-\(block\|inline\)\>"
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<snap-\(block\|inline\)\s*(" end=")" oneline keepend
|
||||
1
after/syntax/css/paint-api-1.vim
Normal file
1
after/syntax/css/paint-api-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssURL contained matchgroup=cssFunctionName start="\<paint\s*(" end=")" oneline keepend
|
||||
3
after/syntax/css/pointerevents.vim
Normal file
3
after/syntax/css/pointerevents.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssFontProp contained "\<touch-action\>"
|
||||
syn keyword cssFontAttr contained manipulation
|
||||
syn match cssFontAttr contained "\<pan-\(x\|y\)\>"
|
||||
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 "\<offset-\(before\|end\|after\|start\)\>"
|
||||
syn keyword cssFontAttr contained sticky
|
||||
0
after/syntax/css/properties-values-api-1.vim
Normal file
0
after/syntax/css/properties-values-api-1.vim
Normal file
2
after/syntax/css/pseudo-4.vim
Normal file
2
after/syntax/css/pseudo-4.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn match cssPseudoClassId contained "\<inactive-selection\>"
|
||||
syn match cssPseudoClassId contained "\<\(spelling\|grammer\)-error\>"
|
||||
3
after/syntax/css/rhythm-1.vim
Normal file
3
after/syntax/css/rhythm-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
syn match cssFontProp contained "\<line-height-step\>"
|
||||
syn match cssFontProp contained "\<block-step\(-\(size\|insert\|align\|round\)\)\=\>"
|
||||
syn keyword cssFontAttr contained margin up down nearest
|
||||
7
after/syntax/css/round-display-1.vim
Normal file
7
after/syntax/css/round-display-1.vim
Normal file
@@ -0,0 +1,7 @@
|
||||
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/
|
||||
@@ -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
|
||||
3
after/syntax/css/scroll-snap-1.vim
Normal file
3
after/syntax/css/scroll-snap-1.vim
Normal file
@@ -0,0 +1,3 @@
|
||||
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 cssFontAttr contained x y mandatory proximity
|
||||
2
after/syntax/css/selectors-3.vim
Normal file
2
after/syntax/css/selectors-3.vim
Normal file
@@ -0,0 +1,2 @@
|
||||
syn keyword cssPseudoClassId contained enabled indeterminate
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(nth\(-last\)\=-\(child\|of-type\)\|not\)(" end=")" oneline
|
||||
@@ -1,9 +1,10 @@
|
||||
syn match cssSelectorOp "[|]"
|
||||
syn keyword cssPseudoClassId contained scope current past future default valid invalid required optional blank
|
||||
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-error\>"
|
||||
syn match cssPseudoClassId contained "\<\(active\|valid\|invalid\)-drop-target\>"
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":\(matches\|dir\|local-link\|current\|nth\(-last\)\=-\(match\|column\)\|column\)(" end=")" oneline
|
||||
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=":\(matches\|dir\|local-link\|current\|nth\(-last\)\=-col\|has\|drop\)(" end=")" oneline
|
||||
1
after/syntax/css/selectors-nonelement-1.vim
Normal file
1
after/syntax/css/selectors-nonelement-1.vim
Normal file
@@ -0,0 +1 @@
|
||||
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::attr(" 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