swipl: style fix

This commit is contained in:
D. Ben Knoble 2021-01-23 12:27:55 -05:00
parent 80a0108fcf
commit 10d2b8797c
1 changed files with 3 additions and 3 deletions

View File

@ -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