Fix #1492 - Make pylint error parsing work on Windows

This commit is contained in:
w0rp
2018-04-10 15:18:16 +01:00
parent 67b71653f5
commit 36a3932ce8
2 changed files with 20 additions and 1 deletions

View File

@@ -25,7 +25,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^[a-zA-Z]?:?[^:]+:(\d+):(\d+): ([[:alnum:]]+) \(([^(]*)\) (.*)$'
let l:output = []
for l:match in ale#util#GetMatches(a:lines, l:pattern)