def _parse_comment_match(comment_match): comment_dict = comment_match.groupdict() end_pos = comment_match.end() return Element.Comment(comment_dict["comment"]), end_pos