Skip to content

Commit

Permalink
Add css-writing-modes-4.vim
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
hail2u committed Dec 8, 2017
1 parent f52a441 commit aed0768
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions after/syntax/css/css-writing-modes-3.vim
Original file line number Diff line number Diff line change
@@ -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\)\>"
1 change: 1 addition & 0 deletions after/syntax/css/css-writing-modes-4.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
syn match cssFontAttr contained "\<sideways-\(rl\|lr\)\>"
7 changes: 5 additions & 2 deletions test/test.css
Original file line number Diff line number Diff line change
Expand Up @@ -889,15 +889,18 @@
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;
}

.writing-modes-4 {
display: sideways-rl;
display: sideways-lr;
}

.html5,
picture,
rb,
Expand Down

0 comments on commit aed0768

Please sign in to comment.