From 256b4225f2e0a73c022c1878b7b1fac1ef6827a4 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 11 Jul 2009 15:57:03 +1200 Subject: [PATCH] update the blurb --- plugin/syntastic.vim | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 151abb47..b56f1830 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -47,9 +47,9 @@ " "This way, a typical syntax checker function can look like this: " -" function! SyntaxCheckers_php_GetQFList() -" set makeprg=php\ -l\ % -" set errorformat=something\ really\ long\ and\ horrid +" function! SyntaxCheckers_ruby_GetQFList() +" set makeprg=ruby\ -c\ % +" set errorformat=%A%f:%l:\ syntax\ error\\,\ %m,%Z%p^,%-C%.%# " silent make! " return getqflist() " endfunction @@ -57,6 +57,10 @@ "After this function is called, makeprg, errorformat and the quickfix list "will be restored to their previous settings. " +"NOTE: syntax checkers *can* piggy back off :make, but they dont *have* to. If +"&errorformat is too crazy for you then you can parse the syntax checker +"output yourself and compile it into the qflist style data structure. +" " "Options: "----------------------------------------------------------------------------