Add ignore_embeded_filetype since slim filetype is confusing to html.

This commit is contained in:
Yasuhiro Matsumoto
2019-01-28 23:59:03 +09:00
parent 3720be60fb
commit d99b422a39

View File

@@ -379,6 +379,9 @@ function! emmet#getFileType(...) abort
if has_key(s:emmet_settings, &filetype)
let type = &filetype
if emmet#getResource(type, 'ignore_embeded_filetype', 0)
return type
endif
endif
let pos = emmet#util#getcurpos()
@@ -2023,6 +2026,7 @@ let s:emmet_settings = {
\ ."\tbody\n"
\ ."\t\t${child}|\n",
\ },
\ 'ignore_embeded_filetype': 1,
\ },
\ 'xhtml': {
\ 'extends': 'html'