def parse_to( buffer, keyword ):
    """Continues through the buffer until a line with a
    first token that matches the specified keyword.
    """
    while True:
        line = buffer.next()

        if line == '':
            return None

        values = line.split( None )
        if values[ 0 ] == keyword:
            return line