support ${attr} in snippets

This commit is contained in:
OHASHI Hideya
2010-05-15 11:17:22 +09:00
parent 11b5ffa598
commit b7f309f729

View File

@@ -1265,6 +1265,10 @@ function! s:zen_toString(...)
if type == 'css' && s:zen_use_filter(filters, 'fc')
let tmp = substitute(tmp, '^\([^:]\+\):\(.*\)$', '\1: \2', '')
endif
for attr in keys(current.attr)
let val = current.attr[attr]
let tmp = substitute(tmp, '\${' . attr . '}', val, 'g')
endfor
let str .= tmp
else
if len(current.name)