Fix #1124 - Handle stack-build errors with leading spaces

This commit is contained in:
w0rp
2017-11-13 22:47:19 +00:00
parent d8abe0d6a2
commit e71d831119
2 changed files with 23 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ function! ale#handlers#haskell#HandleGHCFormat(buffer, lines) abort
" in Haskell error messages with the basename for this file.
let l:temp_filename_regex = s:temp_regex_prefix . l:basename
let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):(\d+):(.*)?$'
let l:pattern = '\v^\s*([a-zA-Z]?:?[^:]+):(\d+):(\d+):(.*)?$'
let l:output = []
let l:corrected_lines = []