forked from VimPlug/emmet-vim
Include feature of #129
This commit is contained in:
@@ -274,10 +274,14 @@ endfunction
|
|||||||
|
|
||||||
function! emmet#getFileType(...)
|
function! emmet#getFileType(...)
|
||||||
let flg = get(a:000, 0, 0)
|
let flg = get(a:000, 0, 0)
|
||||||
let type = &ft
|
let type = ''
|
||||||
if emmet#lang#exists(&ft)
|
for part in split(&ft, '\.')
|
||||||
let type = &ft
|
if emmet#lang#exists(part)
|
||||||
else
|
let type = part
|
||||||
|
break
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
if type == ''
|
||||||
let base = emmet#getBaseType(type)
|
let base = emmet#getBaseType(type)
|
||||||
if base != ""
|
if base != ""
|
||||||
if flg
|
if flg
|
||||||
|
|||||||
Reference in New Issue
Block a user