fix jsx type check to support multi file types

This commit is contained in:
Herryanto Siatono
2016-01-02 13:43:18 +08:00
parent dee767c998
commit 4feadc4062

View File

@@ -501,7 +501,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
if has_key(an, attr)
let attr = an[attr]
endif
if type == 'jsx' && Val =~ '^{.*}$'
if emmet#isExtends(type, 'jsx') && Val =~ '^{.*}$'
let str .= ' ' . attr . '=' . Val
else
let str .= ' ' . attr . '=' . q . Val . q