classification
Title: Detect improper leading whitespace in C files for Vim
Type: behavior Stage: needs patch
Components: None Versions: Python 3.2, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, pitrou (2)
Priority: low Keywords easy

Created on 2009-11-08 21:46 by brett.cannon, last changed 2009-11-09 01:39 by brett.cannon.

Messages (3)
msg95047 - (view) Author: Brett Cannon (brett.cannon) Date: 2009-11-08 21:46
With the proper detection for C files using either tabs or spaces now in 
there should also be proper highlighting when the wrong leading whitespace 
is used, e.g. if the file uses tabs then any lines with "^ +" should be 
flagged as wrong.
msg95048 - (view) Author: Antoine Pitrou (pitrou) Date: 2009-11-08 22:03
As a non-Vim user, I don't really care, but lines beginning with spaces
are valid if you want to indent by something smaller than a tab (this is
common in comments).
msg95053 - (view) Author: Brett Cannon (brett.cannon) Date: 2009-11-09 01:39
Ah nuts, you're right. I guess it will only work for starting with tabs 
when spaces are being used for the indentation.
History
Date User Action Args
2009-11-09 01:39:58brett.cannonsetmessages: + msg95053
2009-11-08 22:03:49pitrousetnosy: + pitrou
messages: + msg95048
2009-11-08 21:46:53brett.cannoncreate