mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 03:04: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)
|
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