summaryrefslogtreecommitdiff
path: root/ale_linters/sql/sqlint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/sql/sqlint.vim')
-rw-r--r--ale_linters/sql/sqlint.vim8
1 files changed, 1 insertions, 7 deletions
diff --git a/ale_linters/sql/sqlint.vim b/ale_linters/sql/sqlint.vim
index d8bf9dce..ca893724 100644
--- a/ale_linters/sql/sqlint.vim
+++ b/ale_linters/sql/sqlint.vim
@@ -8,13 +8,7 @@ function! ale_linters#sql#sqlint#Handle(buffer, lines) abort
let l:pattern = '\v^[^:]+:(\d+):(\d+):(\u+) (.*)'
let l:output = []
- for l:line in a:lines
- let l:match = matchlist(l:line, l:pattern)
-
- if empty(l:match)
- continue
- endif
-
+ for l:match in ale#util#GetMatches(a:lines, l:pattern)
call add(l:output, {
\ 'lnum': l:match[1] + 0,
\ 'col': l:match[2] + 0,