Made line comments work with delim_whitespace and custom line terminator

This extends the functionality in #7582 to whitespace-delimited and custom line terminated parsing in the C reader (fixes #8115).