Permalink
Browse files

multiline hlint

  • Loading branch information...
dag committed Apr 3, 2012
1 parent b7e7275 commit d301713037ec48b4feccc7602b1d8b5d702a2263
Showing with 9 additions and 1 deletion.
  1. +9 −1 compiler/hlint.vim
View
@@ -7,5 +7,13 @@ call vim2hs#letdefault('g:hlint_args', '--language=XmlSyntax')
execute 'CompilerSet makeprg=hlint\ ' . g:hlint_args . '\ %'
-CompilerSet errorformat=%f:%l:%c:\ %t%*[a-zA-Z]:\ %m
+let s:errorformat = join([
+ \ '%W%f:%l:%c: Warning: %m',
+ \ '%E%f:%l:%c: Error: %m',
+ \ '%E%f:%l:%c: Parse error',
+ \ '%+C%m',
+ \ '%-Z',
+ \ ], ',')
+execute 'CompilerSet errorformat=' . escape(s:errorformat, ' ')
+
CompilerSet shellpipe&

0 comments on commit d301713

Please sign in to comment.