fix custom tag

This commit is contained in:
Yasuhiro Matsumoto
2018-07-13 12:01:46 +09:00
parent f5b185e3a2
commit e7dd13a750

View File

@@ -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 . '}'