def parseEnum(name, src):
    keyValuePtrn = (('(' + IDENT_PTRN) + ')\\s*=\\s*([^\\s,}]+)\\s*[,}]')
    matches = re.findall(keyValuePtrn, src)
    return Enum(name, fixupEnumValues(matches))
def parseEnum(name, src):
    keyValuePtrn = (('(' + IDENT_PTRN) + ')\\s*=\\s*([^\\s,}]+)\\s*[,}]')
    matches = re.findall(keyValuePtrn, src)
    return Enum(name, fixupEnumValues(matches))