Updates to track Grammar changes. The patch to token.py loosens the regexp to

allow "testlist1" to be snagged.
This commit is contained in:
Michael W. Hudson 2002-10-03 09:42:01 +00:00
parent d389036069
commit adf1606161
2 changed files with 3 additions and 1 deletions

View file

@ -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: