1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2026-01-08 15:14:11 +01:00

added support for hyphenated global snippets (_-foo)

This commit is contained in:
Michael Sanders
2009-03-29 18:03:44 -04:00
parent f8ba98c38b
commit c3327c821d
2 changed files with 4 additions and 9 deletions

View File

@@ -103,8 +103,8 @@ fun! ResetSnippets()
endf
let g:did_ft = {}
fun! GetSnippets(dir)
for ft in split(&ft, '\.')
fun! GetSnippets(dir, filetype)
for ft in split(a:filetype, '\.')
if has_key(g:did_ft, ft) | continue | endif
for path in split(globpath(a:dir, ft.'/')."\n".
\ globpath(a:dir, ft.'-*/'), "\n")