diff options
author | D. Ben Knoble <ben.knoble+github@gmail.com> | 2021-01-23 12:27:55 -0500 |
---|---|---|
committer | D. Ben Knoble <ben.knoble+github@gmail.com> | 2021-01-23 12:27:55 -0500 |
commit | 10d2b8797c3d4336729f5f6f75edab53733d7642 (patch) | |
tree | 45c43bddf1dac4f095cf6a281fdd5eb3df4958f2 /ale_linters/prolog/swipl.vim | |
parent | 80a0108fcfa93876c03e7e74110d11e398561cb0 (diff) | |
download | ale-10d2b8797c3d4336729f5f6f75edab53733d7642.zip |
swipl: style fix
Diffstat (limited to 'ale_linters/prolog/swipl.vim')
-rw-r--r-- | ale_linters/prolog/swipl.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/prolog/swipl.vim b/ale_linters/prolog/swipl.vim index e5a42e52..82859eb0 100644 --- a/ale_linters/prolog/swipl.vim +++ b/ale_linters/prolog/swipl.vim @@ -34,14 +34,14 @@ function! s:Subst(format, vars) abort return substitute(a:format, '%\(.\)', '\=get(l:vars, submatch(1), "")', 'g') endfunction -let s:pattern = '\v^(ERROR|Warning)+%(:\s*[^:]+:(\d+)%(:(\d+))?)?:\s*(.*)$' - function! ale_linters#prolog#swipl#Handle(buffer, lines) abort let l:output = [] let l:i = 0 + let l:pattern = '\v^(ERROR|Warning)+%(:\s*[^:]+:(\d+)%(:(\d+))?)?:\s*(.*)$' + while l:i < len(a:lines) - let l:match = matchlist(a:lines[l:i], s:pattern) + let l:match = matchlist(a:lines[l:i], l:pattern) if empty(l:match) let l:i += 1 |