Compare commits

...

21 Commits

Author SHA1 Message Date
Kyo Nagashima
95ea1660d1 0.26.1 2018-02-06 12:34:32 +09:00
Kyo Nagashima
b581d37345 Follow changes in WD-selectors-4-20180202
See also: https://www.w3.org/TR/2018/WD-selectors-4-20180202/
2018-02-06 12:30:37 +09:00
Kyo Nagashima
73292c6213 Follow changes in CR-selectors-3-20180130
No changes, see also: https://www.w3.org/TR/2018/CR-selectors-3-20180130/
2018-02-01 19:33:58 +09:00
Kyo Nagashima
2ed61056a8 Follow changes in WD-css-ui-4-20171222
See also: http://www.w3.org/TR/2017/WD-css-ui-4-20171222/
2017-12-26 09:46:16 +09:00
Kyo Nagashima
ddbb38a194 Follow changes in CR-css-grid-1-20171214
See also: http://www.w3.org/TR/2017/CR-css-grid-1-20171214/
2017-12-14 22:36:23 +09:00
Kyo Nagashima
65ebb1fec8 Follow changes in CR-css-scroll-snap-1-20171214
See also: http://www.w3.org/TR/2017/CR-css-scroll-snap-1-20171214/
2017-12-14 22:36:12 +09:00
Kyo Nagashima
4f2cae25b2 Follow changes in CR-css-counter-styles-3-20171214
No changes, see also: http://www.w3.org/TR/2017/CR-css-counter-styles-3-20171214/
2017-12-14 22:36:12 +09:00
Kyo Nagashima
b0166696d4 Follow changes in PR-css-ui-3-20171214
No changes, see also: http://www.w3.org/TR/2017/PR-css-ui-3-20171214/
2017-12-14 22:35:45 +09:00
Kyo Nagashima
f8a7f80019 0.26.0 2017-12-12 13:15:29 +09:00
Kyo Nagashima
aed0768408 Add css-writing-modes-4.vim
This syntax is for new spec WD-css-writing-modes-4-20171207.

See also: http://www.w3.org/TR/2017/WD-css-writing-modes-4-20171207/

This commit also removes deferred properties and values from
`css-writing-modes-3.vim`.
2017-12-08 12:11:01 +09:00
Kyo Nagashima
f52a441267 Follow changes in CR-css-color-3-20171205
No changes, see also: http://www.w3.org/TR/2017/CR-css-color-3-20171205/
2017-12-06 09:42:58 +09:00
Kyo Nagashima
1ea88056c1 Follow changes in WD-css-transitions-1-20171130
No changes, see also: http://www.w3.org/TR/2017/WD-css-transitions-1-20171130/
2017-12-01 14:29:01 +09:00
Kyo Nagashima
f622f42d14 Follow changes in WD-css-transforms-1-20171130
No changes, see also: http://www.w3.org/TR/2017/WD-css-transforms-1-20171130/
2017-12-01 14:27:19 +09:00
Kyo Nagashima
f638e6c30b Follow changes in WD-css-animations-1-20171130
No changes, see also: http://www.w3.org/TR/2017/WD-css-animations-1-20171130/
2017-12-01 14:26:34 +09:00
Kyo Nagashima
9f4e52e66a 0.25.0 2017-11-23 23:26:31 +09:00
Kyo Nagashima
14394d15df Merge pull request #53 from hail2u/only-css
Drop support HTML and SCSS
2017-11-23 23:24:58 +09:00
Kyo Nagashima
1321f220ea Drop support HTML and SCSS 2017-11-11 22:23:48 +09:00
Kyo Nagashima
7d50b906d8 Follow changes in WD-css-properties-values-api-1-20171109
No changes, see also: http://www.w3.org/TR/2017/WD-css-properties-values-api-1-20171109/
2017-11-11 22:22:11 +09:00
Kyo Nagashima
99583cc304 Follow changes in CR-css-backgrounds-3-20171017
No changes, but renamed, see also: http://www.w3.org/TR/2017/CR-css-backgrounds-3-20171017/
2017-10-18 09:00:26 +09:00
Kyo Nagashima
af135857ec Merge pull request #56 from hail2u/issue55
Add webvtt1.vim
2017-10-17 19:02:19 +09:00
Kyo Nagashima
289619aa56 Add webvtt1.vim
This syntax file is for WebVTT: The Web Video Text Tracks Format.

This resolves part of #55. `:past` and `:future` is not support, because
they are used only in parentheses of `cue()`, and current CSS syntax
does not support a highlighting in parentheses of pseudo functions.
2017-10-17 18:53:00 +09:00
17 changed files with 54 additions and 1222 deletions

View File

@@ -37,8 +37,8 @@ NOTES
### Highlighting problems on: `vertical-align`, `box-shadow`, and others
Some properties do not highlight correctly by default. This is a limitation of
Vims highlight priority mechanism. To fix this problems, put following lines in
your `~/.vim/after/css.vim`:
Vims highlight priority mechanism. To fix this problems, put following lines
in your `~/.vim/after/css.vim`:
setlocal iskeyword+=-
@@ -62,9 +62,9 @@ such as `-webkit-` or `-moz-`, etc. These are hard to maintain because they are:
* Changed unexpectedly
* Removed silently
These must be supported by separate syntax plugins (Vim 7.4s 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.4s 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-]\+/
@@ -73,19 +73,12 @@ These commands highlight vendor prefixed properties and functions instantly with
cyan and bold (on gVim).
### CSS Preprocessors: [Sass][2], [LESS][3], and [Stylus][4]
`vim-css3-syntax` supports Sasss SCSS syntax only. If you want to use this
plugin with LESS, install [VIM-LESS][5]. Sasss indent syntax and Stylus are not
supported.
### Media Queries
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 7.4+ or
install [JulesWang/css.vim][6].
install [JulesWang/css.vim][2].
AUTHOR
@@ -101,8 +94,4 @@ 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
[6]: https://github.com/JulesWang/css.vim
[2]: https://github.com/JulesWang/css.vim

View File

@@ -1,5 +1,5 @@
syn match cssFontProp contained "\<\(justify\|align\|place\)-\(self\|content\|items\)\>"
syn match cssFontProp contained "\<\(grid-\)\=\(\(row\|column\)-\)\=gap\>"
syn match cssFontProp contained "\<\(\(row\|column\)-\)\=gap\>"
syn keyword cssFontAttr contained safe unsafe legacy
syn match cssFontAttr contained "\<\(self\|flex\)-\(start\|end\)\>"
syn match cssFontAttr contained "\<space-\(between\|around\|evenly\)\>"

View File

@@ -1,4 +1,3 @@
" 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\>"

View File

@@ -1,4 +1,3 @@
" 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\>"

View File

@@ -1,3 +1,3 @@
syn match cssFontProp contained "\<scroll-snap-\(type\|align\|stop\)\>"
syn match cssFontProp contained "\<scroll-\(padding\|snap-margin\)\(-\(top\|bottom\|right\|left\|\(block\|inline\)\(-\(end\|start\)\)\=\)\)\=\>"
syn match cssFontProp contained "\<scroll-\(padding\|margin\)\(-\(top\|bottom\|right\|left\|\(block\|inline\)\(-\(end\|start\)\)\=\)\)\=\>"
syn keyword cssFontAttr contained x y mandatory proximity

View File

@@ -1,4 +1,3 @@
" 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\)\)\=\>"

View File

@@ -1,4 +1,3 @@
" 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\)\)\=\>"

View File

@@ -1,3 +1,3 @@
syn match cssUIProp contained "\<caret\(-\(shape\|animation\)\)\=\>"
syn match cssUIProp contained "\<caret\(-shape\)\=\>"
syn keyword cssUIAttr contained fade underscore
syn region cssFunction contained matchgroup=cssFunctionName start="\<fade\s*(" end=")" oneline keepend

View File

@@ -1,8 +1,7 @@
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
syn match cssFontAttr contained "\<sideways\(-rl\|-lr\)\=\>"
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\)\>"

View File

@@ -0,0 +1 @@
syn match cssFontAttr contained "\<sideways-\(rl\|lr\)\>"

View File

@@ -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 invalid 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

View File

@@ -0,0 +1,2 @@
syn match cssPseudoClassId contained "::\<cue\(-region\)\=\>"
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::cue\(-region\)\=(" end=")" oneline

View File

@@ -1,79 +0,0 @@
syn include @htmlCss syntax/css/compositing-1.vim
syn include @htmlCss syntax/css/css-align-3.vim
syn include @htmlCss syntax/css/css-backgrounds-4.vim
syn include @htmlCss syntax/css/css-break-3.vim
syn include @htmlCss syntax/css/css-cascade-3.vim
syn include @htmlCss syntax/css/css-cascade-4.vim
syn include @htmlCss syntax/css/css-color-4.vim
syn include @htmlCss syntax/css/css-contain-1.vim
syn include @htmlCss syntax/css/css-content-3.vim
syn include @htmlCss syntax/css/css-counter-styles-3.vim
syn include @htmlCss syntax/css/css-device-adapt-1.vim
syn include @htmlCss syntax/css/css-display-3.vim
syn include @htmlCss syntax/css/css-flexbox-1.vim
syn include @htmlCss syntax/css/css-font-loading-3.vim
syn include @htmlCss syntax/css/css-fonts-3.vim
syn include @htmlCss syntax/css/css-fonts-4.vim
syn include @htmlCss syntax/css/css-gcpm-3.vim
syn include @htmlCss syntax/css/css-grid-1.vim
syn include @htmlCss syntax/css/css-images-4.vim
syn include @htmlCss syntax/css/css-inline-3.vim
syn include @htmlCss syntax/css/css-line-grid-1.vim
syn include @htmlCss syntax/css/css-lists-3.vim
syn include @htmlCss syntax/css/css-logical-1.vim
syn include @htmlCss syntax/css/css-masking-1.vim
syn include @htmlCss syntax/css/css-multicol-1.vim
syn include @htmlCss syntax/css/css-overflow-3.vim
syn include @htmlCss syntax/css/css-overflow-4.vim
syn include @htmlCss syntax/css/css-page-floats-3.vim
syn include @htmlCss syntax/css/css-paint-api-1.vim
syn include @htmlCss syntax/css/css-position-3.vim
syn include @htmlCss syntax/css/css-properties-values-api-1.vim
syn include @htmlCss syntax/css/css-pseudo-4.vim
syn include @htmlCss syntax/css/css-regions-1.vim
syn include @htmlCss syntax/css/css-rhythm-1.vim
syn include @htmlCss syntax/css/css-round-display-1.vim
syn include @htmlCss syntax/css/css-ruby-1.vim
syn include @htmlCss syntax/css/css-scoping-1.vim
syn include @htmlCss syntax/css/css-scroll-snap-1.vim
syn include @htmlCss syntax/css/css-shapes-1.vim
syn include @htmlCss syntax/css/css-sizing-3.vim
syn include @htmlCss syntax/css/css-style-attr.vim
syn include @htmlCss syntax/css/css-syntax-3.vim
syn include @htmlCss syntax/css/css-text-3.vim
syn include @htmlCss syntax/css/css-text-4.vim
syn include @htmlCss syntax/css/css-text-decor-3.vim
syn include @htmlCss syntax/css/css-timing-1.vim
syn include @htmlCss syntax/css/css-transforms-1.vim
syn include @htmlCss syntax/css/css-typed-om-1.vim
syn include @htmlCss syntax/css/css-ui-3.vim
syn include @htmlCss syntax/css/css-ui-4.vim
syn include @htmlCss syntax/css/css-values-3.vim
syn include @htmlCss syntax/css/css-variables-1.vim
syn include @htmlCss syntax/css/css-will-change-1.vim
syn include @htmlCss syntax/css/css-writing-modes-3.vim
syn include @htmlCss syntax/css/css3-animations.vim
syn include @htmlCss syntax/css/css3-background.vim
syn include @htmlCss syntax/css/css3-box.vim
syn include @htmlCss syntax/css/css3-color.vim
syn include @htmlCss syntax/css/css3-conditional.vim
syn include @htmlCss syntax/css/css3-exclusions.vim
syn include @htmlCss syntax/css/css3-images.vim
syn include @htmlCss syntax/css/css3-namespace.vim
syn include @htmlCss syntax/css/css3-page.vim
syn include @htmlCss syntax/css/css3-speech.vim
syn include @htmlCss syntax/css/css3-transitions.vim
syn include @htmlCss syntax/css/cssom-1.vim
syn include @htmlCss syntax/css/cssom-view-1.vim
syn include @htmlCss syntax/css/fill-stroke-3.vim
syn include @htmlCss syntax/css/filter-effects-1.vim
syn include @htmlCss syntax/css/geometry-1.vim
syn include @htmlCss syntax/css/html5.vim
syn include @htmlCss syntax/css/motion-1.vim
syn include @htmlCss syntax/css/pointerevents.vim
syn include @htmlCss syntax/css/selectors-nonelement-1.vim
syn include @htmlCss syntax/css/selectors.vim
syn include @htmlCss syntax/css/selectors4.vim
syn include @htmlCss syntax/css/svg2.vim
syn include @htmlCss syntax/css/web-animations-1.vim
syn include @htmlCss syntax/css/worklets-1.vim

View File

@@ -1 +0,0 @@
runtime! syntax/css/*.vim

View File

@@ -11,9 +11,6 @@
row-gap: legacy;
column-gap: auto;
gap: auto;
grid-column-gap: auto;
grid-row-gap: auto;
grid-gap: auto;
}
.animations {
@@ -28,7 +25,7 @@
animation-timing-function: auto;
}
.background {
.backgrounds-3 {
background-clip: space;
background-origin: round;
background-size: local;
@@ -616,7 +613,7 @@
.scroll-snap-1 {
scroll-snap-type: x;
scroll-padding: y;
scroll-snap-margin: mandatory;
scroll-margin: mandatory;
scroll-snap-align: proximity;
scroll-snap-stop: auto;
scroll-padding-top: auto;
@@ -629,16 +626,16 @@
scroll-padding-block-end: auto;
scroll-padding-block: auto;
scroll-padding-inline: auto;
scroll-snap-margin-top: auto;
scroll-snap-margin-right: auto;
scroll-snap-margin-bottom: auto;
scroll-snap-margin-left: auto;
scroll-snap-margin-inline-start: auto;
scroll-snap-margin-block-start: auto;
scroll-snap-margin-inline-end: auto;
scroll-snap-margin-block-end: auto;
scroll-snap-margin-block: auto;
scroll-snap-margin-inline: auto;
scroll-margin-top: auto;
scroll-margin-right: auto;
scroll-margin-bottom: auto;
scroll-margin-left: auto;
scroll-margin-inline-start: auto;
scroll-margin-block-start: auto;
scroll-margin-inline-end: auto;
scroll-margin-block-end: auto;
scroll-margin-block: auto;
scroll-margin-inline: auto;
}
.selectors:target,
@@ -679,19 +676,20 @@
.selectors4:placeholder-shown,
.selectors4:in-range,
.selectors4:out-of-range,
.selectors4:user-error,
.selectors4:active-drop-target,
.selectors4:valid-drop-target,
.selectors4:invalid-drop-target,
.selectors4:user-invalid,
.selectors4:matches(:hover, :focus),
.selectors4:dir(ltr),
.selectors4:local-link(0),
.selectors4:current(p, li, dt, dd),
.selectors4:nth-match(2n+1),
.selectors4:nth-last-match(-n+2),
.selectors4:nth-column(2n+1),
.selectors4:nth-last-column(-n+2),
.selectors4:column(p, li, dt, dd) {
.selectors4:nth-col(2n+1),
.selectors4:nth-last-col(-n+2),
.selectors4:target-within,
.selectors4:focus-within,
.selectors4:focus-visible,
.selectors4:playing,
.selectors4:paused,
.selectors4:has(> img),
.selectors4:drop(active) {
display: auto;
}
@@ -844,7 +842,7 @@
.ui-4 {
caret: fade;
caret-shape: fade(1em);
caret-animation: underscore;
display: underscore;
}
.values-3 {
@@ -871,6 +869,13 @@
display: auto;
}
.webvtt1::cue,
.webvtt1::cue-region,
.webvtt1::cue(#cue1),
.webvtt1::cue-region(#scroll), {
display: auto;
}
.will-change-1 {
will-change: scroll-position;
}
@@ -882,8 +887,6 @@
glyph-orientation-vertical: upright;
display: plaintext;
display: sideways;
display: sideways-rl;
display: sideways-lr;
display: isolate;
display: isolate-override;
display: horizontal-tb;
@@ -891,6 +894,11 @@
display: vertical-lr;
}
.writing-modes-4 {
display: sideways-rl;
display: sideways-lr;
}
.html5,
picture,
rb,

File diff suppressed because it is too large Load Diff