Tolerate the lack of a newline if the last line is a comment