From aed076840855439a03a956809f2dc239c17df596 Mon Sep 17 00:00:00 2001 From: Kyo Nagashima Date: Fri, 8 Dec 2017 12:08:29 +0900 Subject: [PATCH] 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`. --- after/syntax/css/css-writing-modes-3.vim | 3 +-- after/syntax/css/css-writing-modes-4.vim | 1 + test/test.css | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 after/syntax/css/css-writing-modes-4.vim diff --git a/after/syntax/css/css-writing-modes-3.vim b/after/syntax/css/css-writing-modes-3.vim index a2626e9..d8ce9e3 100644 --- a/after/syntax/css/css-writing-modes-3.vim +++ b/after/syntax/css/css-writing-modes-3.vim @@ -1,8 +1,7 @@ syn match cssFontProp contained "\" syn match cssFontProp contained "\" syn match cssFontProp contained "\" -syn keyword cssFontAttr contained before after mixed upright plaintext -syn match cssFontAttr contained "\" +syn keyword cssFontAttr contained before after mixed upright plaintext sideways syn match cssFontAttr contained "\" syn match cssFontAttr contained "\" syn match cssFontAttr contained "\" diff --git a/after/syntax/css/css-writing-modes-4.vim b/after/syntax/css/css-writing-modes-4.vim new file mode 100644 index 0000000..0dc6082 --- /dev/null +++ b/after/syntax/css/css-writing-modes-4.vim @@ -0,0 +1 @@ +syn match cssFontAttr contained "\" diff --git a/test/test.css b/test/test.css index fea9568..188b324 100644 --- a/test/test.css +++ b/test/test.css @@ -889,8 +889,6 @@ glyph-orientation-vertical: upright; display: plaintext; display: sideways; - display: sideways-rl; - display: sideways-lr; display: isolate; display: isolate-override; display: horizontal-tb; @@ -898,6 +896,11 @@ display: vertical-lr; } +.writing-modes-4 { + display: sideways-rl; + display: sideways-lr; +} + .html5, picture, rb,