bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161)

This commit is contained in:
Pablo Galindo 2021-01-19 23:59:33 +00:00 committed by GitHub
parent 66f77caca3
commit d6d6371447
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 88 additions and 8 deletions

View file

@ -45,6 +45,7 @@ struct tok_state {
/* Used to allow free continuations inside them */
char parenstack[MAXLEVEL];
int parenlinenostack[MAXLEVEL];
int parencolstack[MAXLEVEL];
PyObject *filename;
/* Stuff for checking on different tab sizes */
int altindstack[MAXINDENT]; /* Stack of alternate indents */