Permalink
Browse files

Highlight the whole line for SyntaxErrors.

  • Loading branch information...
1 parent 10dccd1 commit 083bc2e65649a9cf10a7c1bcd22151a4083ddeb7 @kevinw committed Aug 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyflakes.vim
View
@@ -149,7 +149,7 @@ for w in check(vim.current.buffer):
vim.command("let s:matchDict['message'] = '%s'" % vim_quote(w.message % w.message_args))
vim.command("let b:matchedlines[" + str(w.lineno) + "] = s:matchDict")
- if w.col is None:
+ if w.col is None or isinstance(w, SyntaxError):
# without column information, just highlight the whole line
# (minus the newline)
vim.command(r"let s:mID = matchadd('PyFlakes', '\%" + str(w.lineno) + r"l\n\@!')")

0 comments on commit 083bc2e

Please sign in to comment.