auto is not unit name

This commit is contained in:
Yasuhiro Matsumoto
2019-06-18 03:25:51 +09:00
parent 47c28892d9
commit dad174f359

View File

@@ -41,6 +41,9 @@ function! emmet#lang#css#parseIntoTree(abbr, type) abort
let value = '' let value = ''
for vt in split(prop[2], '\a\+\zs') for vt in split(prop[2], '\a\+\zs')
let ut = matchstr(vt, '[a-z]\+$') let ut = matchstr(vt, '[a-z]\+$')
if ut == 'auto'
let ut = ''
endif
for v in split(vt, '\d\zs-') for v in split(vt, '\d\zs-')
if len(value) > 0 if len(value) > 0
let value .= ' ' let value .= ' '