diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-11-29 11:33:21 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-11-29 11:33:21 +0100 |
commit | 5d39becf8ba0080c98fee4b63575552f6800b012 (patch) | |
tree | 53139bdb4ed08b315e177392045d070f79dc083e | |
parent | 1e08905842fbfa9301374f10571116bc5f0f7b8a (diff) | |
download | postgresql-5d39becf8ba0080c98fee4b63575552f6800b012.tar.gz postgresql-5d39becf8ba0080c98fee4b63575552f6800b012.zip |
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.
-rw-r--r-- | src/backend/utils/adt/jsonpath_scan.l | 37 |
1 files 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} <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(); } \" { |