mirror of
https://github.com/dense-analysis/ale
synced 2025-01-11 08:59:43 +00:00
bibclean: update matchlist reges for bibclean > v2.11.4
This commit is contained in:
parent
08295ce174
commit
5f2aeba8cc
@ -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:\(\w\+\):\(.*\)$')
|
||||
return ! empty(l:matches_legacy)
|
||||
\ ? l:matches_legacy
|
||||
\ : matchlist(a:line, '^\(.*\) "stdin", line \(.*\): \(.*\)$')
|
||||
endfunction
|
||||
|
||||
function! ale_linters#bib#bibclean#match_entry(line) abort
|
||||
|
Loading…
Reference in New Issue
Block a user