forked from VimPlug/emmet-vim
Merge pull request #312 from jugend/jsx-multi-filetypes
fix jsx type check to support multi file types
This commit is contained in:
@@ -501,7 +501,7 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
|
|||||||
if has_key(an, attr)
|
if has_key(an, attr)
|
||||||
let attr = an[attr]
|
let attr = an[attr]
|
||||||
endif
|
endif
|
||||||
if type == 'jsx' && Val =~ '^{.*}$'
|
if emmet#isExtends(type, 'jsx') && Val =~ '^{.*}$'
|
||||||
let str .= ' ' . attr . '=' . Val
|
let str .= ' ' . attr . '=' . Val
|
||||||
else
|
else
|
||||||
let str .= ' ' . attr . '=' . q . Val . q
|
let str .= ' ' . attr . '=' . q . Val . q
|
||||||
|
|||||||
Reference in New Issue
Block a user