From e7dd13a75077aaafa5fc78a205f57e50d816f310 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 13 Jul 2018 12:01:46 +0900 Subject: [PATCH] fix custom tag --- autoload/emmet/lang/html.vim | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index 27163e1..74e0eb1 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -201,15 +201,8 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort for k in keys(custom_expands) if tag_name =~# k let snippet = '${' . (empty(custom) ? tag_name : custom) . '}' - if current.name != '' - let snode = emmet#newNode() - let snode.snippet = snippet - let snode.parent = current - let snode.multiplier = 1 - call add(current.child, snode) - else - let current.snippet = snippet - endif + let current.name = '' + let current.snippet = snippet break elseif custom =~# k let snippet = '${' . custom . '}'