Disable completion of unit for z(z-index). This workaround should be removed.

This commit is contained in:
mattn
2012-10-16 17:37:23 +09:00
parent 551740c720
commit e5baec0d46

View File

@@ -17,7 +17,10 @@ function! zencoding#lang#css#parseIntoTree(abbr, type)
let abbr = abbr[1:]
endif
let value = prop[2]
if value =~ 'p$'
if abbr =~ '^[z]'
" TODO
let value = substitute(value, '[^0-9.]*$', '', '')
elseif value =~ 'p$'
let value = substitute(prop[2], 'p$', '%', '')
elseif value =~ '\.'
let value .= 'em'