Issue 7288: Detect improper leading whitespace in C files for Vim (original) (raw)

Issue7288

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/51537

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: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: brett.cannon Nosy List: brett.cannon, pitrou
Priority: low Keywords: easy

Created on 2009-11-08 21:46 by brett.cannon, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg95047 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) 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) * (Python committer) 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) * (Python committer) 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
2022-04-11 14:56:54 admin set github: 51537
2010-04-25 22:42:47 brett.cannon set status: open -> closedresolution: wont fix
2009-11-09 01:39:58 brett.cannon set messages: +
2009-11-08 22:03:49 pitrou set nosy: + pitroumessages: +
2009-11-08 21:46:53 brett.cannon create