mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 05:04:28 +08:00
bibclean: update matchlist reges for bibclean > v2.11.4
This commit is contained in:
@@ -18,7 +18,12 @@ function! ale_linters#bib#bibclean#get_type(str) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#bib#bibclean#match_msg(line) abort
|
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:\(\w\+\):\(.*\)$')
|
||||||
|
return ! empty(l:matches_legacy)
|
||||||
|
\ ? l:matches_legacy
|
||||||
|
\ : matchlist(a:line, '^\(.*\) "stdin", line \(.*\): \(.*\)$')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#bib#bibclean#match_entry(line) abort
|
function! ale_linters#bib#bibclean#match_entry(line) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user