pgsql: Cosmetic changes for jsonpath_gram.y and jsonpath_scan.l

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Cosmetic changes for jsonpath_gram.y and jsonpath_scan.l
Date: 2019-03-25 12:44:08
Message-ID: E1h8OxU-00066c-Jb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Cosmetic changes for jsonpath_gram.y and jsonpath_scan.l

This commit include formatting improvements, renamings and comments. Also,
it makes jsonpath_scan.l be more uniform with other our lexers. Firstly,
states names are renamed to more short alternatives. Secondly, <INITIAL>
prefix removed from the rules. Corresponding rules are moved to the tail, so
they would anyway work only in initial state.

Author: Alexander Korotkov
Reviewed-by: John Naylor

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8b17298f0b6bb2a64b55fab0339c8fd6ec2d74fb

Modified Files
--------------
src/backend/utils/adt/jsonpath_gram.y | 80 +++++---
src/backend/utils/adt/jsonpath_scan.l | 332 ++++++++++++++++++----------------
2 files changed, 223 insertions(+), 189 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2019-03-25 12:55:45 Re: pgsql: Get rid of backtracking in jsonpath_scan.l
Previous Message Heikki Linnakangas 2019-03-25 09:40:00 pgsql: Clean up the Simple-8b encoder code.