Handle multiple files localtion lists with gcc handler (#1034)

Handle multiple files in the GCC handler.
This commit is contained in:
Gerry Agbobada
2017-10-25 23:29:36 +02:00
committed by w0rp
parent 960ae62aaa
commit 25d2af0b25
5 changed files with 69 additions and 71 deletions

View File

@@ -20,7 +20,8 @@ Before:
let l:actual_sign_list = []
for l:line in split(l:output, "\n")
let l:match = matchlist(l:line, 'line=\(\d\+\).*name=\(ALE[a-zA-Z]\+\)')
let l:match = matchlist(l:line, '\m\s*line=\(\d\+\).*name=\(ALE[a-zA-Z]\+\)')
if len(l:match) > 0
call add(l:actual_sign_list, [l:match[1], l:match[2]])