fix 'line comment at last line' parsing error

If input ends with a line comment without new line,
parsing fails.