forked from VimPlug/emmet-vim
should behave on only html
This commit is contained in:
@@ -136,7 +136,7 @@ function! emmet#lang#html#parseIntoTree(abbr, type) abort
|
|||||||
let snippet = substitute(snippet, '|', '${cursor}', 'g')
|
let snippet = substitute(snippet, '|', '${cursor}', 'g')
|
||||||
endif
|
endif
|
||||||
" just redirect to expanding
|
" just redirect to expanding
|
||||||
if snippet !~ '^\s*[{\[<]'
|
if type == 'html' && snippet !~ '^\s*[{\[<]'
|
||||||
return emmet#lang#html#parseIntoTree(snippet, a:type)
|
return emmet#lang#html#parseIntoTree(snippet, a:type)
|
||||||
endif
|
endif
|
||||||
let lines = split(snippet, "\n", 1)
|
let lines = split(snippet, "\n", 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user