mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-25 13:57:20 +08:00
Check bundled type at the first
This commit is contained in:
1 parent
82c09728d7
commit
59c2fb6647
1 file changed
+3
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user