Merge pull request #470 from Valloric/ycm_bad_merge_fix

Fixing the errors in the ycm files
This commit is contained in:
Martin Grenfell 2013-02-05 01:02:25 -08:00
commit 8f6dbbced4

View File

@ -15,6 +15,10 @@ if exists("loaded_ycm_c_syntax_checker")
endif
let loaded_ycm_c_syntax_checker = 1
function! SyntaxCheckers_c_ycm_IsAvailable()
return exists('g:loaded_youcompleteme')
endfunction
if !exists('g:loaded_youcompleteme')
finish
endif
@ -23,3 +27,6 @@ function! SyntaxCheckers_c_GetLocList()
return youcompleteme#CurrentFileDiagnostics()
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c',
\ 'name': 'ycm'})