From 0ef513a0a8f14ad8194a3300ec2563761a1334fe Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 18 Mar 2013 09:42:22 +0000 Subject: [PATCH] python/flake8: add some backwards compat make it match E and W for flake < 2.0 --- syntax_checkers/python/flake8.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/python/flake8.vim b/syntax_checkers/python/flake8.vim index 6c972fac..b5d0df23 100644 --- a/syntax_checkers/python/flake8.vim +++ b/syntax_checkers/python/flake8.vim @@ -35,8 +35,8 @@ function! SyntaxCheckers_python_flake8_GetLocList() \ 'exe': 'flake8', \ 'subchecker': 'flake8' }) let errorformat = '%E%f:%l: could not compile,%-Z%p^,'. - \'%W%f:%l:%c: F%n %m,'. - \'%W%f:%l:%c: C%n %m,'. + \'%W%f:%l:%c: %[FE]%n %m,'. + \'%W%f:%l:%c: %[CW]%n %m,'. \'%E%f:%l:%c: %t%n %m,'. \'%E%f:%l: %t%n %m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })