pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Partial pgindent of .l and .y files
Date: Wed, 25 Dec 2024 17:00:34 +0000
Message-ID: <E1tQUkL-001IgO-M8@gemulon.postgresql.org> (raw)

Partial pgindent of .l and .y files

Trying to clean up the code a bit while we're working on these files
for the reentrant scanner/pure parser patches.  This cleanup only
touches the code sections after the second '%%' in each file, via a
manually-supervised and locally hacked up pgindent.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/301de6a6f609cb3ad2d9d31fd8db9ae6c71e6dea

Modified Files
--------------
contrib/cube/cubeparse.y                  |   6 +-
contrib/cube/cubescan.l                   |   7 +-
contrib/seg/segscan.l                     |   9 +--
src/backend/bootstrap/bootscanner.l       |   7 +-
src/backend/parser/gram.y                 |  85 ++++++++++++------------
src/backend/parser/scan.l                 |   4 +-
src/backend/replication/repl_scanner.l    |   4 +-
src/backend/replication/syncrep_scanner.l |   3 +-
src/backend/utils/adt/jsonpath_gram.y     |  14 ++--
src/backend/utils/adt/jsonpath_scan.l     | 103 ++++++++++++++++--------------
src/backend/utils/misc/guc-file.l         |  14 ++--
src/bin/pgbench/exprparse.y               |  17 +++--
src/bin/psql/psqlscanslash.l              |   7 +-
src/fe_utils/psqlscan.l                   |   6 +-
src/interfaces/ecpg/preproc/pgc.l         |   6 +-
src/pl/plpgsql/src/pl_gram.y              | 103 +++++++++++++++---------------
16 files changed, 207 insertions(+), 188 deletions(-)



Message-ID: <E1tQUkL-001IgO-M8@gemulon.postgresql.org>
Permalink:  ../E1tQUkL-001IgO-M8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tQUkL-001IgO-M8@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Partial pgindent of .l and .y files
  In-Reply-To: <E1tQUkL-001IgO-M8@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox