summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2022-04-01 21:17:15 +0900
committerGitHub <noreply@github.com>2022-04-01 13:17:15 +0100
commit0f55d371e92160812ff0a57b5f48f2010a420f0c (patch)
tree5a291b2decb6fd3014126a468c005c2cbf524972 /autoload
parente81f005c78193b9475b359751e9fae21f65c1c2b (diff)
downloadale-0f55d371e92160812ff0a57b5f48f2010a420f0c.zip
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>
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/test.vim21
1 files changed, 15 insertions, 6 deletions
diff --git a/autoload/ale/test.vim b/autoload/ale/test.vim
index 4d75d515..e03ecb65 100644
--- a/autoload/ale/test.vim
+++ b/autoload/ale/test.vim
@@ -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