From ebab81b22032d4287d452ea5b87c000c186e0e00 Mon Sep 17 00:00:00 2001 From: Mark Grimes Date: Sun, 16 Dec 2018 17:01:24 -0500 Subject: [PATCH] Use non-greedy matching instead of looking for the comma --- ale_linters/perl/perl.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ale_linters/perl/perl.vim b/ale_linters/perl/perl.vim index 131e7152..4b954f0d 100644 --- a/ale_linters/perl/perl.vim +++ b/ale_linters/perl/perl.vim @@ -18,7 +18,7 @@ function! ale_linters#perl#perl#Handle(buffer, lines) abort return [] endif - let l:pattern = '\(.\+\) at \(.\+\) line \(\d\+\),' + let l:pattern = '\(..\{-}\) at \(..\{-}\) line \(\d\+\)' let l:output = [] let l:basename = expand('#' . a:buffer . ':t')