Don't shoe horn 'syntax error' everywhere

It hides the actual warning/error from Syntastic - so don't do that.
This commit is contained in:
Lee Packham 2012-04-12 06:48:17 +01:00
parent 4b61f4b2b9
commit 02e510eec4

View File

@ -6,9 +6,6 @@
"
"============================================================================
function! SyntaxCheckers_python_GetHighlightRegex(i)
if a:i['type'] ==# 'E'
let a:i['text'] = "Syntax error"
endif
if match(a:i['text'], 'is assigned to but never used') > -1
\ || match(a:i['text'], 'imported but unused') > -1
\ || match(a:i['text'], 'undefined name') > -1