expand snippets for filetypes like html.handlebars

Close #298
This commit is contained in:
Yasuhiro Matsumoto
2015-11-10 09:35:38 +09:00
parent 5eb1061a3d
commit 136b87a330
2 changed files with 17 additions and 3 deletions

View File

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