The original description has a lot of superfluous noise. The attached test cases are good indications of what happens. Basically we do not properly handle the case where a "line comment" delimiter occurs within a (VAR)CHAR literal. For example, from the test case:
we see the -
at the start of -NONE as the start of a line comment.