summaryrefslogtreecommitdiffstats
path: root/Lib/token.py
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-10-03 09:42:01 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-10-03 09:42:01 (GMT)
commitadf160616184c94ded19e99ccf5337a20d73d907 (patch)
tree68a658c218378f6405b160a1277f60dad07edd88 /Lib/token.py
parentd3890360694d4ec5f77350610b117a327b4e5209 (diff)
downloadcpython-adf160616184c94ded19e99ccf5337a20d73d907.zip
cpython-adf160616184c94ded19e99ccf5337a20d73d907.tar.gz
cpython-adf160616184c94ded19e99ccf5337a20d73d907.tar.bz2
Updates to track Grammar changes. The patch to token.py loosens the regexp to
allow "testlist1" to be snagged.
Diffstat (limited to 'Lib/token.py')
-rwxr-xr-xLib/token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/token.py b/Lib/token.py
index c77d343..f75412c 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: