diff options
author | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-10-02 09:36:32 +0200 |
---|---|---|
committer | Bartek thindil Jasicki <thindil@laeran.pl> | 2020-10-02 09:36:32 +0200 |
commit | bd1b671e82445a0182fba231d14c2e808a77d8a7 (patch) | |
tree | 7da217badb1ef29209105a4d9e5fba296f326b0f /ale_linters | |
parent | 1781b1eab0f9c8e6dd5beca302bd9cd430d7f7b2 (diff) | |
parent | 2d3ed956b944132e1d520446493fa5c9aa8a309f (diff) | |
download | ale-bd1b671e82445a0182fba231d14c2e808a77d8a7.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/bib/bibclean.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ale_linters/bib/bibclean.vim b/ale_linters/bib/bibclean.vim index 9056a9c3..f1610e00 100644 --- a/ale_linters/bib/bibclean.vim +++ b/ale_linters/bib/bibclean.vim @@ -18,7 +18,12 @@ function! ale_linters#bib#bibclean#get_type(str) abort endfunction function! ale_linters#bib#bibclean#match_msg(line) abort - return matchlist(a:line, '^\(.*\) "stdin", line \(.*\): \(.*\)$') + " Legacy message pattern works for bibclean <= v2.11.4. If empty, try + " the new message pattern for bibtex > v2.11.4 + let l:matches_legacy = matchlist(a:line, '^\(.*\) "stdin", line \(\d\+\): \(.*\)$') + + return ! empty(l:matches_legacy) ? l:matches_legacy + \ : matchlist(a:line, '^\(.*\) stdin:\(\d\+\):\(.*\)$') endfunction function! ale_linters#bib#bibclean#match_entry(line) abort |