mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Add checking for inconsistent tab usage
This commit is contained in:
parent
e77a992a0d
commit
926f13a081
2 changed files with 49 additions and 3 deletions
|
@ -62,6 +62,12 @@ struct tok_state {
|
|||
int lineno; /* Current line number */
|
||||
int level; /* () [] {} Parentheses nesting level */
|
||||
/* Used to allow free continuations inside them */
|
||||
/* Stuff for checking on different tab sizes */
|
||||
char *filename; /* For error messages */
|
||||
int altwarning; /* Issue warning if alternate tabs don't match */
|
||||
int alterror; /* Issue error if alternate tabs don't match */
|
||||
int alttabsize; /* Alternate tab spacing */
|
||||
int altindstack[MAXINDENT]; /* Stack of alternate indents */
|
||||
};
|
||||
|
||||
extern struct tok_state *PyTokenizer_FromString Py_PROTO((char *));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue