aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/utils/adt/jsonpath_scan.l37
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();
}
\" {