summaryrefslogtreecommitdiff
path: root/ale_linters/bicep/bicep.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/bicep/bicep.vim')
-rw-r--r--ale_linters/bicep/bicep.vim15
1 files changed, 8 insertions, 7 deletions
diff --git a/ale_linters/bicep/bicep.vim b/ale_linters/bicep/bicep.vim
index 91cc1986..a5f0d7c6 100644
--- a/ale_linters/bicep/bicep.vim
+++ b/ale_linters/bicep/bicep.vim
@@ -30,24 +30,25 @@ function! ale_linters#bicep#bicep#Command(buffer) abort
endfunction
function! ale_linters#bicep#bicep#Handle(buffer, lines) abort
- let l:pattern = '\v^.*\((\d+),(\d+)\)\s:\s([a-zA-Z]*)\s([-a-zA-Z0-9]*):\s(.*)'
+ let l:pattern = '\v^(.*)\((\d+),(\d+)\)\s:\s([a-zA-Z]*)\s([-a-zA-Z0-9]*):\s(.*)'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)
- if l:match[3] is# 'Error'
+ if l:match[4] is# 'Error'
let l:type = 'E'
- elseif l:match[3] is# 'Warning'
+ elseif l:match[4] is# 'Warning'
let l:type = 'W'
else
let l:type = 'I'
endif
call add(l:output, {
- \ 'lnum': l:match[1] + 0,
- \ 'col': l:match[2] + 0,
+ \ 'filename': l:match[1],
+ \ 'lnum': l:match[2] + 0,
+ \ 'col': l:match[3] + 0,
\ 'type': l:type,
- \ 'code': l:match[4],
- \ 'text': l:match[5],
+ \ 'code': l:match[5],
+ \ 'text': l:match[6],
\})
endfor