From 2ac3648bc86e0d4ddc839f67ba32ff0e536b4660 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 6 Aug 2018 22:31:34 +0900 Subject: [PATCH] fix custom expanding closes #429 --- autoload/emmet/lang/html.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/emmet/lang/html.vim b/autoload/emmet/lang/html.vim index b1a362e..f2de7d5 100644 --- a/autoload/emmet/lang/html.vim +++ b/autoload/emmet/lang/html.vim @@ -143,7 +143,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort if empty(tag_name) let pname = len(parent.child) > 0 ? parent.child[0].name : '' - if !empty(pname) && has_key(pmap, pname) + if !empty(pname) && has_key(pmap, pname) && custom == '' let tag_name = pmap[pname] elseif !empty(pname) && index(inlineLevel, pname) > -1 let tag_name = 'span' @@ -206,6 +206,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort let current.snippet = snippet break elseif custom =~# k + let g:hoge = current let snippet = '${' . custom . '}' let current.snippet = '${' . custom . '}' if current.name != ''