add column offset to all syntax errors

This commit is contained in:
Benjamin Peterson 2010-09-20 23:02:10 +00:00
parent 2bc5c0be01
commit d4efd9eb15
6 changed files with 60 additions and 40 deletions

View file

@ -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;