mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
add column offset to all syntax errors
This commit is contained in:
parent
2bc5c0be01
commit
d4efd9eb15
6 changed files with 60 additions and 40 deletions
|
@ -46,7 +46,9 @@ typedef struct _symtable_entry {
|
|||
unsigned ste_returns_value : 1; /* true if namespace uses return with
|
||||
an argument */
|
||||
int ste_lineno; /* first line of block */
|
||||
int ste_col_offset; /* offset of first line of block */
|
||||
int ste_opt_lineno; /* lineno of last exec or import * */
|
||||
int ste_opt_col_offset; /* offset of last exec or import * */
|
||||
int ste_tmpname; /* counter for listcomp temp vars */
|
||||
struct symtable *ste_table;
|
||||
} PySTEntryObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue