mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-06 10:44:23 +08:00
check 'cssTransitionProp' hilight group
This `if` statement checks Vim version (~7.3 or 7.4+) by behavior.
This commit is contained in:
@@ -57,6 +57,8 @@ HISTORY
|
||||
* Add missing values
|
||||
* Add notes about CSS preprocessors
|
||||
* Fix test
|
||||
* Add version checking
|
||||
|
||||
|
||||
### v0.8
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user