mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2025-12-07 03:04:26 +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 missing values
|
||||||
* Add notes about CSS preprocessors
|
* Add notes about CSS preprocessors
|
||||||
* Fix test
|
* Fix test
|
||||||
|
* Add version checking
|
||||||
|
|
||||||
|
|
||||||
### v0.8
|
### v0.8
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
" TODO: create cssTransitionProp group and cssTransitionAttr group
|
if hlexists('cssTransitionProp')
|
||||||
syn match cssFontProp contained "\<transition\(-\(property\|duration\|timing-function\|delay\)\)\=\>"
|
syn match cssFontProp contained "\<transition\(-\(property\|duration\|timing-function\|delay\)\)\=\>"
|
||||||
syn keyword cssFontAttr contained linear
|
syn keyword cssFontAttr contained linear
|
||||||
syn match cssFontAttr contained "\<ease\(-\(in\|out\|in-out\)\)\=\>"
|
syn match cssFontAttr contained "\<ease\(-\(in\|out\|in-out\)\)\=\>"
|
||||||
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
|
syn match cssFontAttr contained "\<step-\(start\|end\)\>"
|
||||||
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend
|
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(steps\|cubic-bezier\)\s*(" end=")" oneline keepend
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user