- Fixed get_source_filetypes.

This commit is contained in:
Shougo Matsushita 2013-07-11 14:45:40 +09:00
parent fe9ba1525d
commit f724d907ef

View File

@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" FILE: neosnippet.vim " FILE: neosnippet.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com> " AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 03 Jul 2013. " Last Modified: 11 Jul 2013.
" License: MIT license {{{ " License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining " Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the " a copy of this software and associated documentation files (the
@ -1060,9 +1060,13 @@ function! neosnippet#get_filetype() "{{{
return context_filetype return context_filetype
endfunction"}}} endfunction"}}}
function! s:get_sources_filetypes(filetype) "{{{ function! s:get_sources_filetypes(filetype) "{{{
return (exists('*neocomplcache#get_source_filetypes') ? let filetypes =
\ exists('*neocomplete#get_source_filetypes') ?
\ neocomplete#get_source_filetypes(a:filetype) :
\ exists('*neocomplcache#get_source_filetypes') ?
\ neocomplcache#get_source_filetypes(a:filetype) : \ neocomplcache#get_source_filetypes(a:filetype) :
\ [(a:filetype == '') ? 'nothing' : a:filetype]) + ['_'] \ [(a:filetype == '') ? 'nothing' : a:filetype]
return filetypes + ['_']
endfunction"}}} endfunction"}}}
function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{ function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{