Check bundled type at the first

This commit is contained in:
mattn
2013-03-26 12:48:02 +09:00
parent 82c09728d7
commit 59c2fb6647

View File

@@ -258,9 +258,10 @@ endfunction
function! zencoding#getFileType()
let type = &ft
let type = zencoding#getBaseType(type)
if len(type) == 0 && zencoding#lang#exists(&ft)
if zencoding#lang#exists(&ft)
let type = &ft
else
let type = zencoding#getBaseType(type)
endif
if type == 'html'
let type = synIDattr(synID(line("."), col("."), 1), "name")