forked from VimPlug/emmet-vim
why call in several time.
This commit is contained in:
@@ -236,16 +236,17 @@ function! zencoding#getFileType()
|
|||||||
let type = &ft
|
let type = &ft
|
||||||
endif
|
endif
|
||||||
if type == 'html'
|
if type == 'html'
|
||||||
if synIDattr(synID(line("."), col("."), 1), "name") =~ '^css'
|
let type = synIDattr(synID(line("."), col("."), 1), "name")
|
||||||
|
if type =~ '^css\w'
|
||||||
let type = 'css'
|
let type = 'css'
|
||||||
endif
|
endif
|
||||||
if synIDattr(synID(line("."), col("."), 1), "name") =~ '^html'
|
if type =~ '^html\w'
|
||||||
let type = 'html'
|
let type = 'html'
|
||||||
endif
|
endif
|
||||||
if synIDattr(synID(line("."), col("."), 1), "name") =~ '^javaScript'
|
if type =~ '^javaScript'
|
||||||
let type = 'javascript'
|
let type = 'javascript'
|
||||||
endif
|
endif
|
||||||
if len(type) == 0 && synIDattr(synID(line("."), col("."), 1), "name") =~ '^xml'
|
if len(type) == 0 && type =~ '^xml'
|
||||||
let type = 'xml'
|
let type = 'xml'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user