parameters: (self, cli, document)
docstring: Takes a :class:`~prompt_toolkit.document.Document` and returns a
          callable that takes a line number and returns the tokens for that line.
docstring_summary: Takes a :class:`~prompt_toolkit.document.Document` and returns a
          callable that takes a line number and returns the tokens for that line.
docstring_tokens: Takes a : class : ~prompt_toolkit . document . Document and returns a callable that takes a line number and returns the tokens for that line .
function: def lex_document(self, cli, document):
          """
          Takes a :class:`~prompt_toolkit.document.Document` and returns a
          callable that takes a line number and returns the tokens for that line.
          """
function_tokens: def lex_document ( self , cli , document ) :