mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
Include feature of #129
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user