Peter Eisentraut <peter_e@gmx.net> writes:
> The bug here is that the scanner doesn't know that a newline (or end of
> input) is a required as part of a -- comment.
I think the minimum-damage place to fix this is by requiring \n after
{comment} in the horiz_whitespace rule. As is, it's possible for
xqcat to match to a second quote that is in the body of a -- comment.
regards, tom lane