Adding DLL as a valid extension for ycm_core

Fixes #395
This commit is contained in:
Strahinja Val Markovic 2013-06-18 16:50:51 -07:00
parent f5bf0a28ef
commit 2741520020

View File

@ -41,6 +41,8 @@ function! s:HasYcmCore()
return 1 return 1
elseif filereadable(path_prefix . 'ycm_core.pyd') elseif filereadable(path_prefix . 'ycm_core.pyd')
return 1 return 1
elseif filereadable(path_prefix . 'ycm_core.dll')
return 1
endif endif
return 0 return 0
endfunction endfunction
@ -50,8 +52,8 @@ let g:ycm_check_if_ycm_core_present =
if g:ycm_check_if_ycm_core_present && !s:HasYcmCore() if g:ycm_check_if_ycm_core_present && !s:HasYcmCore()
echohl WarningMsg | echohl WarningMsg |
\ echomsg "ycm_core.[so|pyd] not detected; you need to compile YCM " . \ echomsg "ycm_core.[so|pyd|dll] not detected; you need to compile " .
\ "before using it. Read the docs!" | \ "YCM before using it. Read the docs!" |
\ echohl None \ echohl None
finish finish
endif endif