Blob
- Date:
- Message:
- contrib/vim: add Syntastic integration Error and warning messages are prefixed with "error: " and "warning: " correspondingly to ease integration with automated tooling. `yywarn' function added. Off-by-one line numbers in warnings are fixed. Two error messages are reworded to avoid repeating like "error: error in server directive" or "error: syntax error".
- Actions:
- History | Blame | Raw File
1 " Syntax checking plugin for syntastic2 " Language: gmid(1) configuration file3 " Licence: ISC5 if exists('g:loaded_syntastic_gmid_gmid_checker')6 finish7 endif8 let g:loaded_syntastic_gmid_gmid_checker = 110 let s:save_cpo = &cpo11 set cpo&vim13 function! SyntaxCheckers_gmid_gmid_GetLocList() dict14 let makeprg = self.makeprgBuild({ 'args': '-nc' })16 let errorformat =17 \ '%-Gconfig OK,' .18 \ '%f:%l %tarning: %m,' .19 \ '%f:%l %trror: %m'21 return SyntasticMake({22 \ 'makeprg': makeprg,23 \ 'errorformat': errorformat,24 \ 'defaults': {'type': 'E'},25 \ 'returns': [0, 1] })26 endfunction28 call g:SyntasticRegistry.CreateAndRegisterChecker({29 \ 'filetype': 'gmid',30 \ 'name': 'gmid',31 \ 'exec': 'gmid'})33 let &cpo = s:save_cpo34 unlet s:save_cpo36 " vim: set sw=4 sts=4 et fdm=marker: