From 3d9f5fac0853141f9842ab9d17f7587dcb061671 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 6 May 2013 00:51:03 +0300 Subject: [PATCH] re-integrate with the latest version of syntastic --- autoload/nimrod.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/autoload/nimrod.vim b/autoload/nimrod.vim index 518e014..38ea26e 100644 --- a/autoload/nimrod.vim +++ b/autoload/nimrod.vim @@ -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'})