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

Commit0af302a

Browse files
committed
Fix some stray whitespace in parser files
1 parent4e3ffd5 commit0af302a

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_nameFROMCURRENT_P
14881488
{
14891489
VariableSetStmt *n = makeNode(VariableSetStmt);
@@ -4996,8 +4996,8 @@ ImportForeignSchemaStmt:
49964996
;
49974997

49984998
import_qualification_type:
4999-
LIMITTO{$$ = FDW_IMPORT_SCHEMA_LIMIT_TO; }
5000-
|EXCEPT{$$ = FDW_IMPORT_SCHEMA_EXCEPT; }
4999+
LIMITTO{$$ = 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-
FORUPDATE{$$ = LCS_FORUPDATE; }
11777-
|FORNOKEYUPDATE{$$ = LCS_FORNOKEYUPDATE; }
11778-
|FORSHARE{$$ = LCS_FORSHARE; }
11779-
|FORKEYSHARE{$$ = LCS_FORKEYSHARE; }
11776+
FORUPDATE{$$ = LCS_FORUPDATE; }
11777+
|FORNOKEYUPDATE{$$ = LCS_FORNOKEYUPDATE; }
11778+
|FORSHARE{$$ = LCS_FORSHARE; }
11779+
|FORKEYSHARE{$$ = 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
|exprcomp_opexpr{$$ = makeItemBinary($2,$1,$3); }
176176
|predicateAND_Ppredicate{$$ = makeItemBinary(jpiAnd,$1,$3); }
177177
|predicateOR_Ppredicate{$$ = makeItemBinary(jpiOr,$1,$3); }
178-
|NOT_Pdelimited_predicate{$$ = makeItemUnary(jpiNot,$2); }
178+
|NOT_Pdelimited_predicate{$$ = makeItemUnary(jpiNot,$2); }
179179
|'('predicate')'IS_PUNKNOWN_P
180180
{$$ = makeItemUnary(jpiIsUnknown,$2); }
181181
|exprSTARTS_PWITH_Pstarts_with_initial
182182
{$$ = makeItemBinary(jpiStartsWith,$1,$4); }
183-
|exprLIKE_REGEX_PSTRING_P{$$ = makeItemLikeRegex($1, &$3,NULL); }
183+
|exprLIKE_REGEX_PSTRING_P{$$ = makeItemLikeRegex($1, &$3,NULL); }
184184
|exprLIKE_REGEX_PSTRING_PFLAG_PSTRING_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)

[8]ページ先頭

©2009-2025 Movatter.jp