mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 11:14:26 +08:00
fix custom tag
This commit is contained in:
@@ -201,15 +201,8 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
for k in keys(custom_expands)
|
for k in keys(custom_expands)
|
||||||
if tag_name =~# k
|
if tag_name =~# k
|
||||||
let snippet = '${' . (empty(custom) ? tag_name : custom) . '}'
|
let snippet = '${' . (empty(custom) ? tag_name : custom) . '}'
|
||||||
if current.name != ''
|
let current.name = ''
|
||||||
let snode = emmet#newNode()
|
let current.snippet = snippet
|
||||||
let snode.snippet = snippet
|
|
||||||
let snode.parent = current
|
|
||||||
let snode.multiplier = 1
|
|
||||||
call add(current.child, snode)
|
|
||||||
else
|
|
||||||
let current.snippet = snippet
|
|
||||||
endif
|
|
||||||
break
|
break
|
||||||
elseif custom =~# k
|
elseif custom =~# k
|
||||||
let snippet = '${' . custom . '}'
|
let snippet = '${' . custom . '}'
|
||||||
|
|||||||
Reference in New Issue
Block a user