autotest: parse enums of the form FOO = BAR(x)
This commit is contained in:
parent
ec1edea1da
commit
fb5a92ee53
@ -72,6 +72,11 @@ class EnumDocco(object):
|
||||
# Match: " FRED = 17, // optional comment"
|
||||
m = re.match("\s*([A-Z0-9_a-z]+) *= *(\w+) *,?(?: *// *(.*) *)?$",
|
||||
line)
|
||||
if m is not None:
|
||||
return (None, None, None)
|
||||
# Match: " FRED = FOO(17), // optional comment"
|
||||
m = re.match("\s*([A-Z0-9_a-z]+) *= *(\w+) *\\( *(\w+) *\\) *,?(?: *// *(.*) *)?$",
|
||||
line)
|
||||
if m is not None:
|
||||
return (None, None, None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user