Hdevtools: fix column calculations. Cleanup.
This commit is contained in:
parent
841087faba
commit
62fde00516
@ -18,7 +18,7 @@ if has('reltime')
|
|||||||
let g:syntastic_start = reltime()
|
let g:syntastic_start = reltime()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:syntastic_version = '3.4.0-22'
|
let g:syntastic_version = '3.4.0-23'
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
|
||||||
|
@ -19,23 +19,28 @@ let s:save_cpo = &cpo
|
|||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict
|
function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({
|
if exists('g:hdevtools_options')
|
||||||
\ 'exe': self.getExecEscaped() . ' check',
|
let g:syntastic_haskell_hdevtools_args = g:hdevtools_options
|
||||||
\ 'fname': syntastic#util#shexpand('%:p'),
|
endif
|
||||||
\ 'args': get(g:, 'hdevtools_options', '') })
|
|
||||||
|
|
||||||
let errorformat= '\%-Z\ %#,'.
|
let makeprg = self.makeprgBuild({
|
||||||
\ '%W%f:%l:%c:\ Warning:\ %m,'.
|
\ 'exe_after': 'check',
|
||||||
\ '%W%f:%l:%c:\ Warning:,'.
|
\ 'fname': syntastic#util#shexpand('%:p') })
|
||||||
\ '%E%f:%l:%c:\ %m,'.
|
|
||||||
\ '%E%>%f:%l:%c:,'.
|
let errorformat =
|
||||||
\ '%+C\ \ %#%m,'.
|
\ '%-Z %#,'.
|
||||||
\ '%W%>%f:%l:%c:,'.
|
\ '%W%f:%l:%v: Warning: %m,'.
|
||||||
\ '%+C\ \ %#%tarning:\ %m,'
|
\ '%W%f:%l:%v: Warning:,'.
|
||||||
|
\ '%E%f:%l:%v: %m,'.
|
||||||
|
\ '%E%>%f:%l:%v:,'.
|
||||||
|
\ '%+C %#%m,'.
|
||||||
|
\ '%W%>%f:%l:%v:,'.
|
||||||
|
\ '%+C %#%tarning: %m,'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
|
\ 'defaults': {'vcol': 1},
|
||||||
\ 'postprocess': ['compressWhitespace'] })
|
\ 'postprocess': ['compressWhitespace'] })
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user