mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
add support for jsx attribute expression
This commit is contained in:
committed by
Yasuhiro Matsumoto
parent
1ac0fb7011
commit
699689c985
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user