Change regex to better handle messages with multiple groups of parentheses.

This commit is contained in:
John Sivak
2017-06-25 20:19:39 -04:00
parent 1917e9157c
commit 539a76c5ae
2 changed files with 8 additions and 1 deletions

View File

@@ -36,7 +36,7 @@ function! ale_linters#python#pylint#Handle(buffer, lines) abort
" Matches patterns like the following:
"
" test.py:4:4: W0101 (unreachable) Unreachable code
let l:pattern = '\v^[^:]+:(\d+):(\d+): ([[:alnum:]]+) \((.*)\) (.*)$'
let l:pattern = '\v^[^:]+:(\d+):(\d+): ([[:alnum:]]+) \(([^(]*)\) (.*)$'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)