Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d39bec

Browse files
committed
Small indenting fixes in jsonpath_scan.l
Some lines were indented by an inconsistent number of spaces. Whilewe're here, also fix some code that used the newline after leftparenthesis style, which is obsolete.
1 parent1e08905 commit5d39bec

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

‎src/backend/utils/adt/jsonpath_scan.l

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ hex_fail\\x{hexdigit}{0,1}
191191
<xnq,xq,xvq>\\.{addchar(false, yytext[1]); }
192192

193193
<xnq,xq,xvq>\\{
194-
jsonpath_yyerror(NULL, escontext,
195-
"unexpected end after backslash");
196-
yyterminate();
194+
jsonpath_yyerror(NULL, escontext,
195+
"unexpected end after backslash");
196+
yyterminate();
197197
}
198198

199199
<xq,xvq><<EOF>>{
200-
jsonpath_yyerror(NULL, escontext,
201-
"unterminated quoted string");
202-
yyterminate();
200+
jsonpath_yyerror(NULL, escontext,
201+
"unterminated quoted string");
202+
yyterminate();
203203
}
204204

205205
<xq>\"{
@@ -223,9 +223,8 @@ hex_fail\\x{hexdigit}{0,1}
223223
<xc>\*{ }
224224

225225
<xc><<EOF>>{
226-
jsonpath_yyerror(
227-
NULL, escontext,
228-
"unexpected end of comment");
226+
jsonpath_yyerror(NULL, escontext,
227+
"unexpected end of comment");
229228
yyterminate();
230229
}
231230
\&\&{return AND_P; }
@@ -314,27 +313,23 @@ hex_fail\\x{hexdigit}{0,1}
314313
}
315314

316315
{realfail}{
317-
jsonpath_yyerror(
318-
NULL, escontext,
319-
"invalid numeric literal");
316+
jsonpath_yyerror(NULL, escontext,
317+
"invalid numeric literal");
320318
yyterminate();
321319
}
322320
{decinteger_junk}{
323-
jsonpath_yyerror(
324-
NULL, escontext,
325-
"trailing junk after numeric literal");
321+
jsonpath_yyerror(NULL, escontext,
322+
"trailing junk after numeric literal");
326323
yyterminate();
327324
}
328325
{decimal_junk}{
329-
jsonpath_yyerror(
330-
NULL, escontext,
331-
"trailing junk after numeric literal");
326+
jsonpath_yyerror(NULL, escontext,
327+
"trailing junk after numeric literal");
332328
yyterminate();
333329
}
334330
{real_junk}{
335-
jsonpath_yyerror(
336-
NULL, escontext,
337-
"trailing junk after numeric literal");
331+
jsonpath_yyerror(NULL, escontext,
332+
"trailing junk after numeric literal");
338333
yyterminate();
339334
}
340335
\"{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp