mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
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)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user