

def lex_document(self, cli, document):
    lines = list(split_lines(self._get_tokens(self, document.text)))

    def get_line(lineno):
        try:
            return lines[lineno]
        except IndexError:
            return []
    return get_line

dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/contrib/regular_languages/lexer.py GrammarLexer.lex_document/VarMisuse@24/30 `cli`->`self`