pgsql: Make pg_bsd_indent add a space between comma and period.

Started by Tom Lane2 months ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Make pg_bsd_indent add a space between comma and period.

Formatting of variadic functions and struct literals with named fields
used to be ugly due to pg_bsd_indent treating period as always being a
binary operator. After a comma, it's not that, so insert a space.

Bump pg_bsd_indent's version so that people who use out-of-tree
copies will know they need to update. (This also covers the other
pg_bsd_indent behavioral change introduced in a3e6beba6.)

Author: Andreas Karlsson <andreas@proxel.se>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: /messages/by-id/c3327be8-09e2-46a1-88b4-228a339d6916@proxel.se

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b518ba4affed8d3a47944d769d33b7814d88ddb2

Modified Files
--------------
src/tools/pg_bsd_indent/args.c | 2 +-
src/tools/pg_bsd_indent/indent.c | 2 ++
src/tools/pg_bsd_indent/tests/declarations.0.stdout | 2 +-
src/tools/pg_bsd_indent/tests/struct.0 | 2 ++
src/tools/pg_bsd_indent/tests/struct.0.stdout | 2 ++
src/tools/pgindent/pgindent | 2 +-
6 files changed, 9 insertions(+), 3 deletions(-)