summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorJohn Sivak <jsivak@morpace.com>2017-06-25 20:19:39 -0400
committerJohn Sivak <jsivak@morpace.com>2017-06-25 20:19:39 -0400
commit539a76c5ae9222505d7cb73511c3581f58fe0343 (patch)
treec21b187ecbf81fcedb92ca0982be63e84069b087 /ale_linters
parent1917e9157c5134044e16bb84997ad7fe5860a833 (diff)
downloadale-539a76c5ae9222505d7cb73511c3581f58fe0343.zip
Change regex to better handle messages with multiple groups of parentheses.
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/python/pylint.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim
index d339daa9..dcb26c78 100644
--- a/ale_linters/python/pylint.vim
+++ b/ale_linters/python/pylint.vim
@@ -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)