Handle partial comment endings as normal content

If a comment ending is interrupted by an unexpected character, treat the
parsed characters as comment content and revert to the "in comment"
state.