re-integrate with the latest version of syntastic
This commit is contained in:
parent
1b3ba4a4b9
commit
3d9f5fac08
1 changed files with 8 additions and 1 deletions
|
|
@ -201,10 +201,17 @@ fun! FindReferences_nimrod()
|
|||
endf
|
||||
|
||||
" Syntastic syntax checking
|
||||
fun! SyntaxCheckers_nimrod_GetLocList()
|
||||
fun! SyntaxCheckers_nimrod_nimrod_GetLocList()
|
||||
let makeprg = 'nimrod check ' . s:CurrentNimrodFile()
|
||||
let errorformat = &errorformat
|
||||
|
||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
endf
|
||||
|
||||
function! SyntaxCheckers_nimrod_nimrod_IsAvailable()
|
||||
return executable("nimrod")
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
\ 'filetype': 'nimrod',
|
||||
\ 'name': 'nimrod'})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue