should behave on only html

This commit is contained in:
Yasuhiro Matsumoto
2015-11-10 09:43:25 +09:00
parent 5819343b88
commit 1672e5664c

View File

@@ -136,7 +136,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
let snippet = substitute(snippet, '|', '${cursor}', 'g')
endif
" just redirect to expanding
if snippet !~ '^\s*[{\[<]'
if type == 'html' && snippet !~ '^\s*[{\[<]'
return emmet#lang#html#parseIntoTree(snippet, a:type)
endif
let lines = split(snippet, "\n", 1)