Include feature of #129

This commit is contained in:
mattn
2013-08-13 20:42:01 +09:00
parent 57a2ca0e2f
commit 5dc6c1a001

View File

@@ -274,10 +274,14 @@ endfunction
function! emmet#getFileType(...)
let flg = get(a:000, 0, 0)
let type = &ft
if emmet#lang#exists(&ft)
let type = &ft
else
let type = ''
for part in split(&ft, '\.')
if emmet#lang#exists(part)
let type = part
break
endif
endfor
if type == ''
let base = emmet#getBaseType(type)
if base != ""
if flg