From cf6bd5bc64d1fdfa890fa6608d72b1e86e433f9b Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 10 Nov 2011 23:18:48 +0200 Subject: [PATCH] Better errorformat parsing and support for syntastic (https://github.com/scrooloose/syntastic) --- compiler/nimrod.vim | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/compiler/nimrod.vim b/compiler/nimrod.vim index ea73dd2..de3b49f 100644 --- a/compiler/nimrod.vim +++ b/compiler/nimrod.vim @@ -14,10 +14,18 @@ set cpo-=C CompilerSet makeprg=nimrod\ c\ $* CompilerSet errorformat= - \%f(%l\\,\ %c)\ %m + \%-GHint:\ %m, + \%E%f(%l\\,\ %c)\ Error:\ %m, + \%W%f(%l\\,\ %c)\ Hint:\ %m + +" Syntastic syntax checking +function! SyntaxCheckers_nimrod_GetLocList() + let makeprg = 'nimrod check %' + let errorformat = &errorformat + + return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) +endfunction let &cpo = s:cpo_save unlet s:cpo_save -" vim: nowrap sw=2 sts=2 ts=8: -