now treats eof as a newline for comments