def snipmate_files_for(ft):
 if (ft == 'all'):
  ft = '_'
 patterns = [('%s.snippets' % ft), os.path.join(ft, '*.snippets'), os.path.join(ft, '*.snippet'), os.path.join(ft, '*/*.snippet')]
 ret = set()
 for rtp in _vim.eval('&runtimepath').split(','):
  path = os.path.realpath(os.path.expanduser(os.path.join(rtp, 'snippets')))
  for pattern in patterns:
   for fn in glob.glob(os.path.join(path, pattern)):
    ret.add(fn)
 return ret

def snipmate_files_for ( ft ) : if ( ft == 'all' ) : ft = '_' patterns = [ ( '%s.snippets' % ft ) , os . path . join ( ft , '*.snippets' ) , os . path . join ( ft , '*.snippet' ) , os . path . join ( ft , '*/*.snippet' ) ] ret = set ( ) for rtp in _vim . eval ( '&runtimepath' ) . split ( ',' ) : path = os . path . realpath ( os . path . expanduser ( os . path . join ( rtp , 'snippets' ) ) ) for pattern in patterns : for fn in glob . glob ( os . path . join ( path , pattern ) ) : ret . add ( fn ) return ret
returns all snipmate files we need to look at for ft .