Cosmetic changes for jsonpath_gram.y and jsonpath_scan.l
authorAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2019 12:42:51 +0000 (15:42 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Mon, 25 Mar 2019 12:42:51 +0000 (15:42 +0300)
commit8b17298f0b6bb2a64b55fab0339c8fd6ec2d74fb
treed7a9010c6756ab00a3e2fa72063d5d61a10dde94
parentd303122eab616ccbcfb0bab0fc674bf625d17a7b
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
src/backend/utils/adt/jsonpath_gram.y
src/backend/utils/adt/jsonpath_scan.l