mirror of
https://github.com/dense-analysis/ale.git
synced 2026-05-11 09:08:32 +08:00
fix lint, fix variable semantics and update tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user