Updated vimrc
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
"
|
||||
"============================================================================
|
||||
|
||||
if exists("g:loaded_syntastic_python_pyflakes_checker")
|
||||
if exists('g:loaded_syntastic_python_pyflakes_checker')
|
||||
finish
|
||||
endif
|
||||
let g:loaded_syntastic_python_pyflakes_checker = 1
|
||||
@@ -27,12 +27,12 @@ function! SyntaxCheckers_python_pyflakes_GetHighlightRegex(i)
|
||||
|
||||
" fun with Python's %r: try "..." first, then '...'
|
||||
let term = matchstr(a:i['text'], '\m^.\{-}"\zs.\{-1,}\ze"')
|
||||
if term != ''
|
||||
if term !=# ''
|
||||
return '\V\<' . escape(term, '\') . '\>'
|
||||
endif
|
||||
|
||||
let term = matchstr(a:i['text'], '\m^.\{-}''\zs.\{-1,}\ze''')
|
||||
if term != ''
|
||||
if term !=# ''
|
||||
return '\V\<' . escape(term, '\') . '\>'
|
||||
endif
|
||||
endif
|
||||
@@ -55,7 +55,7 @@ function! SyntaxCheckers_python_pyflakes_GetLocList() dict
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'env': env,
|
||||
\ 'defaults': {'text': "Syntax error"} })
|
||||
\ 'defaults': {'text': 'Syntax error'} })
|
||||
|
||||
for e in loclist
|
||||
let e['vcol'] = 0
|
||||
|
||||
Reference in New Issue
Block a user