mirror of
https://github.com/dense-analysis/ale
synced 2024-12-18 20:35:29 +00:00
windows compatible warning match pattern for erlc (#1071)
* windows compatible warning match pattern for erlc
This commit is contained in:
parent
25b5fad15c
commit
220ebb3a79
@ -17,7 +17,7 @@ function! ale_linters#erlang#erlc#Handle(buffer, lines) abort
|
||||
" error.erl:4: variable 'B' is unbound
|
||||
" error.erl:3: Warning: function main/0 is unused
|
||||
" error.erl:4: Warning: variable 'A' is unused
|
||||
let l:pattern = '\v^([^:]+):(\d+): (Warning: )?(.+)$'
|
||||
let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+): (Warning: )?(.+)$'
|
||||
|
||||
" parse_transforms are a special case. The error message does not indicate a location:
|
||||
" error.erl: undefined parse transform 'some_parse_transform'
|
||||
|
Loading…
Reference in New Issue
Block a user