Remove div element for snippets

This commit is contained in:
mattn
2013-08-08 12:31:51 +09:00
parent e1fecdc77b
commit 6d924eb310

View File

@@ -124,13 +124,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type)
endif endif
for k in keys(custom_expands) for k in keys(custom_expands)
if tag_name =~ k if tag_name =~ k
if parent.name == ''
let div = emmet#lang#html#parseTag('<div/>')
let div.value = '{\${' . tag_name . '}}'
let current.snippet = emmet#toString(div, type, 0, [])
else
let current.snippet = '${' . tag_name . '}' let current.snippet = '${' . tag_name . '}'
endif
let current.name = '' let current.name = ''
break break
endif endif