Revert version checking code

Checking version with `hlexists()` does not work as expected.
This commit is contained in:
Kyo Nagashima
2014-03-03 03:38:57 +09:00
parent 9b9dfb7f3b
commit 04fbdcfd54
7 changed files with 33 additions and 38 deletions

View File

@@ -55,6 +55,7 @@ HISTORY
* Move page break values from `css3-multicol.vim` to `css3-page.vim` * Move page break values from `css3-multicol.vim` to `css3-page.vim`
* Follow spec updates * Follow spec updates
* Fix test * Fix test
* Remove version checking
### v0.9 ### v0.9

View File

@@ -1,6 +1,5 @@
if !hlexists('cssDisplayProp') " TODO: create cssDisplayProp group and cssDisplayAttr group
syn match cssFontProp contained "\<display-\(inside\|outside\|extras\|box\)\>" syn match cssFontProp contained "\<display-\(inside\|outside\|extras\|box\)\>"
syn keyword cssFontAttr contained contents syn keyword cssFontAttr contained contents
syn match cssFontAttr contained "\<\(block\|inline\)-level\>" syn match cssFontAttr contained "\<\(block\|inline\)-level\>"
syn match cssFontAttr contained "\<inline-list-item\>" syn match cssFontAttr contained "\<inline-list-item\>"
endif

View File

@@ -1,5 +1,4 @@
if !hlexists('cssShapesProp') " TODO: create cssShapesProp group and cssShapesAttr group
syn match cssFontProp contained "\<shape-\(outside\|image-threshold\|margin\)\>" syn match cssFontProp contained "\<shape-\(outside\|image-threshold\|margin\)\>"
syn match cssFontAttr contained "\<margin-box\>" syn match cssFontAttr contained "\<margin-box\>"
syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend syn region cssFunction contained matchgroup=cssFunctionName start="\<\(inset\|circle\|ellipse\|polygon\)\s*(" end=")" oneline keepend
endif

View File

@@ -1,8 +1,7 @@
if !hlexists('cssWritingModeProp') " TODO: create cssWritingModesProp group and cssWritingModesAttr group
syn match cssFontProp contained "\<text-\(orientation\|combine-horizontal\)\>" syn match cssFontProp contained "\<text-\(orientation\|combine-horizontal\)\>"
syn match cssFontProp contained "\<writing-mode\>" syn match cssFontProp contained "\<writing-mode\>"
syn keyword cssFontAttr contained before after mixed isolate plaintext syn keyword cssFontAttr contained before after mixed isolate plaintext
syn match cssFontAttr contained "\<\(upright\|sideways\(-right\|-left\)\=\|use-glyph-orientation\)\>" syn match cssFontAttr contained "\<\(upright\|sideways\(-right\|-left\)\=\|use-glyph-orientation\)\>"
syn match cssFontAttr contained "\<isolate-override\>" syn match cssFontAttr contained "\<isolate-override\>"
syn match cssFontAttr contained "\<\(horizontal-tb\|vertical-\(rl\|lr\)\)\>" syn match cssFontAttr contained "\<\(horizontal-tb\|vertical-\(rl\|lr\)\)\>"
endif

View File

@@ -1,5 +1,4 @@
if !hlexists('cssBreakProp') " TODO: create cssBreakProp group and cssBreakAttr group
syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>" syn match cssFontProp contained "\<break-\(after\|before\|inside\)\>"
syn match cssFontProp contained "\<box-decoration-break\>" syn match cssFontProp contained "\<box-decoration-break\>"
syn keyword cssFontAttr contained any syn keyword cssFontAttr contained any
endif

View File

@@ -1,7 +1,6 @@
if !hlexists('cssRegionsProp') " TODO: create cssRegionsProp group and cssRegionsAttr group
syn match cssFontProp contained "\<flow-\(into\|from\)\>" syn match cssFontProp contained "\<flow-\(into\|from\)\>"
syn match cssFontProp contained "\<region-fragment\>" syn match cssFontProp contained "\<region-fragment\>"
syn keyword cssFontAttr contained element content break syn keyword cssFontAttr contained element content break
syn match cssFontAttr contained "\<\(avoid-\)\=region\>" syn match cssFontAttr contained "\<\(avoid-\)\=region\>"
syn keyword cssPseudoClassId contained region syn keyword cssPseudoClassId contained region
endif

View File

@@ -1,7 +1,6 @@
if !hlexists('cssTransitionProp') " TODO: create cssTransitionsProp group and cssTransitionsAttr group
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