Created
March 3, 2014 15:07
-
-
Save gilligan/9326904 to your computer and use it in GitHub Desktop.
clint syntastic checker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists("g:loaded_syntastic_clint_checker") | |
finish | |
endif | |
let g:loaded_syntastic_clint_checker = 1 | |
let s:save_cpo = &cpo | |
set cpo&vim | |
function! SyntaxCheckers_c_clint_GetLocList() dict | |
let makeprg = self.makeprgBuild({ | |
\ 'args': '', | |
\ 'args_after': '' }) | |
let errorformat = '%f:%l: %m' | |
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) | |
endfunction | |
call g:SyntasticRegistry.CreateAndRegisterChecker({ | |
\ 'filetype': 'c', | |
\ 'name': 'clint', | |
\ 'exec': 'clint.py' }) | |
let &cpo = s:save_cpo | |
unlet s:save_cpo | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment