summaryrefslogtreecommitdiffstats
path: root/Include/token.h
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-03-18 19:01:53 (GMT)
committerGeorg Brandl <georg@python.org>2007-03-18 19:01:53 (GMT)
commitdde002899db8d04ac25d630fcc3a27e8bbf282ea (patch)
tree336d26b7a0e0da705cc729688de862bea896b251 /Include/token.h
parent428f0641ec34902b0cce2cfdca833c79e6fdab7c (diff)
downloadcpython-dde002899db8d04ac25d630fcc3a27e8bbf282ea.zip
cpython-dde002899db8d04ac25d630fcc3a27e8bbf282ea.tar.gz
cpython-dde002899db8d04ac25d630fcc3a27e8bbf282ea.tar.bz2
Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ." for Ellipsis.
Diffstat (limited to 'Include/token.h')
-rw-r--r--Include/token.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/token.h b/Include/token.h
index cdbc965..772a85e 100644
--- a/Include/token.h
+++ b/Include/token.h
@@ -59,10 +59,11 @@ extern "C" {
#define DOUBLESLASHEQUAL 49
#define AT 50
#define RARROW 51
+#define ELLIPSIS 52
/* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
-#define OP 52
-#define ERRORTOKEN 53
-#define N_TOKENS 54
+#define OP 53
+#define ERRORTOKEN 54
+#define N_TOKENS 55
/* Special definitions for cooperation with parser */