Commit 86c1b13b authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(lexer.__bad_type): Allow types that ends in a number, such as

	"Membership-10".
parent 37095936
......@@ -1131,9 +1131,15 @@ class lexer:
if ok and not isupper(tp[0]):
ok = 0
upper = 0
num_seen = 0
for c in tp[1:]:
if upper:
if c == '-' or not isupper(c):
if num_seen:
if not isdigit(c):
ok = 0
elif upper:
if isdigit(c):
num_seen = 1
elif c == '-' or not isupper(c):
ok = 0
upper = 0
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment