add CSS3 new pseudo classes support

This commit is contained in:
Kyo Nagashima
2011-01-25 17:51:28 +09:00
parent 0ad97e152d
commit b69fc031a2

View File

@@ -0,0 +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 "\<only-\(child\|of-type\)\>"
syn region cssPseudoClassLang matchgroup=cssPseudoClassId start=":nth\(-last\)\?-\(child\|of-type\)(" end=")" oneline