Fix publication syntax error message

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: c39f2f68e95a54e430c6a7b7d1e9f98cedff5aff
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2023-05-10T16:26:10Z
Releases: 16.0
Fix publication syntax error message

There was some odd wording in corner-case gram.y error messages "some
error ... at or near", which appears to have been modeled after "syntax
error" messages.  However, they don't work that way, and they're just
wrong.  They're also uncovered by tests.  Remove the trailing words,
and also add tests.

They were introduced with 5a2832465fd8; backpatch to 15.

Author: Álvaro Herrera <alvherre@alvh.no-ip.org>

Files