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( for glob in s:get_list().flatten(
\ map(split(get(g:neosnippet#scope_aliases, \ map(split(get(g:neosnippet#scope_aliases,
\ filetype, filetype), '\s*,\s*'), " \ filetype, filetype), '\s*,\s*'), "
\ [v:val . '.snip*', v:val . '/**/*.snip*'] \ [v:val.'.snip', v:val.'.snippet',
\ v:val.'/**/*.snip', v:val.'/**/*.snippet']
\ + (filetype != '_' && \ + (filetype != '_' &&
\ !has_key(g:neosnippet#scope_aliases, 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') let snippets_files += split(globpath(path, glob), '\n')
endfor endfor