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:
parent
4b61f4b2b9
commit
02e510eec4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user