Small indenting fixes in jsonpath_scan.l
authorPeter Eisentraut <[email protected]>
Fri, 29 Nov 2024 10:33:21 +0000 (11:33 +0100)
committerPeter Eisentraut <[email protected]>
Fri, 29 Nov 2024 10:33:21 +0000 (11:33 +0100)
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

index 8efad5ac1066cada1fb205b8a7eccd62b33c672c..f5a85de36f5b15ffa8cdc81171c00699d3ef1e5e 100644 (file)
@@ -191,15 +191,15 @@ hex_fail  \\x{hexdigit}{0,1}
 <xnq,xq,xvq>\\.                { addchar(false, yytext[1]); }
 
 <xnq,xq,xvq>\\             {
-                             jsonpath_yyerror(NULL, escontext,
-                                              "unexpected end after backslash");
-                             yyterminate();
+                               jsonpath_yyerror(NULL, escontext,
+                                                "unexpected end after backslash");
+                               yyterminate();
                            }
 
 <xq,xvq><<EOF>>                {
-                             jsonpath_yyerror(NULL, escontext,
-                                              "unterminated quoted string");
-                             yyterminate();
+                               jsonpath_yyerror(NULL, escontext,
+                                                "unterminated quoted string");
+                               yyterminate();
                            }
 
 <xq>\"                         {
@@ -223,9 +223,8 @@ hex_fail    \\x{hexdigit}{0,1}
 <xc>\*                         { }
 
 <xc><<EOF>>                        {
-                                   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();
                                }
 \"                             {