From 5d39becf8ba0080c98fee4b63575552f6800b012 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 29 Nov 2024 11:33:21 +0100 Subject: [PATCH] Small indenting fixes in jsonpath_scan.l Some lines were indented by an inconsistent number of spaces. While we're here, also fix some code that used the newline after left parenthesis style, which is obsolete. --- src/backend/utils/adt/jsonpath_scan.l | 37 ++++++++++++--------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/src/backend/utils/adt/jsonpath_scan.l b/src/backend/utils/adt/jsonpath_scan.l index 8efad5ac106..f5a85de36f5 100644 --- a/src/backend/utils/adt/jsonpath_scan.l +++ b/src/backend/utils/adt/jsonpath_scan.l @@ -191,15 +191,15 @@ hex_fail \\x{hexdigit}{0,1} \\. { addchar(false, yytext[1]); } \\ { - jsonpath_yyerror(NULL, escontext, - "unexpected end after backslash"); - yyterminate(); + jsonpath_yyerror(NULL, escontext, + "unexpected end after backslash"); + yyterminate(); } <> { - jsonpath_yyerror(NULL, escontext, - "unterminated quoted string"); - yyterminate(); + jsonpath_yyerror(NULL, escontext, + "unterminated quoted string"); + yyterminate(); } \" { @@ -223,9 +223,8 @@ hex_fail \\x{hexdigit}{0,1} \* { } <> { - jsonpath_yyerror( - NULL, escontext, - "unexpected end of comment"); + jsonpath_yyerror(NULL, escontext, + "unexpected end of comment"); yyterminate(); } \&\& { return AND_P; } @@ -314,27 +313,23 @@ hex_fail \\x{hexdigit}{0,1} } {realfail} { - jsonpath_yyerror( - NULL, escontext, - "invalid numeric literal"); + jsonpath_yyerror(NULL, escontext, + "invalid numeric literal"); yyterminate(); } {decinteger_junk} { - jsonpath_yyerror( - NULL, escontext, - "trailing junk after numeric literal"); + jsonpath_yyerror(NULL, escontext, + "trailing junk after numeric literal"); yyterminate(); } {decimal_junk} { - jsonpath_yyerror( - NULL, escontext, - "trailing junk after numeric literal"); + jsonpath_yyerror(NULL, escontext, + "trailing junk after numeric literal"); yyterminate(); } {real_junk} { - jsonpath_yyerror( - NULL, escontext, - "trailing junk after numeric literal"); + jsonpath_yyerror(NULL, escontext, + "trailing junk after numeric literal"); yyterminate(); } \" {