diff options
author | Jose Maria Perez Ramos <jose.m.perez.ramos+git@gmail.com> | 2021-07-17 14:51:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-17 21:51:17 +0900 |
commit | a6a8131306f873c33c1983fbc74f0989bc6a4921 (patch) | |
tree | 9892f9a277082bf51edf0e663c3d87d4e2955fae /ale_linters | |
parent | 1893abdb1903fb45e7b28d3cd8ae7dd4197e0c3b (diff) | |
download | ale-a6a8131306f873c33c1983fbc74f0989bc6a4921.zip |
Update erlang format for OTP24 (#3823)
Erlang's erlc error format includes the column in OTP24.
See https://blog.erlang.org/My-OTP-24-Highlights/#column-number-in-warnings-and-errors
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/erlang/erlc.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/erlang/erlc.vim b/ale_linters/erlang/erlc.vim index e78dc341..0c67a73f 100644 --- a/ale_linters/erlang/erlc.vim +++ b/ale_linters/erlang/erlc.vim @@ -25,7 +25,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^([a-zA-Z]?:?[^:]+):(\d+): (Warning: )?(.+)$' + let l:pattern = '\v^([a-zA-Z]?:?[^:]+):(\d+):(\d+:)? (Warning: )?(.+)$' " parse_transforms are a special case. The error message does not indicate a location: " error.erl: undefined parse transform 'some_parse_transform' @@ -65,8 +65,8 @@ function! ale_linters#erlang#erlc#Handle(buffer, lines) abort endif let l:line = l:match[2] - let l:warning_or_text = l:match[3] - let l:text = l:match[4] + let l:warning_or_text = l:match[4] + let l:text = l:match[5] " If this file is a header .hrl, ignore the following expected messages: " - 'no module definition' |