From 25d2af0b2529006ba869a5906afae028f7b9f28e Mon Sep 17 00:00:00 2001 From: Gerry Agbobada <10496163+gagbo@users.noreply.github.com> Date: Wed, 25 Oct 2017 23:29:36 +0200 Subject: Handle multiple files localtion lists with gcc handler (#1034) Handle multiple files in the GCC handler. --- test/sign/test_linting_sets_signs.vader | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/sign') diff --git a/test/sign/test_linting_sets_signs.vader b/test/sign/test_linting_sets_signs.vader index f9bd63b0..271540e2 100644 --- a/test/sign/test_linting_sets_signs.vader +++ b/test/sign/test_linting_sets_signs.vader @@ -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]]) -- cgit v1.2.3