Blame


1 f3966209 2021-07-13 op " Syntax checking plugin for syntastic
2 f3966209 2021-07-13 op " Language: gmid(1) configuration file
3 f3966209 2021-07-13 op " Licence: ISC
4 f3966209 2021-07-13 op
5 f3966209 2021-07-13 op if exists('g:loaded_syntastic_gmid_gmid_checker')
6 f3966209 2021-07-13 op finish
7 f3966209 2021-07-13 op endif
8 f3966209 2021-07-13 op let g:loaded_syntastic_gmid_gmid_checker = 1
9 f3966209 2021-07-13 op
10 f3966209 2021-07-13 op let s:save_cpo = &cpo
11 f3966209 2021-07-13 op set cpo&vim
12 f3966209 2021-07-13 op
13 f3966209 2021-07-13 op function! SyntaxCheckers_gmid_gmid_GetLocList() dict
14 f3966209 2021-07-13 op let makeprg = self.makeprgBuild({ 'args': '-nc' })
15 f3966209 2021-07-13 op
16 f3966209 2021-07-13 op let errorformat =
17 f3966209 2021-07-13 op \ '%-Gconfig OK,' .
18 f3966209 2021-07-13 op \ '%f:%l %tarning: %m,' .
19 f3966209 2021-07-13 op \ '%f:%l %trror: %m'
20 f3966209 2021-07-13 op
21 f3966209 2021-07-13 op return SyntasticMake({
22 f3966209 2021-07-13 op \ 'makeprg': makeprg,
23 f3966209 2021-07-13 op \ 'errorformat': errorformat,
24 f3966209 2021-07-13 op \ 'defaults': {'type': 'E'},
25 f3966209 2021-07-13 op \ 'returns': [0, 1] })
26 f3966209 2021-07-13 op endfunction
27 f3966209 2021-07-13 op
28 f3966209 2021-07-13 op call g:SyntasticRegistry.CreateAndRegisterChecker({
29 f3966209 2021-07-13 op \ 'filetype': 'gmid',
30 f3966209 2021-07-13 op \ 'name': 'gmid',
31 f3966209 2021-07-13 op \ 'exec': 'gmid'})
32 f3966209 2021-07-13 op
33 f3966209 2021-07-13 op let &cpo = s:save_cpo
34 f3966209 2021-07-13 op unlet s:save_cpo
35 f3966209 2021-07-13 op
36 f3966209 2021-07-13 op " vim: set sw=4 sts=4 et fdm=marker: