Add a function for getting matches, and use it to simplify a lot of code

This commit is contained in:
w0rp 2017-04-18 00:35:53 +01:00
parent e237add9fd
commit bdad25eefd
53 changed files with 224 additions and 411 deletions

View file

@ -26,7 +26,6 @@ function! ale_linters#scala#scalac#Handle(buffer, lines) abort
endif
call add(l:output, {
\ 'bufnr': a:buffer,
\ 'lnum': l:match[1] + 0,
\ 'col': l:col + 1,
\ 'text': l:text,