From 28e8833535afa4f320bda896518d5f4ef6e334bd Mon Sep 17 00:00:00 2001 From: Kyo Nagashima Date: Sun, 26 May 2013 23:55:48 +0900 Subject: [PATCH] add css3-conditional.vim and test case --- after/syntax/css/css3-conditional.vim | 4 ++++ test/test.css | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 after/syntax/css/css3-conditional.vim diff --git a/after/syntax/css/css3-conditional.vim b/after/syntax/css/css3-conditional.vim new file mode 100644 index 0000000..b88eee3 --- /dev/null +++ b/after/syntax/css/css3-conditional.vim @@ -0,0 +1,4 @@ +" TODO: create cssSupports group and cssSupportsType group +syn match cssMedia "@supports\>" nextgroup=cssMediaType skipwhite skipnl +syn match cssMediaAnd "or" nextgroup=cssMediaType skipwhite skipnl +syn match cssMediaAnd "not" nextgroup=cssMediaType skipwhite skipnl diff --git a/test/test.css b/test/test.css index 4d59463..2f3081f 100644 --- a/test/test.css +++ b/test/test.css @@ -353,6 +353,12 @@ display: auto; } +@supports (display: auto) or + (display: auto) not + (display: auto) { + display: auto; +} + .text { hanging-punctuation: loose; line-break: strict;