Improve parse suffixes

This commit is contained in:
Shougo Matsushita 2015-10-23 14:14:03 +09:00
parent d657c10abe
commit a7c5fc843e

View File

@ -111,10 +111,11 @@ function! neosnippet#commands#_make_cache(filetype) "{{{
for glob in s:get_list().flatten(
\ map(split(get(g:neosnippet#scope_aliases,
\ filetype, filetype), '\s*,\s*'), "
\ [v:val . '.snip*', v:val . '/**/*.snip*']
\ [v:val.'.snip', v:val.'.snippet',
\ v:val.'/**/*.snip', v:val.'/**/*.snippet']
\ + (filetype != '_' &&
\ !has_key(g:neosnippet#scope_aliases, filetype) ?
\ [v:val . '_*.snip*'] : [])"))
\ [v:val . '_*.snip', v:val . '_*.snippet'] : [])"))
let snippets_files += split(globpath(path, glob), '\n')
endfor