def get_token(self, text, start=<NUM_LIT:0>):
best_class = best_match = None<EOL>for token_class, match in self.matching_tokens(text):<EOL><INDENT>if best_match and best_match.end() >= match.end():<EOL><INDENT>continue<EOL><DEDENT>best_match = match<EOL>best_class = token_class<EOL><DEDENT>return best_class, best_match<EOL>
Retrieve the next token from some text.

        Args:
            text (str): the text from which tokens should be extracted

        Returns:
            (token_kind, token_text): the token kind and its content.