aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-11 17:53:00 +0000
committerFred Drake <fdrake@acm.org>2000-07-11 17:53:00 +0000
commit85f363990cbd6df21015eebdc171c533176e3407 (patch)
tree4aa69857ffe21991384e379799f42ba308a58086 /Include/parsetok.h
parentfixed a warning in getsockaddrlen (diff)
downloadcpython-85f363990cbd6df21015eebdc171c533176e3407.tar.gz
cpython-85f363990cbd6df21015eebdc171c533176e3407.tar.bz2
cpython-85f363990cbd6df21015eebdc171c533176e3407.zip
Create two new exceptions: IndentationError and TabError. These are
used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
Diffstat (limited to 'Include/parsetok.h')
-rw-r--r--Include/parsetok.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/parsetok.h b/Include/parsetok.h
index 5244e3f837e..71e7d899436 100644
--- a/Include/parsetok.h
+++ b/Include/parsetok.h
@@ -22,6 +22,8 @@ typedef struct {
int lineno;
int offset;
char *text;
+ int token;
+ int expected;
} perrdetail;
extern DL_IMPORT(node *) PyParser_ParseString(char *, grammar *, int,