mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-10 20:41:54 +08:00
fixes about #303
This commit is contained in:
@@ -514,9 +514,23 @@ function! emmet#lang#html#toString(settings, current, type, inline, filters, ite
|
|||||||
if len(Val) > 0
|
if len(Val) > 0
|
||||||
let Val .= ' '
|
let Val .= ' '
|
||||||
endif
|
endif
|
||||||
if _val =~# '^_'
|
if _val =~# '_'
|
||||||
let lead = vals[0]
|
if _val =~# '^_'
|
||||||
let Val .= lead . _val
|
if has_key(current.parent.attr, 'class')
|
||||||
|
let lead = current.parent.attr["class"]
|
||||||
|
if _val =~# '^__'
|
||||||
|
let Val .= lead . _val
|
||||||
|
else
|
||||||
|
let Val .= lead . ' ' . lead . _val
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let b = split(vals[0], '_')[0]
|
||||||
|
let Val .= lead . _val
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
let lead = split(vals[0], '_')[0]
|
||||||
|
let Val .= lead . ' ' . _val
|
||||||
|
endif
|
||||||
elseif _val =~# '^-'
|
elseif _val =~# '^-'
|
||||||
if len(lead) == 0
|
if len(lead) == 0
|
||||||
let pattr = current.parent.attr
|
let pattr = current.parent.attr
|
||||||
|
|||||||
Reference in New Issue
Block a user