diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 6416e14..668be4b 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -501,7 +501,11 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite if has_key(an, attr) let attr = an[attr] endif - let str .= ' ' . attr . '=' . q . Val . q + if empty(matchstr(Val, '^{.*}$')) + let str .= ' ' . attr . '=' . q . Val . q + else + let str .= ' ' . attr . '=' . Val + endif if emmet#useFilter(filters, 'c') if attr ==# 'id' | let comment .= '#' . Val | endif if attr ==# 'class' | let comment .= '.' . Val | endif