Skip to content

Commit 0af302a

Browse files
committed
Fix some stray whitespace in parser files
1 parent 4e3ffd5 commit 0af302a

File tree

4 files changed

+31
-31
lines changed

4 files changed

+31
-31
lines changed

src/backend/bootstrap/bootscanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ _null_ { return NULLVAL; }
8888
[\n] { yyline++; }
8989
[\r\t ] ;
9090

91-
^\#[^\n]* ; /* drop everything after "#" for comments */
91+
^\#[^\n]* ; /* drop everything after "#" for comments */
9292

9393
declare { yylval.kw = "declare"; return XDECLARE; }
9494
build { yylval.kw = "build"; return XBUILD; }

src/backend/parser/gram.y

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,7 +1483,7 @@ generic_set:
14831483
;
14841484

14851485
set_rest_more: /* Generic SET syntaxes: */
1486-
generic_set {$$ = $1;}
1486+
generic_set {$$ = $1;}
14871487
| var_name FROM CURRENT_P
14881488
{
14891489
VariableSetStmt *n = makeNode(VariableSetStmt);
@@ -4996,8 +4996,8 @@ ImportForeignSchemaStmt:
49964996
;
49974997

49984998
import_qualification_type:
4999-
LIMIT TO { $$ = FDW_IMPORT_SCHEMA_LIMIT_TO; }
5000-
| EXCEPT { $$ = FDW_IMPORT_SCHEMA_EXCEPT; }
4999+
LIMIT TO { $$ = FDW_IMPORT_SCHEMA_LIMIT_TO; }
5000+
| EXCEPT { $$ = FDW_IMPORT_SCHEMA_EXCEPT; }
50015001
;
50025002

50035003
import_qualification:
@@ -10538,8 +10538,8 @@ vac_analyze_option_name:
1053810538

1053910539
vac_analyze_option_arg:
1054010540
opt_boolean_or_string { $$ = (Node *) makeString($1); }
10541-
| NumericOnly { $$ = (Node *) $1; }
10542-
| /* EMPTY */ { $$ = NULL; }
10541+
| NumericOnly { $$ = (Node *) $1; }
10542+
| /* EMPTY */ { $$ = NULL; }
1054310543
;
1054410544

1054510545
opt_analyze:
@@ -11773,10 +11773,10 @@ for_locking_item:
1177311773
;
1177411774

1177511775
for_locking_strength:
11776-
FOR UPDATE { $$ = LCS_FORUPDATE; }
11777-
| FOR NO KEY UPDATE { $$ = LCS_FORNOKEYUPDATE; }
11778-
| FOR SHARE { $$ = LCS_FORSHARE; }
11779-
| FOR KEY SHARE { $$ = LCS_FORKEYSHARE; }
11776+
FOR UPDATE { $$ = LCS_FORUPDATE; }
11777+
| FOR NO KEY UPDATE { $$ = LCS_FORNOKEYUPDATE; }
11778+
| FOR SHARE { $$ = LCS_FORSHARE; }
11779+
| FOR KEY SHARE { $$ = LCS_FORKEYSHARE; }
1178011780
;
1178111781

1178211782
locked_rels_list:

src/backend/utils/adt/jsonpath_gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ scalar_value:
153153
| FALSE_P { $$ = makeItemBool(false); }
154154
| NUMERIC_P { $$ = makeItemNumeric(&$1); }
155155
| INT_P { $$ = makeItemNumeric(&$1); }
156-
| VARIABLE_P { $$ = makeItemVariable(&$1); }
156+
| VARIABLE_P { $$ = makeItemVariable(&$1); }
157157
;
158158

159159
comp_op:
@@ -175,12 +175,12 @@ predicate:
175175
| expr comp_op expr { $$ = makeItemBinary($2, $1, $3); }
176176
| predicate AND_P predicate { $$ = makeItemBinary(jpiAnd, $1, $3); }
177177
| predicate OR_P predicate { $$ = makeItemBinary(jpiOr, $1, $3); }
178-
| NOT_P delimited_predicate { $$ = makeItemUnary(jpiNot, $2); }
178+
| NOT_P delimited_predicate { $$ = makeItemUnary(jpiNot, $2); }
179179
| '(' predicate ')' IS_P UNKNOWN_P
180180
{ $$ = makeItemUnary(jpiIsUnknown, $2); }
181181
| expr STARTS_P WITH_P starts_with_initial
182182
{ $$ = makeItemBinary(jpiStartsWith, $1, $4); }
183-
| expr LIKE_REGEX_P STRING_P { $$ = makeItemLikeRegex($1, &$3, NULL); }
183+
| expr LIKE_REGEX_P STRING_P { $$ = makeItemLikeRegex($1, &$3, NULL); }
184184
| expr LIKE_REGEX_P STRING_P FLAG_P STRING_P
185185
{ $$ = makeItemLikeRegex($1, &$3, &$5); }
186186
;

src/interfaces/ecpg/preproc/ecpg.trailer

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectSt
3636

3737
$$ = cat_str(7, mm_strdup("create"), $2, mm_strdup("table"), $4, mm_strdup("as"), $7, $8);
3838
}
39-
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
39+
| CREATE OptTemp TABLE IF_P NOT EXISTS create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
4040
{
4141
if (FoundInto == 1)
4242
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
@@ -1821,27 +1821,27 @@ c_anything: ecpg_ident { $$ = $1; }
18211821
| ':' { $$ = mm_strdup(":"); }
18221822
;
18231823

1824-
DeallocateStmt: DEALLOCATE prepared_name { $$ = $2; }
1825-
| DEALLOCATE PREPARE prepared_name { $$ = $3; }
1826-
| DEALLOCATE ALL { $$ = mm_strdup("all"); }
1827-
| DEALLOCATE PREPARE ALL { $$ = mm_strdup("all"); }
1828-
;
1829-
1830-
Iresult: Iconst { $$ = $1; }
1831-
| '(' Iresult ')' { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
1832-
| Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
1833-
| Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
1834-
| Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
1835-
| Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
1836-
| Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
1837-
| ecpg_sconst { $$ = $1; }
1838-
| ColId { $$ = $1; }
1839-
| ColId '(' var_type ')' { if (pg_strcasecmp($1, "sizeof") != 0)
1824+
DeallocateStmt: DEALLOCATE prepared_name { $$ = $2; }
1825+
| DEALLOCATE PREPARE prepared_name { $$ = $3; }
1826+
| DEALLOCATE ALL { $$ = mm_strdup("all"); }
1827+
| DEALLOCATE PREPARE ALL { $$ = mm_strdup("all"); }
1828+
;
1829+
1830+
Iresult: Iconst { $$ = $1; }
1831+
| '(' Iresult ')' { $$ = cat_str(3, mm_strdup("("), $2, mm_strdup(")")); }
1832+
| Iresult '+' Iresult { $$ = cat_str(3, $1, mm_strdup("+"), $3); }
1833+
| Iresult '-' Iresult { $$ = cat_str(3, $1, mm_strdup("-"), $3); }
1834+
| Iresult '*' Iresult { $$ = cat_str(3, $1, mm_strdup("*"), $3); }
1835+
| Iresult '/' Iresult { $$ = cat_str(3, $1, mm_strdup("/"), $3); }
1836+
| Iresult '%' Iresult { $$ = cat_str(3, $1, mm_strdup("%"), $3); }
1837+
| ecpg_sconst { $$ = $1; }
1838+
| ColId { $$ = $1; }
1839+
| ColId '(' var_type ')' { if (pg_strcasecmp($1, "sizeof") != 0)
18401840
mmerror(PARSE_ERROR, ET_ERROR, "operator not allowed in variable definition");
18411841
else
18421842
$$ = cat_str(4, $1, mm_strdup("("), $3.type_str, mm_strdup(")"));
18431843
}
1844-
;
1844+
;
18451845

18461846
execute_rest: /* EMPTY */ { $$ = EMPTY; }
18471847
| ecpg_using opt_ecpg_into { $$ = EMPTY; }

0 commit comments

Comments
 (0)