forked from VimPlug/emmet-vim
Fix unit expanding
This commit is contained in:
@@ -39,10 +39,15 @@ function! emmet#lang#css#parseIntoTree(abbr, type) abort
|
||||
let token = token[1:]
|
||||
endif
|
||||
let value = ''
|
||||
for v in split(prop[2], '\a\+\zs')
|
||||
for vt in split(prop[2], '\a\+\zs')
|
||||
let ut = matchstr(vt, '[a-z]\+$')
|
||||
for v in split(vt, '\d\zs-')
|
||||
if len(value) > 0
|
||||
let value .= ' '
|
||||
endif
|
||||
if v !~ '[a-z]\+$'
|
||||
let v .= ut
|
||||
endif
|
||||
if token =~# '^[z]'
|
||||
" TODO
|
||||
let value .= substitute(v, '[^0-9.]*$', '', '')
|
||||
@@ -74,6 +79,7 @@ function! emmet#lang#css#parseIntoTree(abbr, type) abort
|
||||
let value .= v . 'px'
|
||||
endif
|
||||
endfor
|
||||
endfor
|
||||
endif
|
||||
|
||||
let tag_name = token
|
||||
|
||||
Reference in New Issue
Block a user