#710 - Fix a parsing bug caused by the last fix
This commit is contained in:
parent
7ce960ae51
commit
d9a7364dae
@ -42,7 +42,7 @@ function! ale#handlers#haskell#HandleGHCFormat(buffer, lines) abort
|
|||||||
let l:text = l:errors[2]
|
let l:text = l:errors[2]
|
||||||
else
|
else
|
||||||
let l:ghc_type = ''
|
let l:ghc_type = ''
|
||||||
let l:text = l:match[4][:0] ==# ' ' ? l:match[4][1:] : l:match
|
let l:text = l:match[4][:0] ==# ' ' ? l:match[4][1:] : l:match[4]
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if l:ghc_type ==? 'Warning'
|
if l:ghc_type ==? 'Warning'
|
||||||
|
@ -13,13 +13,13 @@ Execute(HandleGhcFormat should handle ghc-mod problems):
|
|||||||
\ 'lnum': 2,
|
\ 'lnum': 2,
|
||||||
\ 'col': 1,
|
\ 'col': 1,
|
||||||
\ 'type': 'E',
|
\ 'type': 'E',
|
||||||
\ 'text': ' Suggestion: Use camelCaseFound: my_variable = ...Why not: myVariable = ...',
|
\ 'text': 'Suggestion: Use camelCaseFound: my_variable = ...Why not: myVariable = ...',
|
||||||
\ },
|
\ },
|
||||||
\ {
|
\ {
|
||||||
\ 'lnum': 6,
|
\ 'lnum': 6,
|
||||||
\ 'col': 1,
|
\ 'col': 1,
|
||||||
\ 'type': 'E',
|
\ 'type': 'W',
|
||||||
\ 'text': ' Warning: Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
|
\ 'text': 'Eta reduceFound: myFunc x = succ xWhy not: myFunc = succ',
|
||||||
\ },
|
\ },
|
||||||
\ ],
|
\ ],
|
||||||
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
\ ale#handlers#haskell#HandleGHCFormat(bufnr(''), [
|
||||||
|
Loading…
Reference in New Issue
Block a user