From adf160616184c94ded19e99ccf5337a20d73d907 Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Thu, 3 Oct 2002 09:42:01 +0000 Subject: Updates to track Grammar changes. The patch to token.py loosens the regexp to allow "testlist1" to be snagged. --- Lib/token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/token.py') 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: -- cgit v1.2.1