Fix the D error parsing to handle output without column numbers.
This commit is contained in:
parent
6df632218e
commit
acb209aa11
@ -29,9 +29,9 @@ endfunction
|
|||||||
|
|
||||||
function! ale_linters#d#dmd#Handle(buffer, lines)
|
function! ale_linters#d#dmd#Handle(buffer, lines)
|
||||||
" Matches patterns lines like the following:
|
" Matches patterns lines like the following:
|
||||||
"
|
" /tmp/tmp.qclsa7qLP7/file.d(1): Error: function declaration without return type. (Note that constructors are always named 'this')
|
||||||
" /tmp/tmp.G1L5xIizvB.d(8,8): Error: module weak_reference is in file 'dstruct/weak_reference.d' which cannot be read
|
" /tmp/tmp.G1L5xIizvB.d(8,8): Error: module weak_reference is in file 'dstruct/weak_reference.d' which cannot be read
|
||||||
let l:pattern = '^[^(]\+(\([0-9]\+\),\([0-9]\+\)): \([^:]\+\): \(.\+\)'
|
let l:pattern = '^[^(]\+(\([0-9]\+\)\,\?\([0-9]*\)): \([^:]\+\): \(.\+\)'
|
||||||
let l:output = []
|
let l:output = []
|
||||||
|
|
||||||
for l:line in a:lines
|
for l:line in a:lines
|
||||||
|
Loading…
Reference in New Issue
Block a user