Improve parse suffixes
This commit is contained in:
parent
d657c10abe
commit
a7c5fc843e
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user