Skip to content

Commit

Permalink
re-integrate with the latest version of syntastic
Browse files Browse the repository at this point in the history
  • Loading branch information
zah committed Aug 24, 2013
1 parent 1b3ba4a commit 3d9f5fa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/nimrod.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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'})

0 comments on commit 3d9f5fa

Please sign in to comment.