From f2dccd2c9413e7f586aec9d92da57685fd77ebd6 Mon Sep 17 00:00:00 2001 From: Kyo Nagashima Date: Wed, 4 Feb 2015 06:35:19 +0900 Subject: [PATCH] Add css3-positioning.vim See also: http://www.w3.org/TR/2015/WD-css3-positioning-20150203/ --- after/syntax/css/css3-positioning.vim | 3 +++ after/syntax/html.vim | 1 + test/test.css | 7 +++++++ test/test.html | 7 +++++++ 4 files changed, 18 insertions(+) create mode 100644 after/syntax/css/css3-positioning.vim diff --git a/after/syntax/css/css3-positioning.vim b/after/syntax/css/css3-positioning.vim new file mode 100644 index 0000000..3acbe4c --- /dev/null +++ b/after/syntax/css/css3-positioning.vim @@ -0,0 +1,3 @@ +" TODO: create cssPositioningProp and cssPositioningAttr +syn match cssFontProp contained "\" +syn keyword cssFontAttr contained sticky diff --git a/after/syntax/html.vim b/after/syntax/html.vim index b2f5f9a..104af74 100644 --- a/after/syntax/html.vim +++ b/after/syntax/html.vim @@ -15,6 +15,7 @@ syn include @htmlCss syntax/css/css3-layout.vim syn include @htmlCss syntax/css/css3-linebox.vim syn include @htmlCss syntax/css/css3-multicol.vim syn include @htmlCss syntax/css/css3-page.vim +syn include @htmlCss syntax/css/css3-positioning.vim syn include @htmlCss syntax/css/css3-preslev.vim syn include @htmlCss syntax/css/css3-regions.vim syn include @htmlCss syntax/css/css3-selectors.vim diff --git a/test/test.css b/test/test.css index aa3f0f9..e48b59c 100644 --- a/test/test.css +++ b/test/test.css @@ -327,6 +327,13 @@ display: verso; } +.positioning { + offset-before: sticky; + offset-end: auto; + offset-after: auto; + offset-start: auto; +} + .preslev { presentation-level: increment; } diff --git a/test/test.html b/test/test.html index c200307..0908783 100644 --- a/test/test.html +++ b/test/test.html @@ -336,6 +336,13 @@ display: verso; } + .positioning { + offset-before: sticky; + offset-end: auto; + offset-after: auto; + offset-start: auto; + } + .preslev { presentation-level: increment; }