mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-04 19:28:52 +08:00
Change regex to better handle messages with multiple groups of parentheses.
This commit is contained in:
1 parent
1917e9157c
commit
539a76c5ae
2 files changed
+8
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user