mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-21 11:41:15 +08:00
Add neovim 0.6 to run-tests (#3998)
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
This commit is contained in:
@@ -62,25 +62,34 @@ function! ale#test#SetFilename(path) abort
|
||||
silent! noautocmd execute 'file ' . fnameescape(l:full_path)
|
||||
endfunction
|
||||
|
||||
function! s:RemoveModule(results) abort
|
||||
function! RemoveNewerKeys(results) abort
|
||||
for l:item in a:results
|
||||
if has_key(l:item, 'module')
|
||||
call remove(l:item, 'module')
|
||||
endif
|
||||
|
||||
if has_key(l:item, 'end_col')
|
||||
call remove(l:item, 'end_col')
|
||||
endif
|
||||
|
||||
if has_key(l:item, 'end_lnum')
|
||||
call remove(l:item, 'end_lnum')
|
||||
endif
|
||||
endfor
|
||||
endfunction
|
||||
|
||||
" Return loclist data without the module string, only in newer Vim versions.
|
||||
function! ale#test#GetLoclistWithoutModule() abort
|
||||
" Return loclist data with only the keys supported by the lowest Vim versions.
|
||||
function! ale#test#GetLoclistWithoutNewerKeys() abort
|
||||
let l:results = getloclist(0)
|
||||
call s:RemoveModule(l:results)
|
||||
call RemoveNewerKeys(l:results)
|
||||
|
||||
return l:results
|
||||
endfunction
|
||||
|
||||
function! ale#test#GetQflistWithoutModule() abort
|
||||
" Return quickfix data with only the keys supported by the lowest Vim versions.
|
||||
function! ale#test#GetQflistWithoutNewerKeys() abort
|
||||
let l:results = getqflist()
|
||||
call s:RemoveModule(l:results)
|
||||
call RemoveNewerKeys(l:results)
|
||||
|
||||
return l:results
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user