mirror of
https://github.com/gryf/snipmate.vim.git
synced 2026-01-27 18:35:52 +01:00
fixed loading snippets for Windows
This commit is contained in:
@@ -106,10 +106,12 @@ let g:did_ft = {}
|
|||||||
fun! GetSnippets(dir)
|
fun! GetSnippets(dir)
|
||||||
for ft in split(&ft, '\.')
|
for ft in split(&ft, '\.')
|
||||||
if has_key(g:did_ft, ft) | continue | endif
|
if has_key(g:did_ft, ft) | continue | endif
|
||||||
for path in split(globpath(a:dir, ft.'\(-*\)\=/'), '\n')
|
for path in split(globpath(a:dir, ft.'/')."\n".
|
||||||
|
\ globpath(a:dir, ft.'-*/'), "\n")
|
||||||
call ExtractSnips(path, ft)
|
call ExtractSnips(path, ft)
|
||||||
endfor
|
endfor
|
||||||
for path in split(globpath(a:dir, ft.'\(-*\)\=.snippets'), '\n')
|
for path in split(globpath(a:dir, ft.'.snippets')."\n".
|
||||||
|
\ globpath(a:dir, ft.'-*.snippets'), "\n")
|
||||||
call ExtractSnipsFile(path)
|
call ExtractSnipsFile(path)
|
||||||
endfor
|
endfor
|
||||||
let g:did_ft[ft] = 1
|
let g:did_ft[ft] = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user