Nimbin[12]?Mirrors & Forks / syntastic / commits / 20fb41cb

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

add errorformat handlers for hlint column and line ranges

chrislf · 2020-09-17 21:04 · 20fb41cb3ee7efd041866fad7384668d131a0029

 syntax_checkers/haskell/hlint.vim | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/syntax_checkers/haskell/hlint.vim b/syntax_checkers/haskell/hlint.vim
index 07ac45d9..02e9d684 100644
--- a/syntax_checkers/haskell/hlint.vim
+++ b/syntax_checkers/haskell/hlint.vim
@@ -28,8 +28,14 @@ function! SyntaxCheckers_haskell_hlint_GetLocList() dict
 
     let errorformat =
         \ '%E%f:%l:%v: Error while reading hint file\, %m,' .
+        \ '%E%f:(%l\,%v)-(%*[0-9]\,%*[0-9]): Error: %m,' .
+        \ '%E%f:%l:%v-%*[0-9]: Error: %m,' .
         \ '%E%f:%l:%v: Error: %m,' .
+        \ '%W%f:(%l\,%v)-(%*[0-9]\,%*[0-9]): Warning: %m,' .
+        \ '%W%f:%l:%v-%*[0-9]: Warning: %m,' .
         \ '%W%f:%l:%v: Warning: %m,' .
+        \ '%W%f:(%l\,%v)-(%*[0-9]\,%*[0-9]): Suggestion: %m,' .
+        \ '%W%f:%l:%v-%*[0-9]: Suggestion: %m,' .
         \ '%W%f:%l:%v: Suggestion: %m,' .
         \ '%C%m'