check 'cssTransitionProp' hilight group

This `if` statement checks Vim version (~7.3 or 7.4+) by behavior.
This commit is contained in:
Kyo Nagashima
2013-11-19 23:03:12 +09:00
parent f2fc14b41c
commit 79cf3853fd
2 changed files with 9 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
" TODO: create cssTransitionProp group and cssTransitionAttr group
syn match cssFontProp contained "\<transition\(-\(property\|duration\|timing-function\|delay\)\)\=\>"
syn keyword cssFontAttr contained linear
syn match cssFontAttr contained "\<ease\(-\(in\|out\|in-out\)\)\=\>"
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend
if hlexists('cssTransitionProp')
syn match cssFontProp contained "\<transition\(-\(property\|duration\|timing-function\|delay\)\)\=\>"
syn keyword cssFontAttr contained linear
syn match cssFontAttr contained "\<ease\(-\(in\|out\|in-out\)\)\=\>"
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend
endif