added EOL check to peek_next_token()