diff options
author | bratekarate <bratekannkarate@gmail.com> | 2020-09-26 17:09:54 +0200 |
---|---|---|
committer | bratekarate <bratekannkarate@gmail.com> | 2020-09-26 17:09:54 +0200 |
commit | 56242cb87469e9a448de5c60a086a41b3641a7c3 (patch) | |
tree | e2671921bcdc756cfa66bdd01b48be15b79ccb04 /ale_linters/bib | |
parent | 5f2aeba8cc7c5918bdcd054778a28837ada8def3 (diff) | |
download | ale-56242cb87469e9a448de5c60a086a41b3641a7c3.zip |
fix lint, fix variable semantics and update tests
Diffstat (limited to 'ale_linters/bib')
-rw-r--r-- | ale_linters/bib/bibclean.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/bib/bibclean.vim b/ale_linters/bib/bibclean.vim index 1d1c9ec2..f1610e00 100644 --- a/ale_linters/bib/bibclean.vim +++ b/ale_linters/bib/bibclean.vim @@ -20,10 +20,10 @@ endfunction function! ale_linters#bib#bibclean#match_msg(line) abort " 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:\(\w\+\):\(.*\)$') - return ! empty(l:matches_legacy) - \ ? l:matches_legacy - \ : matchlist(a:line, '^\(.*\) "stdin", line \(.*\): \(.*\)$') + 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 |