Compare commits

..

209 Commits

Author SHA1 Message Date
Kyo Nagashima
04cdd2207b Follow changes in WD-css-pseudo-4-20160607
See also: https://www.w3.org/TR/2016/WD-css-pseudo-4-20160607/
2016-06-08 19:48:53 +09:00
Kyo Nagashima
7656471758 Follow changes in WD-css-content-3-20160602
See also: https://www.w3.org/TR/2016/WD-css-content-3-20160602/
2016-06-08 19:39:30 +09:00
Kyo Nagashima
ac036acb57 Follow changes in WD-css-overflow-3-20160531
See also: https://www.w3.org/TR/2016/WD-css-overflow-3-20160531/
2016-06-04 14:50:16 +09:00
Kyo Nagashima
01e075a338 Follow changes in CR-css-flexbox-1-20160526
See also: https://www.w3.org/TR/2016/CR-css-flexbox-1-20160526/
2016-05-26 23:51:20 +09:00
Kyo Nagashima
75ac3daad7 Follow changes in CR-css-cascade-3-20160519 (no changes)
See also: https://www.w3.org/TR/2016/CR-css-cascade-3-20160519/
2016-05-20 10:59:15 +09:00
Kyo Nagashima
246d55ae53 Follow changes in WD-css-grid-1-20160519
See also: https://www.w3.org/TR/2016/WD-css-grid-1-20160519/
2016-05-20 10:57:59 +09:00
Kyo Nagashima
de24cfc34f Follow changes in WD-css-align-3-20160519
See also: https://www.w3.org/TR/2016/WD-css-align-3-20160519/
2016-05-20 10:42:51 +09:00
Kyo Nagashima
70955d83b9 Follow changes in WD-css-position-3-20160517
See also: https://www.w3.org/TR/2016/WD-css-position-3-20160517/
2016-05-20 10:40:18 +09:00
Kyo Nagashima
34a8be6642 Follow changes in WD-css-sizing-3-20160512
See also:https://www.w3.org/TR/2016/WD-css-sizing-3-20160512/
2016-05-20 10:37:44 +09:00
Kyo Nagashima
69129fdb5a Follow WD-css-snappoints-1-20160329
See also: https://www.w3.org/TR/2016/WD-css-snappoints-1-20160329/
2016-04-11 20:13:20 +09:00
Kyo Nagashima
fc691cd648 Follow WD-css-device-adapt-1-20160329 (no changes)
See also: https://www.w3.org/TR/2016/WD-css-device-adapt-1-20160329/
2016-04-11 20:09:48 +09:00
Kyo Nagashima
aeb5093190 Follow WD-cssom-view-1-20160317
See also: https://www.w3.org/TR/2016/WD-cssom-view-1-20160317/
2016-04-11 20:09:21 +09:00
Kyo Nagashima
3993c90e1d Remove unnecessary empty lines 2016-03-13 10:09:27 +09:00
Kyo Nagashima
09c2971b1c Add tests for 370e8a7 2016-03-07 10:59:13 +09:00
Kyo Nagashima
0601869517 Merge branch 'issue35'
This closes #35.
2016-03-07 10:53:39 +09:00
Anton Strömkvist
370e8a7c0a Add filter functions
https://www.w3.org/TR/filter-effects/#FilterProperty
2016-03-07 10:52:22 +09:00
Kyo Nagashima
288339b369 Follow CR-css-flexbox-1-20160301 (no changes)
See also: https://www.w3.org/TR/2016/CR-css-flexbox-1-20160301/
2016-03-02 08:57:34 +09:00
Kyo Nagashima
0d54d6319f Follow CR-css-cascade-4-20160114
No changes are made.

See also: https://www.w3.org/TR/2016/CR-css-cascade-4-20160114/
2016-01-16 10:44:31 +09:00
Kyo Nagashima
7790c1d9f3 Follow CR-css-break-3-20160114
See also: https://www.w3.org/TR/2016/CR-css-break-3-20160114/
2016-01-15 10:36:49 +09:00
Kyo Nagashima
085e6994ed Add css3-syntax.vim
See also: http://www.w3.org/TR/css3-syntax/
2016-01-03 20:41:39 +09:00
Kyo Nagashima
27cf62c0df Add geometry-1.vim
See also: http://www.w3.org/TR/geometry-1/
2016-01-03 20:41:03 +09:00
Kyo Nagashima
e39520fc9f Add web-animations.vim
See also: http://www.w3.org/TR/web-animations/
2016-01-03 20:40:55 +09:00
Kyo Nagashima
0bc4127113 Add cssom.vim
See also: http://www.w3.org/TR/cssom/
2016-01-03 20:40:14 +09:00
Kyo Nagashima
f6a6226db4 Add css-backgrounds-4.vim
See also: http://www.w3.org/TR/css-backgrounds-4/
2016-01-03 20:40:12 +09:00
Kyo Nagashima
79216af1aa Add css-device-adapt.vim
See also: http://www.w3.org/TR/css-device-adapt/
2016-01-03 20:40:00 +09:00
Kyo Nagashima
70488eec56 Add filter-effects.vim
See also: http://www.w3.org/TR/filter-effects/
2016-01-03 20:38:40 +09:00
Kyo Nagashima
eb4d73adc1 Add font-loading-3.vim
See also: http://www.w3.org/TR/css-font-loading-3/
2016-01-03 20:38:39 +09:00
Kyo Nagashima
1b6fc651ab Sort 2016-01-03 19:59:04 +09:00
Kyo Nagashima
e713b6f485 Add selectors-nonelement-1.vim
See also: http://www.w3.org/TR/selectors-nonelement-1/
2016-01-03 19:58:21 +09:00
Kyo Nagashima
a63e01af90 Add motion-1.vim
See also: http://www.w3.org/TR/motion-1/
2016-01-03 19:53:37 +09:00
Kyo Nagashima
74fd8ed4d4 Sort includes 2015-12-25 12:25:04 +09:00
Kyo Nagashima
bda3401510 Fix selector name 2015-12-25 12:25:03 +09:00
Kyo Nagashima
d5d5bbfd2e Add cssom-view.vim
This support based on latest working draft, not dev edition. The dev
edition has removed `instant` value, but it is not a big problem.

See also: http://www.w3.org/TR/2013/WD-cssom-view-20131217/

This resolves #33.
2015-12-25 12:21:20 +09:00
Kyo Nagashima
dc363c34d3 Follow CR-css-writing-modes-3-20151215/
See also: http://www.w3.org/TR/2015/CR-css-writing-modes-3-20151215/
2015-12-16 09:46:05 +09:00
Kyo Nagashima
fbb5357a0e Fix grammar 2015-12-08 17:31:43 +09:00
Kyo Nagashima
9e0ef247ce Add css-round-display-1.vim
See also: http://www.w3.org/TR/2015/WD-css-round-display-1-20150922/
2015-09-23 15:02:12 +09:00
Kyo Nagashima
a801b7b72c Add css-ui-4.vim
See also: http://www.w3.org/TR/2015/WD-css-ui-4-20150922/
2015-09-23 14:43:49 +09:00
Kyo Nagashima
f970b3abbc Rename to css-ui-3.vim 2015-09-23 14:43:33 +09:00
Kyo Nagashima
4afac28691 Add css-text-4.vim
See also: http://www.w3.org/TR/2015/WD-css-text-4-20150922/
2015-09-23 14:32:01 +09:00
Kyo Nagashima
0b469af19b Follow WD-css-grid-1-20150917
See also: http://www.w3.org/TR/2015/WD-css-grid-1-20150917/
2015-09-18 10:20:48 +09:00
Kyo Nagashima
b97c4fcd5d Follow WD-css-inline-3-20150917
See also: http://www.w3.org/TR/2015/WD-css-inline-3-20150917/

This commit also deprecates css3-linebox that I forgot to deprecate.
2015-09-18 10:12:50 +09:00
Kyo Nagashima
4d40c5a3b1 Add css-page-floats-3.vim
See also: http://www.w3.org/TR/2015/WD-css-page-floats-3-20150915/
2015-09-16 08:33:58 +09:00
Kyo Nagashima
386f60a9ac Add css-cascade-4.vim
See also: http://www.w3.org/TR/2015/WD-css-cascade-4-20150908/
2015-09-09 02:09:18 +09:00
Kyo Nagashima
68f6fba268 Clean-up test 2015-08-25 16:12:21 +09:00
Kyo Nagashima
ee279e71a7 Follow WD-css-grid-1-20150806
See also: http://www.w3.org/TR/2015/WD-css-grid-1-20150806/
2015-08-25 16:10:23 +09:00
Kyo Nagashima
9da6a1e58b Follow WD-css-display-3-20150721
See also: http://www.w3.org/TR/2015/WD-css-display-3-20150721/
2015-08-25 16:06:05 +09:00
Kyo Nagashima
551475e48a Follow CR-css-ui-3-20150707 (no changes)
See also: http://www.w3.org/TR/2015/CR-css-ui-3-20150707/
2015-07-22 09:38:29 +09:00
Kyo Nagashima
b6d3c9e843 Follow spec name changes 2015-06-12 13:14:06 +09:00
Kyo Nagashima
68a1a49e0b Follow CR-css-counter-styles-3-20150611 (no changes)
See also: http://www.w3.org/TR/2015/CR-css-counter-styles-3-20150611/
2015-06-12 05:14:07 +09:00
Kyo Nagashima
243b3504d9 Follow CR-css-values-3-20150611
See also: http://www.w3.org/TR/2015/CR-css-values-3-20150611/
2015-06-12 05:12:20 +09:00
Kyo Nagashima
33d21c75cf Follow WD-css-flexbox-1-20150514 (no changes)
See also: http://www.w3.org/TR/2015/WD-css-flexbox-1-20150514/
2015-05-15 04:14:19 +09:00
Kyo Nagashima
8feb345b5c Follow CR-css-cascade-3-20150416
This commit also moves `initial` keyword to `css-cascade-3.vim`.
See also: http://www.w3.org/TR/2015/CR-css-cascade-3-20150416/
2015-04-17 03:57:58 +09:00
Kyo Nagashima
f8db58b44a Follow WD-css3-ui-20150409 (no changes)
See also: http://www.w3.org/TR/2015/WD-css3-ui-20150409/
2015-04-10 13:01:59 +09:00
Kyo Nagashima
b24f4cdaf0 Drop css3-layout.vim
This module was renamed to “CSS Template Layout Module” and published as
Working Group Note.

See also: http://www.w3.org/TR/2015/NOTE-css-template-3-20150326/
2015-03-27 12:02:06 +09:00
Kyo Nagashima
44525a5ec7 Add css-snappoints-1.vim and tests 2015-03-27 11:39:56 +09:00
Kyo Nagashima
2258f16c42 Follow WD-css3-ui-20150310
See also: http://www.w3.org/TR/2015/WD-css3-ui-20150310/
2015-03-20 14:48:07 +09:00
Kyo Nagashima
eff2b2a4b8 Follow WD-css-grid-1-20150317
See also: http://www.w3.org/TR/2015/WD-css-grid-1-20150317/
2015-03-18 05:24:32 +09:00
Kyo Nagashima
9301019689 Update test case format
Small chunks of tests are easy to test highlighting.
2015-02-27 07:47:23 +09:00
Kyo Nagashima
dcb4759c39 Follow WD-css3-ui-20150224
See also: http://www.w3.org/TR/2015/WD-css3-ui-20150224/
2015-02-27 07:44:38 +09:00
Kyo Nagashima
8f593d8e6f Merge keywords as much as possible 2015-02-24 17:44:28 +09:00
Kyo Nagashima
8c1d19f922 Split test case for at-rule and declaration 2015-02-24 17:43:09 +09:00
OGINO Masanori
eec6128b8e Follow CR-css-counter-styles-3-20150203
See also: http://www.w3.org/TR/2015/CR-css-counter-styles-3-20150203/

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2015-02-24 17:25:50 +09:00
OGINO Masanori
cd20896c4e Add 'numeric' value for 'system' descriptor
With Vim 7.4.640, the keyword seems not to be treated by neither Vim's
css.vim nor this extension.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2015-02-24 17:08:30 +09:00
Kyo Nagashima
21b74dc4a3 Remove abandoned CSS Presentation Levels module
See also: http://www.w3.org/TR/2014/NOTE-css3-preslev-20141014/
2015-02-10 23:56:38 +09:00
Kyo Nagashima
f2dccd2c94 Add css3-positioning.vim
See also: http://www.w3.org/TR/2015/WD-css3-positioning-20150203/
2015-02-04 06:35:19 +09:00
Kyo Nagashima
a292f07fbf Add css-pseudo-4.vim and test
See also: http://www.w3.org/TR/css-pseudo-4/
2015-01-16 11:24:34 +09:00
Kyo Nagashima
de9553d8d2 Update email and URL 2015-01-04 08:18:44 +09:00
Kyo Nagashima
73ba250fa1 Add css-inline-3.vim and test
See also: http://www.w3.org/TR/css-inline-3/
2014-12-19 12:50:05 +09:00
Kyo Nagashima
cc70b92b65 Follow WD-css-align-3-20141218
No changes.

See also: http://www.w3.org/TR/2014/WD-css-align-3-20141218/
2014-12-19 12:41:41 +09:00
Kyo Nagashima
d6b86507f7 Merge pull request #29 from adelarsq/patch-1
spelling correction
2014-10-30 07:46:32 +09:00
Adelar da Silva Queiróz
e1a9871a10 spelling correction 2014-10-29 19:08:17 -02:00
Kyo Nagashima
5e4535e990 Update test 2014-10-24 03:38:57 +09:00
Kyo Nagashima
53fe2a1478 Remove from html.vim also 2014-10-24 03:38:42 +09:00
Kyo Nagashima
8a37d5f26d Remove css3-hyperlinks.vim
CSS3 Hyperlink Presentation Module is abandoned by W3C.
2014-10-24 03:09:49 +09:00
Kyo Nagashima
0813d4ce72 Remove css3-marquee.vim
CSS Marquee Module Level 3 is abandoned by W3C.
2014-10-24 03:07:56 +09:00
Kyo Nagashima
6420c0bf01 Follow WD-css-flexbox-1-20140925
See also: http://www.w3.org/TR/2014/WD-css-flexbox-1-20140925/
2014-09-26 04:21:51 +09:00
Kyo Nagashima
5586655a59 Follow WD-css-line-grid-1-20140916
See also: http://www.w3.org/TR/2014/WD-css-line-grid-1-20140916/
2014-09-17 10:51:26 +09:00
Kyo Nagashima
fc7ff7e8c7 Follow WD-css-display-3-20140911
See also: http://www.w3.org/TR/2014/WD-css-display-3-20140911/
2014-09-12 06:52:51 +09:00
Kyo Nagashima
c1a5acb705 Remove obsolete workaround 2014-08-31 03:25:29 +09:00
Kyo Nagashima
49ee3a8b08 Follow WD-css-counter-styles-3-20140826
See also: http://www.w3.org/TR/2014/WD-css-counter-styles-3-20140826/
2014-08-27 14:36:03 +09:00
Kyo Nagashima
a27d1a4e71 Follow WD-css-ruby-1-20140805 2014-08-12 12:22:54 +09:00
Kyo Nagashima
19cc3af11b Highlight @counter-style region 2014-06-16 23:27:31 +09:00
Kyo Nagashima
759fc03897 Merge pull request #27 from omasanori/fix-readme
Fix a trivial typo.
2014-06-10 16:04:27 +09:00
OGINO Masanori
5fd2ef803b Fix a trivial typo.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-06-10 07:58:46 +09:00
Kyo Nagashima
a55db5a0fd Wrap texts on 80th column 2014-06-06 02:23:40 +09:00
Kyo Nagashima
977e77443c Drop css3-mediaqueries support 2014-06-06 02:22:01 +09:00
Kyo Nagashima
cb9f1b3f70 Support css3-conditional properly 2014-06-06 02:10:59 +09:00
Kyo Nagashima
324bec05c5 Follow WD-css-masking-1-20140522
See also: http://www.w3.org/TR/2014/WD-css-masking-1-20140522/
2014-05-23 10:17:04 +09:00
Kyo Nagashima
a37b31b9a7 Follow WD-css-gcpm-3-20140513
See also: http://www.w3.org/TR/2014/WD-css-gcpm-3-20140513/

NOTE: Some functions are not highlighted correctly.
2014-05-14 01:54:06 +09:00
Kyo Nagashima
d7af6a3497 Merge pull request #26 from omasanori/master
Follow CR-html5-20140429.
2014-05-04 18:56:02 +09:00
OGINO Masanori
21be2c48e2 Follow CR-html5-20140429.
Now interactive elements are omitted from HTML5 and postponed to HTML
5.1. Stay tuned.

See also: http://www.w3.org/TR/2014/CR-html5-20140429/

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-05-04 18:18:13 +09:00
Kyo Nagashima
b19fbc8f33 Add css-will-change-1.vim and test
See Also: http://www.w3.org/TR/2014/WD-css-will-change-1-20140429/
2014-04-30 08:47:19 +09:00
Kyo Nagashima
d452be0885 Fix @supports highlighting in HTML files 2014-04-04 04:34:01 +09:00
Kyo Nagashima
abf48e7ca4 Add css-scoping-1.vim 2014-04-04 04:31:49 +09:00
Kyo Nagashima
0debd6f848 Add css-line-grid-1.vim and test
See also: http://www.w3.org/TR/2014/WD-css-line-grid-1-20140403/
2014-04-04 04:09:35 +09:00
Kyo Nagashima
4da6a699ff Follow WD-css-flexbox-1-20140325
See also: http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/

This change is for spec name change.
2014-03-26 07:41:06 +09:00
Kyo Nagashima
d2ce7482ad Follow WD-css-lists-3-20140320
See also: http://www.w3.org/TR/2014/WD-css-lists-3-20140320/
2014-03-21 13:50:56 +09:00
Kyo Nagashima
dc1e9bceab Remove History section 2014-03-03 03:55:36 +09:00
Kyo Nagashima
b958f1b432 Add notes about problems on vertical-align etc
This closes #1.
2014-03-03 03:53:13 +09:00
Kyo Nagashima
04fbdcfd54 Revert version checking code
Checking version with `hlexists()` does not work as expected.
2014-03-03 03:38:57 +09:00
Kyo Nagashima
9b9dfb7f3b Add css-display-3.vim and test
See also: http://www.w3.org/TR/2014/WD-css-display-3-20140220/
2014-02-21 10:43:28 +09:00
Kyo Nagashima
67029001ef Update README 2014-02-19 12:19:44 +09:00
Kyo Nagashima
753f686c84 Move page break values to css3-page.vim 2014-02-19 12:16:31 +09:00
Kyo Nagashima
8662ca1ca9 Follow WD-css3-regions-20140218
See also: http://www.w3.org/TR/2014/WD-css3-regions-20140218/
2014-02-19 12:14:55 +09:00
Kyo Nagashima
3cf9bf4dbb Merge branch 'master' of https://github.com/hail2u/vim-css3-syntax 2014-02-16 11:28:29 +09:00
Kyo Nagashima
4afe158ed8 Merge pull request #22 from omasanori/cr-html5-20140204
Update html5-elements.vim to W3C CR 2014-02-04.
2014-02-16 11:27:25 +09:00
OGINO Masanori
51b0a491da Update html5-elements.vim to W3C CR 2014-02-04.
Moving canvas to Scripting, adding/removing some elements and sorting
sections in line with the spec.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-02-16 09:35:11 +09:00
Kyo Nagashima
2d96c63e8c Update test for HTML 2014-02-12 05:24:34 +09:00
Kyo Nagashima
2160b10eaf Follow WD-css3-break-20140116 2014-02-03 15:14:15 +09:00
Kyo Nagashima
92ff8d401d Follow WD-css-grid-1-20140123 2014-02-03 15:09:14 +09:00
Kyo Nagashima
86e31b8206 Merge branch 'master' of https://github.com/hail2u/vim-css3-syntax 2013-12-13 02:49:38 +09:00
Kyo Nagashima
a3837f485e Merge pull request #18 from jasonkarns/patch-1
misspelling in readme
2013-12-12 09:36:09 -08:00
Jason Karns
1c19d4fe8e misspelling in readme 2013-12-12 12:22:27 -05:00
Kyo Nagashima
63515c7301 Move Selectors Level 4 features correctly 2013-12-10 06:54:15 +09:00
Kyo Nagashima
32bb059f9d Version 0.9 2013-12-06 15:11:15 +09:00
Kyo Nagashima
b46fc07e3d Add selectors4.vim and test 2013-12-06 15:10:24 +09:00
Kyo Nagashima
d73ffaf54e Add css3-speech.vim and test 2013-12-06 15:09:13 +09:00
Kyo Nagashima
2d80e2cc8f Rename css-counter-style-3.vim
Spec URL changes to: http://www.w3.org/TR/css-counter-styles-3/
2013-12-06 15:06:25 +09:00
Kyo Nagashima
11b62a3f2a Follow WD-css-shapes-1-20131203 2013-12-04 01:50:05 +09:00
Kyo Nagashima
b538c66e76 Add test for HTML 2013-11-27 11:09:58 +09:00
Kyo Nagashima
30b67f6617 Rename in html.vim too
Oops again. I need git-hooks for this.
2013-11-27 10:20:25 +09:00
Kyo Nagashima
a925872665 Fix wrong condition 2013-11-27 10:10:56 +09:00
Kyo Nagashima
ec76043c2b Check 'cssWritingModesProp' highlight group 2013-11-27 10:10:07 +09:00
Kyo Nagashima
a7b9d7c1d3 Follow spec URL changes
New spec URL: http://www.w3.org/TR/css-writing-modes-3/
2013-11-27 10:07:57 +09:00
Kyo Nagashima
79cf3853fd check 'cssTransitionProp' hilight group
This `if` statement checks Vim version (~7.3 or 7.4+) by behavior.
2013-11-19 23:08:23 +09:00
Kyo Nagashima
f2fc14b41c follow WD-css-masking-1-20131029 2013-10-30 01:15:42 +09:00
Kyo Nagashima
ddea54f6fe fix missing semicolon 2013-10-26 16:55:47 +09:00
Kyo Nagashima
d667cf6766 add Compositing and Blending Level 1 features 2013-10-26 16:54:56 +09:00
Kyo Nagashima
9d1fdb9856 update html.vim, fixes #17 2013-10-11 12:22:17 +09:00
Kyo Nagashima
706c48d8af follow spec URL changes 2013-10-11 09:51:00 +09:00
Kyo Nagashima
bc7b0675c3 update README 2013-10-11 05:16:47 +09:00
Kyo Nagashima
ad180a73bb add missing alphabetic value 2013-10-11 05:13:50 +09:00
Kyo Nagashima
912edb5aef follow WD-css-text-3-20131010 2013-10-11 05:13:14 +09:00
Kyo Nagashima
b080f02985 use reference style links 2013-09-21 10:07:01 +09:00
Kyo Nagashima
9085dd3108 recommend Vim 7.4 2013-09-21 10:04:02 +09:00
Kyo Nagashima
fa81dade02 follow WD-css3-ruby-20130919 2013-09-21 10:03:47 +09:00
Kyo Nagashima
8158b9ccae inform changes in Vim 7.4 2013-09-11 17:47:21 +09:00
Kyo Nagashima
960c05e988 follow WD-css3-grid-layout-20130910 2013-09-11 17:35:26 +09:00
Kyo Nagashima
0a44b2f0fa add notes about CSS preprocessors 2013-08-29 17:58:19 +09:00
Kyo Nagashima
704fea6e7e follow WD-css-cascade-3-20130730 2013-07-31 12:10:41 +09:00
Kyo Nagashima
3248369d64 add css3-counter-styles.vim
This module was seperated from CSS3 List and Counters module.
2013-07-19 05:44:59 +09:00
Kyo Nagashima
5a4c51ba9f add CSS Fonts Module Level 3 features 2013-07-13 12:58:01 +09:00
Kyo Nagashima
4a4f5a1c1d version 0.8 2013-07-05 15:53:24 +09:00
Kyo Nagashima
2a4a39abf4 follow 3 July 2013 HTML Standard 2013-07-03 14:36:26 +09:00
Kyo Nagashima
a0326d8c86 Add css-masking.vim and test 2013-06-21 16:20:59 +09:00
Kyo Nagashima
93f7593c83 Merge branch 'master' of github.com:hail2u/vim-css3-syntax 2013-06-21 13:30:39 +09:00
Kyo Nagashima
d77ac9d6c6 Merge pull request #13 from fragmer/master
Correct spelling of "page-policy" property.
2013-06-20 21:23:32 -07:00
fragmer
9da34dfed2 Corrected spelling of "page-policy" property. 2013-06-20 15:13:50 -06:00
Kyo Nagashima
e71446798b add missing word-wrap property 2013-06-16 22:09:59 +09:00
Kyo Nagashima
0a1d9ccc1b follow 10 June 2013 HTML Standard 2013-06-11 15:41:44 +09:00
Kyo Nagashima
2a5f8c3a47 update README.md 2013-05-31 07:22:08 +09:00
Kyo Nagashima
dbf17e8e12 follow WD-css3-regions-20130528 2013-05-30 02:51:23 +09:00
Kyo Nagashima
f395b2637e add css-shapes.vim and test 2013-05-30 02:45:04 +09:00
Kyo Nagashima
4edb910500 follow WD-css3-exclusions-20130528 2013-05-30 02:43:38 +09:00
Kyo Nagashima
59f1ecbcb7 update README.md 2013-05-27 02:09:57 +09:00
Kyo Nagashima
1b7b41ccf8 follow WD-css3-align-20130514 2013-05-27 02:09:00 +09:00
Kyo Nagashima
564a79f18d follow WD-selectors4-20120823 2013-05-27 01:58:39 +09:00
Kyo Nagashima
082a5a87ff follow WD-css3-grid-layout-20130402 2013-05-27 01:35:39 +09:00
Kyo Nagashima
a3a37718ec follow CR-css3-values-20130404 2013-05-27 01:24:31 +09:00
Kyo Nagashima
6540e20e24 add css-overflow-3.vim and test 2013-05-27 01:20:22 +09:00
Kyo Nagashima
b542ae84f6 add css-variables.vim 2013-05-27 01:14:40 +09:00
Kyo Nagashima
ab06aa42d4 add css3-page.vim 2013-05-27 00:59:42 +09:00
Kyo Nagashima
3393f839f5 fix wrong @supports test case 2013-05-27 00:54:49 +09:00
Kyo Nagashima
1652666c7e follow WD-css3-writing-modes-20120501 2013-05-27 00:53:54 +09:00
Kyo Nagashima
df4e87a9d4 seperate css-text-decor-3.vim 2013-05-27 00:36:43 +09:00
Kyo Nagashima
7e21ed50d2 follow WD-css3-text-20121113 2013-05-27 00:19:23 +09:00
Kyo Nagashima
8695044efb add css3-cascade.vim and test case 2013-05-27 00:12:52 +09:00
Kyo Nagashima
60a98a82ef add css3-sizing.vim and test 2013-05-27 00:06:59 +09:00
Kyo Nagashima
28e8833535 add css3-conditional.vim and test case 2013-05-27 00:04:09 +09:00
Kyo Nagashima
8b5caba234 update README 2013-05-26 19:09:29 +09:00
Kyo Nagashima
c110da430b Merge pull request #12 from jonathanpatt/add-html-scss-support
Enable default support for HTML and SCSS
2013-05-26 02:56:19 -07:00
Jonathan Patt
e7ecdb406d Enable default support for HTML and SCSS
Most anyone who works with CSS will encounter inline CSS in HTML at some
point, so it follows that this should support that by default.
Additionally, SCSS is quite popular at this point and it makes more
sense to support it by default than to require manually enabling it.
2012-12-16 18:10:34 -07:00
Kyo Nagashima
012c1ba6a0 update README.md 2012-08-05 19:06:06 +09:00
Kyo Nagashima
9822fdabe4 follow WD-css3-lists-20110524 2012-08-05 18:51:24 +09:00
Kyo Nagashima
baa8a8adf7 remove duplicate values: pre-wrap and pre-line 2012-08-05 18:21:49 +09:00
Kyo Nagashima
91f42a2e09 remove duplicate values: slow, fast 2012-08-05 18:17:53 +09:00
Kyo Nagashima
9fee8ab7c3 follow WD-css3-gcpm-20111129 2012-08-05 18:14:46 +09:00
Kyo Nagashima
415411f083 remove duplicated move value 2012-08-05 18:00:03 +09:00
Kyo Nagashima
0d7f20cf35 add test 2012-08-02 06:09:20 +09:00
Kyo Nagashima
46fb64da7e remove duplicated value 2012-08-02 06:06:21 +09:00
Kyo Nagashima
b46de7dfc1 remove duplicated properties 2012-08-02 06:01:04 +09:00
Kyo Nagashima
fd878df2a4 fix regexp 2012-08-02 05:45:09 +09:00
Kyo Nagashima
19779d436d remove invalid value: IDENT 2012-08-02 05:44:35 +09:00
Kyo Nagashima
f17b100e61 remove duplicated values 2012-08-02 05:37:20 +09:00
Kyo Nagashima
e2cd668764 use cssFontAttr for temporary group 2012-08-02 05:17:30 +09:00
Kyo Nagashima
c9425ea99b fix regexp bug
`column-rule` is now highlight correctly.
2012-08-02 05:13:20 +09:00
Kyo Nagashima
f2780edc75 remove duplicate property 2012-08-02 05:08:42 +09:00
Kyo Nagashima
c04bea8399 follow CR-css3-images-20120417 2012-08-01 14:34:31 +09:00
Kyo Nagashima
c0eccee47c remove deprecated CSS Grid Positioning module 2012-08-01 14:20:02 +09:00
Kyo Nagashima
7bce4e3d5c fix typo: "lable" -> "label" 2012-08-01 14:05:51 +09:00
Kyo Nagashima
f2b1eb9ce6 update version number to 0.5 2012-07-08 22:34:35 +09:00
Kyo Nagashima
2db3f42a33 update README
Add how to highlight vendor prefixed properties and functions.
2012-07-08 22:33:54 +09:00
Kyo Nagashima
eabb81144c add css3-regions.vim 2012-07-08 22:15:55 +09:00
Kyo Nagashima
7ff578ef2f add css3-exclusions.vim 2012-07-08 22:06:48 +09:00
Kyo Nagashima
2558203742 s/nimations/lign/g 2012-06-13 13:15:48 +09:00
Kyo Nagashima
c35bf8ed17 remove trailing spaces 2012-06-13 13:09:56 +09:00
Kyo Nagashima
c25d7ac926 update README 2012-06-13 13:08:53 +09:00
Kyo Nagashima
2df48de426 follow WD-css3-flexbox-20120612 2012-06-13 13:07:28 +09:00
Kyo Nagashima
e21e6ba326 add css3-align.vim
Syntax file for [CSS Box Alignment Module Level 3](http://www.w3.org/TR/css3-align/).
2012-06-13 12:57:39 +09:00
Kyo Nagashima
7ced5bde0f remove useless test 2012-06-12 14:53:21 +09:00
Kyo Nagashima
9416edfb3b remove duplicated attribute names 2012-05-26 17:32:02 +09:00
Kyo Nagashima
1be3fc610d follow WD-css3-writing-modes-20120501 2012-05-04 11:59:55 +09:00
Kyo Nagashima
80d2cf6562 follow WD-css3-transitions-20120403 2012-04-04 14:27:07 +09:00
Kyo Nagashima
ab4c64ed54 follow WD-css3-animations-20120403 2012-04-04 14:26:42 +09:00
Kyo Nagashima
08a137569b update README 2012-03-26 18:34:13 +09:00
Kyo Nagashima
3e12a088dd add css3-grid-layout.vim 2012-03-26 18:31:05 +09:00
Kyo Nagashima
354e979fd1 follow WD-css3-flexbox-20120322 2012-03-26 18:24:57 +09:00
Kyo Nagashima
caf46b8dc4 follow WD-css3-values-20120308
* Deprecated: `vm`, `fr`, `gr`, `min()`, `max()`
* New: `vmin`, `dpi`, `dpcm`, `dppx`, `cycle()`
2012-03-09 14:44:37 +09:00
Kyo Nagashima
87f9422cac add gr unit 2012-03-09 14:44:22 +09:00
82 changed files with 1922 additions and 546 deletions

156
README.md
View File

@@ -1,140 +1,100 @@
vim-css3-syntax
===============
Add CSS3 syntax support to vim's built-in `syntax/css.vim`.
Add CSS3 syntax support to [Vim][1]'s built-in `syntax/css.vim`.
INSTALLATION
------------
Extract vim-css3-syntax.tar.gz and copy contents to `~/.vim` directory.
I **strongly** recommend to install this plugin on *Vim 7.4 or higher with
default runtime files*.
### Git and pathogen
### Manual Installation
Download from GitHub, extract `vim-css3-syntax.tar.gz`, and copy the contents to
your `~/.vim` directory.
### Installing with Git and pathogen
$ cd ~/.vim/bundle
$ git clone https://github.com/hail2u/vim-css3-syntax.git
### With HTML file
NOTES
-----
Create `~/.vim/after/syntax/html.vim` and write these line:
### Highlighting problems on: `vertical-align`, `box-shadow`, and others
syn include @htmlCss syntax/css/html5-elements.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-break.vim
syn include @htmlCss syntax/css/css3-colors.vim
syn include @htmlCss syntax/css/css3-content.vim
syn include @htmlCss syntax/css/css3-flexbox.vim
syn include @htmlCss syntax/css/css3-gcpm.vim
syn include @htmlCss syntax/css/css3-grid.vim
syn include @htmlCss syntax/css/css3-hyperlinks.vim
syn include @htmlCss syntax/css/css3-images.vim
syn include @htmlCss syntax/css/css3-layout.vim
syn include @htmlCss syntax/css/css3-linebox.vim
syn include @htmlCss syntax/css/css3-lists.vim
syn include @htmlCss syntax/css/css3-marquee.vim
" syn include @htmlCss syntax/css/css3-mediaqueries.vim
syn include @htmlCss syntax/css/css3-multicol.vim
syn include @htmlCss syntax/css/css3-preslev.vim
syn include @htmlCss syntax/css/css3-ruby.vim
syn include @htmlCss syntax/css/css3-selectors.vim
syn include @htmlCss syntax/css/css3-text.vim
syn include @htmlCss syntax/css/css3-transforms.vim
syn include @htmlCss syntax/css/css3-transitions.vim
syn include @htmlCss syntax/css/css3-ui.vim
syn include @htmlCss syntax/css/css3-values.vim
syn include @htmlCss syntax/css/css3-writing-modes.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+=-
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.
### With SCSS (Sassy CSS) file
### Vendor Prefixes
Create `~/.vim/after/syntax/scss.vim` and write these lines:
runtime! syntax/css/html5-elements.vim
runtime! syntax/css/css3-animations.vim
runtime! syntax/css/css3-background.vim
runtime! syntax/css/css3-box.vim
runtime! syntax/css/css3-break.vim
runtime! syntax/css/css3-colors.vim
runtime! syntax/css/css3-content.vim
runtime! syntax/css/css3-flexbox.vim
runtime! syntax/css/css3-gcpm.vim
runtime! syntax/css/css3-grid.vim
runtime! syntax/css/css3-hyperlinks.vim
runtime! syntax/css/css3-images.vim
runtime! syntax/css/css3-layout.vim
runtime! syntax/css/css3-linebox.vim
runtime! syntax/css/css3-lists.vim
runtime! syntax/css/css3-marquee.vim
" runtime! syntax/css/css3-mediaqueries.vim
runtime! syntax/css/css3-multicol.vim
runtime! syntax/css/css3-preslev.vim
runtime! syntax/css/css3-ruby.vim
runtime! syntax/css/css3-selectors.vim
runtime! syntax/css/css3-text.vim
runtime! syntax/css/css3-transforms.vim
runtime! syntax/css/css3-transitions.vim
runtime! syntax/css/css3-ui.vim
runtime! syntax/css/css3-values.vim
runtime! syntax/css/css3-writing-modes.vim
About Vendor Extension
----------------------
I don't hava a plan to support a CSS 3 property (and function) with vendor extension, such as `-webkit-` or `-moz-`. These are hard to maintain because:
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 seperate syntax plugin.
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).
HISTORY
-------
### CSS Preprocessors: [Sass][2], [LESS][3], and [Stylus][4]
### v0.4
* Add CSS Fragmentation Module Level 3 features
* Fix a problem on pseudo-class and pseudo-element names inside @media block
* Fix a problem on media type and expression
* Add CSS Values and Units Module Level 3 features
* Follow spec updates
* Some minor big fixes
`vim-css3-syntax` supports Sass's SCSS syntax only. If you want to use this
plugin with LESS, install [VIM-LESS][5]. Sass's indent syntax and Stylus are not
supported.
### v0.3
### Media Queries
* Add CSS3 Presentation Levels Module features
* Add CSS3 Lists Module features
* Add CSS3 Generated and Replaced Content Module features
* Add CSS Template Layout Module features
* Add CSS Image Values and Replaced Content Module Level 3 features
* Fix a problem on class names inside @media block
* Some minor bug fixes
### v0.2
* Almost all CSS3 features added
### v0.1
* Initial release
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].
AUTHOR
------
Kyo Namegashima <kyo@hail2u.net>
Kyo Nagashima <hail2u@gmail.com> (https://kyonagashima.com/)
LICENSE
-------
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

View File

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

View File

@@ -0,0 +1,5 @@
" TODO: create cssAlignProp group and cssAlignAttr group
syn match cssFontProp contained "\<\(justify\|align\)-\(self\|content\|items\)\>"
syn keyword cssFontAttr contained safe unsafe
syn match cssFontAttr contained "\<\(self\|flex\)-\(start\|end\)\>"
syn match cssFontAttr contained "\<space-\(between\|around\|evenly\)\>"

View 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\)\>"

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
syn match cssFontProp contained "\<box-decoration-break\>"

View File

@@ -0,0 +1,2 @@
syn keyword cssFontProp all
syn keyword cssCommonAttr contained initial unset

View File

@@ -0,0 +1,2 @@
syn keyword cssCommonAttr contained revert
syn region cssURL contained matchgroup=cssFunctionName start="\<supports\s*(" end=")" oneline keepend

View 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

View File

@@ -0,0 +1,14 @@
" TODO: create cssCounterStyleDescriptor for `@counter-style` descriptors
syn region cssInclude start=/@counter-style\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock
syn keyword cssGeneratedContentProp contained system negative prefix suffix range pad fallback
syn match cssGeneratedContentProp contained "\<\(additive-\)\=symbols\>"
syn match cssGeneratedContentProp contained "\<speak-as\>"
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

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<\(min\|max\|user\)-zoom\>"
syn region cssInclude start=/@viewport\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock

View File

@@ -0,0 +1,5 @@
" TODO: create cssDisplayProp group and cssDisplayAttr group
syn match cssFontProp contained "\<box-suppress\>"
syn keyword cssFontAttr contained contents discard
syn match cssFontAttr contained "\<flow\(-root\)\=\>"
syn match cssFontAttr contained "\<inline-list-item\>"

View File

@@ -0,0 +1,5 @@
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\>"

View File

@@ -0,0 +1 @@
" N/A

View 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\)\>"

View File

@@ -0,0 +1,10 @@
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 match cssFontProp contained "\<grid\(-\(column\|row\)\)\=-gap\>"
syn keyword cssFontAttr contained grid subgrid dense span
syn match cssFontAttr contained "\<inline-grid\>"
syn match cssFontAttr contained "\<auto-flow\>"
syn match cssValueNumber contained "[01]\(.\d\+\)\=fr"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(minmax\|fit-content\|repeat\)\s*(" end=")" oneline keepend

View File

@@ -0,0 +1,4 @@
syn match cssFontProp contained "\<\(dominant\|alignment\)-baseline\>"
syn match cssFontProp contained "\<baseline-shift\>"
syn match cssFontProp contained "\<initial-letter\(-\(align\|wrap\)\)\="
syn keyword cssFontAttr contained mathematical ideographic

View File

@@ -0,0 +1,6 @@
" TODO: create cssLineGridProp and cssLineGridAttr
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\>"

View File

@@ -0,0 +1,6 @@
syn match cssGeneratedContentProp contained "\<marker-side\>"
syn match cssGeneratedContentProp contained "\<counter-set\>"
syn keyword cssGeneratedContentAttr contained marker
syn match cssGeneratedContentAttr contained "\<list-container\>"
syn keyword cssPseudoClassId contained marker
syn region cssFunction contained matchgroup=cssFunctionName start="\<counters\s*(" end=")" oneline keepend

View File

@@ -0,0 +1,10 @@
" TODO: create cssMaskingProp group and cssMaskingValue group
syn match cssFontProp contained "\<clip-\(path\|rule\)\>"
syn match cssFontProp contained "\<mask\(-\(image\|mode\|repeat\|position\|clip\|origin\|size\|composite\|type\)\)\=\>"
syn match cssFontProp contained "\<mask-border\(-\(source\|mode\|slice\|width\|outset\|repeat\)\)\=\>"
syn keyword cssFontAttr contained nonzero evenodd alpha luminance add subtract intersect exclude
syn match cssFontAttr contained "\<\(fill\|stroke\|view\)-box\>"
syn match cssFontAttr contained "\<no-clip\>"
" http://www.w3.org/TR/css-masking/#MaskElement
syn keyword cssTagName mask

View File

@@ -0,0 +1 @@
syn match cssFontProp contained "\<max-lines\>"

View 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

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<offset-\(before\|end\|after\|start\)\>"
syn keyword cssFontAttr contained sticky

View File

@@ -0,0 +1,2 @@
syn match cssPseudoClassId contained "\<inactive-selection\>"
syn match cssPseudoClassId contained "\<\(spelling\|grammer\)-error\>"

View 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/

View File

@@ -0,0 +1,4 @@
" TODO: create cssRubyProp group and cssRubyAttr group
syn match cssFontProp contained "\<ruby-\(position\|merge\|align\)"
syn match cssFontAttr contained "\<ruby-\(base\|text\)-container\>"
syn match cssFontAttr contained "\<inter-character\>"

View File

@@ -0,0 +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/"

View File

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

View File

@@ -0,0 +1 @@
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\)\>"

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<scroll-snap-\(type\|padding\|margin\|align\)\=\>"
syn keyword cssFontAttr contained mandatory proximity

View File

@@ -0,0 +1,8 @@
syn keyword cssTextProp contained hyphens
syn match cssTextProp contained "\<line-break\>"
syn match cssTextProp contained "\<overflow-wrap\>"
syn match cssTextProp contained "\<tab-size\>"
syn keyword cssTextAttr contained manual loose strict hanging
syn match cssTextAttr contained "\<match-parent\>"
syn match cssTextAttr contained "\<each-line\>"
syn match cssTextAttr contained "\<full-width\>"

View File

@@ -0,0 +1,14 @@
syn match cssTextProp contained "\<text-space-\(collapse\|trim\)\>"
syn match cssTextProp contained "\<text-\(wrap\|spacing\)\>"
syn match cssTextProp contained "\<wrap-\(before\|after\|inside\)\>"
syn match cssTextProp contained "\<hyphenate-\(character\|limit-\(zone\|chars\|lines\|last\)\)\>"
syn keyword cssTextAttr contained spread punctuation
syn match cssTextAttr contained "\<preserve-\(auto\|trim\|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 "\<no-compress\>"
syn match cssTextAttr contained "\<ideograph-\(alpha\|numeric\)\>"

View File

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

View File

@@ -0,0 +1,2 @@
syn match cssUIProp contained "\<caret-color\>"
syn keyword cssUIAttr contained grab grabbing

View File

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

View File

@@ -0,0 +1,3 @@
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|vw\|vh\|vmin\|vmax\|q\)"
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(calc\|toggle\)\s*(" end=")" oneline keepend

View File

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

View File

@@ -0,0 +1,3 @@
" TODO: create cssWillChangeProp group and cssWillChangeAttr group
syn match cssFontProp contained "\<will-change\>"
syn match cssFontAttr contained "\<scroll-position\>"

View File

@@ -0,0 +1,8 @@
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 match cssFontAttr contained "\<isolate\(-override\)\=\>"
syn match cssFontAttr contained "\<horizontal-tb\>"
syn match cssFontAttr contained "\<vertical-\(rl\|lr\)\>"

View File

@@ -1,3 +1,4 @@
" TODO: create cssAnimationsProp group and cssAnimationsAttr group
syn match cssFontProp contained "\<animation\(-\(delay\|direction\|duration\|iteration-count\|name\|play-state\|timing-function\)\)\=\>"
syn keyword cssFontAttr contained IDENT running paused
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

@@ -2,6 +2,6 @@
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-\(decoration-break\|shadow\)\>"
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\>"

View File

@@ -1,5 +1,5 @@
syn match cssBoxProp contained "\<overflow-\(style\|x\|y\)\>"
syn match cssBoxProp contained "\<rotation\(-point\)\=\>"
syn keyword cssBoxAttr contained scrollbar panner move marquee
syn keyword cssBoxAttr contained scrollbar panner marquee
syn match cssBoxAttr contained "\<ruby\(-\(base\(-group\)\=\|text\(-group\)\=\)\)\=\>"
syn match cssBoxAttr contained "\<no-\(display\|content\)\>"

View File

@@ -1,3 +0,0 @@
" TODO: create cssBreakProp group and cssBreakAttr group
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
syn match cssFontAttr contained "\<\(avoid-\)\=region\>"

View File

@@ -0,0 +1 @@
syn region cssInclude start=/@supports\>/ end=/\ze{/ skipwhite skipnl contains=css.*Prop,css.*Attr,cssValueInteger,cssValueLength,cssMediaKeyword,cssVendor,cssIncludeKeyword,cssComment nextgroup=cssMediaBlock

View File

@@ -1,3 +0,0 @@
syn match cssGeneratedContentProp contained "\<move-to\>"
syn match cssGeneratedContentProp contained "\<page-polcy\>"
syn keyword cssGeneratedContentAttr contained inhibit here first last

View File

@@ -0,0 +1,3 @@
" TODO: create cssExclusionsProp group and cssExclusionsAttr group
syn match cssFontProp contained "\<wrap-\(flow\|through\)\>"
syn keyword cssFontAttr contained minimum maximum

View File

@@ -1,6 +0,0 @@
" TODO: create cssFlexboxProp group and cssFlexboxAttr group
syn match cssFontProp contained "\<flex-\(align\|flow\|line-pack\|order\|pack\)\>"
syn keyword cssFontAttr contained flexbox row wrap
syn match cssFontAttr contained "\<inline-flexbox\>"
syn match cssFontAttr contained "\<\(row\|column\|wrap\)-reverse\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<flex\s*(" end=")" oneline keepend

View File

@@ -0,0 +1,17 @@
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

View File

@@ -1,10 +0,0 @@
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(target-\(counter\|counters\|text\)\|symbols\)\s*(" end=")" oneline keepend
syn keyword cssGeneratedContentProp contained bleed hyphens marks
syn match cssGeneratedContentProp contained "\<bookmark-\(lable\|level\|state\|target\)\>"
syn match cssGeneratedContentProp contained "\<float-offset\>"
syn match cssGeneratedContentProp contained "\<hyphenate-\(before\|character\|lines\|resource\)\>"
syn match cssGeneratedContentProp contained "\<image-resolution\>"
syn match cssGeneratedContentProp contained "\<string-set\>"
syn keyword cssGeneratedContentAttr contained open closed manual crop cross
syn match cssGeneratedContentAttr contained "\<no-limit\>"
syn match cssGeneratedContentAttr contained "\<super-decimal\>"

View File

@@ -1,2 +0,0 @@
" TODO: create cssGridProp group and cssGridAttr group
syn match cssFontProp contained "\<grid-\(columns\|rows\)\>"

View File

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

View File

@@ -2,5 +2,6 @@
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\|element\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(image\|\(repeating-\)\=\(linear\|radial\)-gradient\)\s*(" end=")" oneline keepend

View File

@@ -1,3 +0,0 @@
" TODO: create cssLayoutAttr group
syn keyword cssFontAttr contained same
syn keyword cssPseudoClassId contained slot

View File

@@ -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\>"

View File

@@ -1,18 +0,0 @@
syn keyword cssGeneratedContentAttr contained box check diamond hyphen
syn keyword cssGeneratedContentAttr contained syriac tamil
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-armenian\>"
syn match cssGeneratedContentAttr contained "\<ethiopic-numeric\>"
syn match cssGeneratedContentAttr contained "\<japanese-\(formal\|informal\)\>"
syn match cssGeneratedContentAttr contained "\<\(simp\|trad\)-chinese-\(formal\|informal\)\>"
syn keyword cssGeneratedContentAttr contained binary bengali cambodian devanagari gujarati gurmukhi kannada khmer lao malayalam mongolian myanmar octal oriya persian telugu tibetan thai urdu
syn match cssGeneratedContentAttr contained "\<arabic-indic\>"
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-hexadecimal\>"
syn keyword cssGeneratedContentAttr contained afar amharic oromo sidama somali tigre
syn match cssGeneratedContentAttr contained "\<ethiopic\(-\(abegede\|abegede-am-et\|abegede-gez\|abegede-ti-er\|abegede-ti-et\|halehame-aa-er\|halehame-aa-et\|halehame-am-et\|halehame-gez\|halehame-om-et\|halehame-sid-et\|halehame-so-et\|halehame-ti-er\|halehame-ti-et\|halehame-tig\)\)\=\>"
syn match cssGeneratedContentAttr contained "\<hangul\(-consonant\)\=\>"
syn match cssGeneratedContentAttr contained "\<\(lower\|upper\)-norwegian\>"
syn match cssGeneratedContentAttr contained "\<tigrinya-\(er\|er-abegede\|et\|et-abegede\)\>"
syn keyword cssGeneratedContentAttr contained asterisks footnotes
syn match cssGeneratedContentAttr contained "\<\(circled\|dotted\|double-circled\|filled-circled\|parenthesised\)-decimal\>"
syn match cssGeneratedContentAttr contained "\<\(circled-\(lower\|upper\)\|parenthesised-lower\)-latin\>"
syn keyword cssPseudoClassId contained marker

View File

@@ -1,5 +0,0 @@
" TODO: create cssMarqueeProp group and cssMarqueeAttr group
syn match cssFontProp contained "\<marquee-\(direction\|play-count\|speed\|style\)\>"
syn match cssFontProp contained "\<overflow-style\>"
syn keyword cssFontAttr contained forward reverse infinite slow fast slide alternate
syn match cssFontAttr contained "\<marquee-\(line\|block\)\>"

View File

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

View File

@@ -1,5 +1,5 @@
" 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 page column balance
syn match cssFontAttr contained "\<avoid-\(page\|column\)\>"
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\>"

View File

@@ -0,0 +1,3 @@
" TODO: Create cssPageAttr group
syn keyword cssFontAttr contained recto verso
syn match cssFontAttr contained "\<\(avoid-\)\=page\>"

View File

@@ -1,3 +0,0 @@
" TODO: create cssPresLevProp group and cssPresLevAttr group
syn match cssFontProp contained "\<presentation-level\>"
syn keyword cssFontAttr contained increment

View File

@@ -0,0 +1,6 @@
" 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 cssPseudoClassId contained region

View File

@@ -1,5 +0,0 @@
" TODO: create cssRubyProp group and cssRubyAttr group
syn match cssFontProp contained "\<ruby-\(align\|overhang\|position\|span\)"
syn keyword cssUIAttr contained start end
syn match cssUIAttr contained "\<distribute-\(letter\|space\)\>"
syn match cssUIAttr contained "\<line-edge\>"

View File

@@ -1,5 +1,5 @@
syn keyword cssPseudoClassId contained target enabled disabled checked indeterminate root empty
syn match cssPseudoClassId contained "\<first-of-type\>"
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

View File

@@ -0,0 +1,6 @@
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\)"

View File

@@ -0,0 +1 @@
" N/A

View File

@@ -1,17 +0,0 @@
syn match cssTextProp contained "\<hanging-punctuation\>"
syn match cssTextProp contained "\<line-break\>"
syn match cssTextProp contained "\<overflow-wrap\>"
syn match cssTextProp contained "\<tab-size\>"
syn match cssTextProp contained "\<text-\(align-last\|autospace\|decoration\(-\(color\|line\|skip\|style\)\)\=\|emphasis\(-\(color\|position\|style\)\)\=\|justify\|shadow\|space-collapse\|underline-position\|wrap\)\>"
syn match cssTextProp contained "\<word-break\>"
syn keyword cssTextAttr contained loose strict start end blink objects spaces ink edges wavy filled open dot circle triangle sesame hanging distribute kashida preserve alphabetic
syn match cssTextAttr contained "\<\(allow\|force\)-end\>"
syn match cssTextAttr contained "\<keep-all\>"
syn match cssTextAttr contained "\<match-parent\>"
syn match cssTextAttr contained "\<double-circle\>"
syn match cssTextAttr contained "\<each-line\>"
syn match cssTextAttr contained "\<inter-\(word\|ideograph\|cluster\)\>"
syn match cssTextAttr contained "\<preserve-breaks\>"
syn match cssTextAttr contained "\<full-\(width\|size-kana\)\>"
syn match cssTextAttr contained "\<pre-\(wrap\|line\)\>"
syn match cssTextAttr contained "\<break-\(all\|word\)\>"

View File

@@ -1,5 +1,6 @@
" TODO: create cssTransitionProp group and cssTransitionAttr group
syn match cssFontProp contained "\<transition\(-\(delay\|duration\|property\|timing-function\)\)\=\>"
" 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 region cssFunction contained matchgroup=cssFunctionName start="\<cubic-bezier\s*(" end=")" oneline keepend
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend

View File

@@ -1,8 +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\(-\(color\|offset\|style\|width\)\)\="
syn match cssUIProp contained "\<text-overflow\>"
syn keyword cssUIAttr contained active inactive disabled root horizontal vertical clip ellipsis
syn match cssUIAttr contained "\<\(content\|border\)-box\>"

View File

@@ -1,5 +0,0 @@
syn match cssValueLength contained "[-+]\=\d\+\(\.\d*\)\=\(ch\|rem\|vw\|vh\|vm\)"
syn match cssValueAngle contained "[-+]\=\d\+\(\.\d*\)\=turn"
" TODO: create cssValueLayout group
syn match cssValueInteger contained "\d\+\(fr\|gr\)"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(calc\|min\|max\)\s*(" end=")" oneline keepend

View File

@@ -1,9 +0,0 @@
" TODO: create cssWritingModeProp group and cssWritingModeAttr group
syn match cssFontProp contained "\<text-\(orientation\|combine-\(horizontal\|mode\)\)\>"
syn match cssFontProp contained "\<writing-mode\>"
syn keyword cssFontAttr contained before after alpha latin alphanumeric isolate plaintext
syn match cssFontAttr contained "\<\(\(min\|max\|fit\)-content\|fill-available\)\>"
syn match cssFontAttr contained "\<ascii-digits\>"
syn match cssFontAttr contained "\<\(\(no-\)\=compress\|use-glyphs\)\>"
syn match cssFontAttr contained "\<\(upright\(-right\)\=\|sideways\(-right\|-left\)\=\|use-glyph-orientation\)\>"
syn match cssFontAttr contained "\<\(horizontal-tb\|vertical-\(rl\|lr\)\)\>"

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<scroll-behavior\>"
syn keyword cssFontAttr contained smooth

View File

@@ -0,0 +1 @@
" N/A

View 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

View File

@@ -0,0 +1 @@
" N/A

View File

@@ -1,2 +1,19 @@
" HTML5 new elements
syn keyword cssTagName section article aside hgroup header footer nav figure figcaption video audio source embed mark progress meter data time ruby rt rp bdi wbr canvas command details summary datalist keygen output
" 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
" Scripting
syn keyword cssTagName template canvas

View File

@@ -0,0 +1,2 @@
syn match cssFontProp contained "\<motion\(-\(path\|offset\|rotation\)\)\=\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<path\s*(" end=")" oneline keepend

View File

@@ -0,0 +1 @@
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start="::attr(" end=")" oneline

View File

@@ -0,0 +1,9 @@
syn match cssSelectorOp "[|]"
syn keyword cssPseudoClassId contained scope current past future default valid invalid required optional blank
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

View File

@@ -0,0 +1 @@
" N/A

62
after/syntax/html.vim Normal file
View File

@@ -0,0 +1,62 @@
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-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-gcpm-3.vim
syn include @htmlCss syntax/css/css-grid-1.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-masking-1.vim
syn include @htmlCss syntax/css/css-overflow-3.vim
syn include @htmlCss syntax/css/css-page-floats-3.vim
syn include @htmlCss syntax/css/css-positioning-3.vim
syn include @htmlCss syntax/css/css-pseudo-4.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-shapes-1.vim
syn include @htmlCss syntax/css/css-sizing-3.vim
syn include @htmlCss syntax/css/css-snappoints-1.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-ui-3.vim
syn include @htmlCss syntax/css/css-ui-4.vim
syn include @htmlCss syntax/css/css-values.vim
syn include @htmlCss syntax/css/css-variables.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-colors.vim
syn include @htmlCss syntax/css/css3-conditional.vim
syn include @htmlCss syntax/css/css3-exclusions.vim
syn include @htmlCss syntax/css/css3-fonts.vim
syn include @htmlCss syntax/css/css3-images.vim
syn include @htmlCss syntax/css/css3-multicol.vim
syn include @htmlCss syntax/css/css3-page.vim
syn include @htmlCss syntax/css/css3-regions.vim
syn include @htmlCss syntax/css/css3-selectors.vim
syn include @htmlCss syntax/css/css3-speech.vim
syn include @htmlCss syntax/css/css3-syntax.vim
syn include @htmlCss syntax/css/css3-transforms.vim
syn include @htmlCss syntax/css/css3-transitions.vim
syn include @htmlCss syntax/css/cssom-view.vim
syn include @htmlCss syntax/css/cssom.vim
syn include @htmlCss syntax/css/filter-effects.vim
syn include @htmlCss syntax/css/geometry-1.vim
syn include @htmlCss syntax/css/html5-elements.vim
syn include @htmlCss syntax/css/motion-1.vim
syn include @htmlCss syntax/css/selectors-nonelement-1.vim
syn include @htmlCss syntax/css/selectors4.vim
syn include @htmlCss syntax/css/web-animations.vim

1
after/syntax/scss.vim Normal file
View File

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

File diff suppressed because it is too large Load Diff

813
test/test.html Normal file
View File

@@ -0,0 +1,813 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>vim-css3-syntax</title>
<link rel="stylesheet" href="http://hail2u.net/styles/natural.min.css">
<style>
.align {
justify-self: safe;
justify-content: unsafe;
justify-items: self-start;
align-self: self-end;
align-content: flex-start;
align-items: flex-end;
display: space-around;
display: space-between;
display: space-evenly;
}
</style>
<style>
.animations {
animation: forwards;
animation-delay: backwards;
animation-direction: running;
animation-duration: paused;
animation-fill-mode: alternate-reverse;
animation-iteration-count: auto;
animation-name: auto;
animation-play-state: auto;
animation-timing-function: auto;
}
</style>
<style>
.background {
background-clip: space;
background-origin: round;
background-size: local;
border-image: fill;
border-image-source: stretch;
border-image-slice: clone;
border-image-width: slice;
border-image-outset: padding-box;
border-image-repeat: border-box;
border-radius: content-box;
border-top-right-radius: auto;
border-bottom-right-radius: auto;
border-bottom-left-radius: auto;
border-top-left-radius: auto;
box-shadow: auto;
}
</style>
<style>
.background-4 {
background-position-x: x-start;
background-position-y: x-end;
background-position-inline: y-start;
background-position-block: y-end;
corner-shape: bevel;
corners: scoop;
border-limit: notch;
border-clip: auto;
border-clip-top: auto;
border-clip-right: auto;
border-clip-bottom: auto;
border-clip-left: auto;
}
</style>
<style>
.box {
overflow-style: scrollbar;
overflow-x: panner;
overflow-y: move;
rotation-point: marquee;
display: ruby;
display: ruby-base;
display: ruby-text;
display: ruby-base-group;
display: ruby-text-group;
display: no-display;
display: no-content;
}
</style>
<style>
.break {
break-after: auto;
break-before: auto;
break-inside: auto;
box-decoration-break: auto;
}
</style>
<style>
.cascade-3 {
all: initial;
display: unset;
}
</style>
<style>
@import "test.css" supports(display: auto);
.cascade-4 {
display: revert;
}
</style>
<style>
.colors {
opacity: rgba(0, 0, 0, 1);
display: hsla(0, 0, 0, 1);
display: currentColor;
}
</style>
<style>
@supports (display: auto) or
(display: auto) not
(display: auto) {
.conditional {
display: auto;
}
}
</style>
<style>
.compositing {
mix-blend-mode: multiply;
isolation: screen;
background-blend-mode: overlay;
display: darken;
display: lighten;
display: color-dodge;
display: color-burn;
display: hard-light;
display: soft-light;
display: difference;
display: exclusion;
display: hue;
display: saturation;
display: color;
display: luminosity;
}
</style>
<style>
.content {
string-set: open;
bookmark-level: closed;
bookmark-label: leader('.');
bookmark-state: string(heading, first);
display: target-counter(attr(href url), page);
display: target-counters(lack-of-example);
display: target-text(attr(href url));
}
</style>
<style>
@counter-style counter-style {
system: cyclic;
negative: symbolic;
prefix: additive;
suffix: extends;
range: bullets;
pad: numbers;
fallback: words;
symbols: symbols("*" "\2020" "\2021" "\A7");
additive-symbols: auto;
speak-as: auto;
}
</style>
<style>
.counter-style {
display: arabic-indic;
display: upper-armenian;
display: lower-armenian;
display: bengali;
display: cambodian;
display: khmer;
display: cjk-decimal;
display: devanagari;
display: gujarati;
display: gurmukhi;
display: kannada;
display: lao;
display: malayalam;
display: mongolian;
display: myanmar;
display: oriya;
display: persian;
display: tamil;
display: telugu;
display: thai;
display: tibetan;
display: cjk-earthly-branch;
display: cjk-heavenly-stem;
display: disclosure-closed;
display: disclosure-open;
display: japanese-informal;
display: japanese-formal;
display: korean-hangul-formal;
display: korean-hanja-informal;
display: korean-hanja-formal;
display: simp-chinese-informal;
display: simp-chinese-formal;
display: trad-chinese-informal;
display: trad-chinese-formal;
display: ethiopic-numeric;
}
</style>
<style>
.cssom-view {
scroll-behavior: smooth;
}
</style>
<style>
.cssom {
display: auto;
}
</style>
<style>
.display {
box-suppress: flow;
display: flow-root;
display: contents;
display: inline-list-item;
display: discard;
}
</style>
<style>
.exclusions {
wrap-flow: minimum;
wrap-through: maximum;
}
</style>
<style>
.filter-effects {
flood-color: sRGB;
flood-opacity: linearRGB;
color-interpolation-filters: auto;
lighting-color: auto;
display: blur(5px);
display: brightness(0.4);
display: contrast(200%);
display: drop-shadow(16px 16px 20px blue);
display: grayscale(50%);
display: hue-rotate(90deg);
display: invert(75%);
display: opacity(25%);
display: saturate(30%);
display: sepia(60%);
}
</style>
<style>
.flexbox {
flex-direction: flex;
flex-wrap: inline-flex;
flex-flow: row;
order: row-reverse;
flex: column-reverse;
flex-grow: wrap;
flex-shrink: wrap-reverse;
}
</style>
<style>
.font-loading-3 {
display: auto;
}
</style>
<style>
.fonts {
font-feature-settings: common-ligatures;
font-kerning: no-common-ligatures;
font-language-override: discretionary-ligatures;
font-synthesis: no-discretionary-ligatures;
font-variant-alternates: historical-ligatures;
font-variant-caps: no-historical-ligatures;
font-variant-east-asian: contextual;
font-variant-ligatures: no-contextual;
font-variant-numeric: stylistic(feature-value-name);
font-variant-position: historical-forms;
display: styleset(feature-value-name #);
display: character-variant(feature-vlue-name #);
display: swash(feature-value-name);
display: ornaments(feature-value-name);
display: annotation(feature-value-name);
display: all-small-caps;
display: petite-caps;
display: all-petite-caps;
display: unicase;
display: titling-caps;
display: lining-nums;
display: oldstyle-nums;
display: proportional-nums;
display: tabular-nums;
display: diagonal-fractions;
display: stacked-fractions;
display: ordinal;
display: slashed-zero;
display: jis78;
display: jis83;
display: jis90;
display: jis04;
display: simplified;
display: traditional;
display: proportional-width;
}
</style>
<style>
.gcpm::footnote-call,
.gcpm::footnote-marker {
running: footnote;
footnote-display: line;
footnote-policy: element(header);
display: running(heading);
}
</style>
<style>
.geometry-1 {
display: auto;
}
</style>
<style>
.grid {
grid-template-columns: grid;
grid-template-rows: inline-grid;
grid-template-areas: minmax(0, 1);
grid-template: fit-content(10%);
grid-auto-columns: repeat(4);
grid-auto-rows: 0.2fr;
grid-auto-flow: dense;
grid-auto-position: auto-flow;
grid: subgrid;
grid-row-start: span;
grid-column-start: auto;
grid-row-end: auto;
grid-column-end: auto;
grid-column: auto;
grid-row: auto;
grid-area: auto;
grid-column-gap: auto;
grid-row-gap: auto;
grid-gap: auto;
}
</style>
<style>
.images {
object-fit: contain;
object-position: cover;
image-resolution: snap;
image-orientation: scale-down;
display: from-image;
display: image("sprite.svg#xywh=40,0,20,20");
display: linear-gradient(to bottom, yellow, blue);
display: radial-gradient(farthest-corner at 50% 50%, yellow, green);
display: repeating-linear-gradient(to bottom, yellow, blue);
display: repeating-radial-gradient(farthest-corner at 50% 50%, yellow, green);
}
</style>
<style>
.inline {
dominant-baseline: mathematical;
alignment-baseline: ideographic;
baseline-shift: auto;
initial-letter: auto;
initial-letter-align: auto;
initial-letter-wrap: auto;
}
</style>
<style>
.line-grid {
line-grid: create;
line-snap: block-start;
box-snap: block-end;
display: first-baseline;
display: last-baseline;
}
</style>
<style>
.lists::marker {
display: auto;
}
</style>
<style>
.masking {
clip-path: fill-box;
clip-rule: stroke-box;
mask-image: view-box;
mask-mode: nonzero;
mask-repeat: evenodd;
mask-position: alpha;
mask-clip: luminance;
mask-origin: no-clip;
mask-size: add;
mask-composite: subtract;
mask: intersect;
mask-border-source: exclude;
mask-border-mode: auto;
mask-border-slice: auto;
mask-border-width: auto;
mask-border-outset: auto;
mask-border-repeat: auto;
mask-border: auto;
mask-type: auto;
}
</style>
<style>
.motion-1 {
motion-path: path(M 100 100 L 300 100 L 200 300 z);
motion-offset: auto;
motion-rotation: auto;
motion: auto;
}
</style>
<style>
.multicol {
columns: column;
column-count: balance;
column-fill: avoid-column;
column-gap: auto;
column-rule: auto;
column-rule-color: auto;
column-rule-style: auto;
column-rule-width: auto;
column-span: auto;
column-width: auto;
}
</style>
<style>
.overflow {
max-lines: auto;
}
</style>
<style>
.page {
display: avoid-page;
display: page;
display: recto;
display: verso;
}
</style>
<style>
.page-floats-3 {
float-reference: inline-start;
float-defer: inline-end;
float-offset: snap-block;
display: snap-inline;
display: snap-block(2em, near);
display: snap-inline(2em, near);
}
</style>
<style>
.positioning {
offset-before: sticky;
offset-end: auto;
offset-after: auto;
offset-start: auto;
}
</style>
<style>
.pseudo::inactive-selection,
.pseudo::spelling-error,
.pseudo::grammer-error {
display: block;
}
</style>
<style>
.regions:region {
flow-into: element;
flow-from: content;
region-fragment: break;
display: region;
display: avoid-region;
}
</style>
<style>
@media (device-radius: 50%) {
.round-display-1 {
shape-inside: outside-shape;
border-boundary: shape-box;
polar-angle: parent;
polar-distance: polar;
}
}
</style>
<style>
.ruby {
ruby-position: ruby-base-container;
ruby-merge: ruby-text-container;
ruby-align: inter-character;
}
</style>
<style>
@scope .scoping {
div {
display: auto;
}
}
</style>
<style>
.scoping:scope-context div,
.scoping:host,
.scping:host(.foo),
.scoping:host-context,
.scoping::shadow,
.scoping::content,
.scoping /deep/ span {
display: auto;
}
</style>
<style>
.selectors3:target,
.selectors3:enabled,
.selectors3:disabled,
.selectors3:checked,
.selectors3:indeterminate,
.selectors3:root,
.selectors3:empty,
.selectors3:last-child,
.selectors3:last-of-type,
.selectors3:first-of-type,
.selectors3:only-child,
.selectors3:only-of-type,
.selectors3:nth-child(2n+1),
.selectors3:nth-last-child(-n+2),
.selectors3:nth-of-type(2n+1),
.selectors3:nth-last-of-type(n+2),
.selectors3:not([DISABLED]) {
display: auto;
}
</style>
<style>
.selectors4 | h1,
.selectors4:scope,
.selectors4:current,
.selectors4:past,
.selectors4:future,
.selectors4:default,
.selectors4:valid,
.selectors4:invalid,
.selectors4:required,
.selectors4:optional,
.selectors4:blank,
.selectors4:any-link,
.selectors4:local-link,
.selectors4:read-only,
.selectors4:read-write,
.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: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) {
display: auto;
}
</style>
<style>
.selectors-nonelement-1::attr(title) {
display: auto;
}
</style>
<style>
.shapes {
shape-outside: margin-box;
shape-image-threshold: inset(50% 50% 50% 50%);
shape-margin: circle(100px 50px 100px);
display: ellipse(0 0 250px 100px);
display: polygon(0 0, 100% 100%, 0 100%);
}
</style>
<style>
.sizing {
display: max-content;
display: min-content;
display: fit-content;
}
</style>
<style>
.snappoints {
scroll-snap-type: mandatory;
scroll-snap-padding: proximity;
scroll-snap-margin: auto;
scroll-snap-align: auto;
}
</style>
<style>
.speech {
voice-volume: 10dB;
voice-balance: literal-punctuation;
rest-before: no-punctuation;
rest-after: x-weak;
rest: weak;
voice-rate: strong;
voice-pitch: x-strong;
voice-range: young;
voice-stress: old;
voice-duration: neutral;
display: preserve;
display: 10st;
display: moderate;
display: reduced;
}
</style>
<style>
.syntax {
display: auto;
}
</style>
<style>
.text-3 {
hyphens: manual;
line-break: loose;
overflow-wrap: strict;
tab-size: match-parent;
display: hanging;
display: each-line;
display: full-width;
}
</style>
<style>
.text-4 {
text-space-collapse: preserve-auto;
text-space-trim: preserve-trim;
text-wrap: preserve-breaks;
wrap-before: preserve-spaces;
wrap-after: trim-inner;
wrap-inside: discard-before;
hyphenate-character: discard-after;
hyphenate-limit-zone: avoid-line;
hyphenate-limit-chars: avoid-flex;
hyphenate-limit-lines: pre-wrap-auto;
hyphenate-limit-last: no-limit;
text-spacing: spread;
display: trim-start;
display: space-start;
display: trim-end;
display: space-end;
display: trim-adjacent;
display: space-adjacent;
display: no-compress;
display: ideograph-alpha;
display: ideograph-numeric;
display: punctuation;
}
</style>
<style>
.text-decor-3 {
text-decoration-color: filled;
text-decoration-line: dot;
text-decoration-skip: triangle;
text-decoration-style: sesame;
text-emphasis: objects;
text-emphasis-color: ink;
text-emphasis-position: edges;
text-emphasis-style: wavy;
display: alphabetic;
display: spaces;
display: box-decoration;
display: under;
display: over;
}
</style>
<style>
.transforms {
backface-visibility: flat;
perspective: preserve-3d;
perspective-origin: matrix(1);
transform: matrix3d(1);
transform-origin: translate(1);
transform-style: translate3d(1);
display: translateX(1);
display: translateY(1);
display: translateZ(1);
display: scale(1);
display: scale3d(1);
display: scaleX(1);
display: scaleY(1);
display: scaleZ(1);
display: rotate(1);
display: rotate3d(1);
display: rotateX(1);
display: rotateY(1);
display: rotateZ(1);
display: skew(1);
display: skewX(1);
display: skewY(1);
display: perspective(1);
}
</style>
<style>
.transitions {
transition: linear;
transition-property: ease;
transition-duration: ease-in;
transition-timing-function: ease-out;
transition-delay: ease-in-out;
display: step-start;
display: step-end;
display: steps(1, start);
display: cubic-bezier(0.25, 0.1, 0.25, 1.0);
}
</style>
<style>
.ui-3 {
caret-color: grab;
display: grabbing;
}
</style>
<style>
.ui-4 {
caret: fade;
caret-shape: fade(1em);
caret-animation: underscore;
}
</style>
<style>
.values {
display: 1ch;
display: 1vw;
display: 1vh;
display: 1vmin;
display: 1q;
display: 1turn;
display: calc(100%/3 - 2*1em - 2*1px);
display: toggle(italic, normal);
}
</style>
<style>
.variables {
var-foo: var(foo);
}
</style>
<style>
@viewport {
min-zoom: auto;
max-zoom: auto;
user-zoom: auto;
}
</style>
<style>
.web-animations {
display: auto;
}
</style>
<style>
.will-change {
will-change: scroll-position;
}
</style>
<style>
.writing-modes {
writing-mode: before;
text-orientation: after;
text-combine-upright: mixed;
glyph-orientation-vertical: upright;
display: plaintext;
display: sideways;
display: sideways-rl;
display: sideways-lr;
display: isolate;
display: isolate-override;
display: horizontal-tb;
display: vertical-rl;
display: vertical-lr;
}
</style>
<style>
.html5-elements,
article,
section,
nav,
aside,
header,
footer,
figure,
figcaption,
main,
data,
time,
mark,
ruby,
rb,
rt,
rtc,
rp,
bdi,
wbr,
embed,
video,
audio,
source,
track,
datalist,
keygen,
output,
progress,
meter,
template,
canvas {
display: auto;
}
</style>
</head>
<body>
<header>
<h1>vim-css3-syntax</h1>
</header>
</body>
</html>