'Enumerated list item.'

def enumerator(self, match, context, next_state):

    (format, sequence, text, ordinal) = self.parse_enumerator(match, self.parent['enumtype'])
    if ((format != self.format) or ((sequence != '#') and ((sequence != self.parent['enumtype']) or self.auto or (ordinal != (self.lastordinal + 1)))) or (not self.is_enumerated_list_item(ordinal, sequence, format))):
        self.invalid_input()
    if (sequence == '#'):
        self.auto = 1
    (listitem, blank_finish) = self.list_item(match.end())
    self.parent += listitem
    self.blank_finish = blank_finish
    self.lastordinal = ordinal
    return ([], next_state, [])
