summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLib/symbol.py2
-rwxr-xr-xLib/token.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/Lib/symbol.py b/Lib/symbol.py
index 39159b3eb6..38c6193179 100755
--- a/Lib/symbol.py
+++ b/Lib/symbol.py
@@ -76,6 +76,8 @@ argument = 318
list_iter = 319
list_for = 320
list_if = 321
+testlist1 = 322
+encoding_decl = 323
#--end constants--
sym_name = {}
diff --git a/Lib/token.py b/Lib/token.py
index c77d3430be..f75412c7a6 100755
--- a/Lib/token.py
+++ b/Lib/token.py
@@ -98,7 +98,7 @@ def main():
lines = fp.read().split("\n")
fp.close()
prog = re.compile(
- "#define[ \t][ \t]*([A-Z][A-Z_]*)[ \t][ \t]*([0-9][0-9]*)",
+ "#define[ \t][ \t]*([A-Z0-9][A-Z0-9_]*)[ \t][ \t]*([0-9][0-9]*)",
re.IGNORECASE)
tokens = {}
for line in lines: