Your parser terminates on dash-dash-> whether it terminates the comment or not -->

Your parser thinks the first pair of -'s can terminate a comment.

If your parser is working correctly, This sentence is the first one that that appears in this section.

Your parser does ignore whitespace between the -- and > as it should.

Your parser does ignore newline between the -- and > as it should.