Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8ee7c19

Browse files
committed
Require closing paren on line above brace to identify function
difinition, just for formatting workaround, per Tom's discovery.
1 parent 3d5ddc0 commit 8ee7c19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/pgindent/pgindent

+3-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ do
5151
line1 !~ "^struct" &&
5252
line1 !~ "^enum" &&
5353
line1 !~ "^typedef" &&
54-
line1 !~ "\"C\"" &&
55-
line1 !~ "=" )
54+
line1 !~ "extern[ ][ ]*\"C\"" &&
55+
line1 !~ "=" &&
56+
line1 ~ ")")
5657
print "int pgindent_func_no_var_fix;";
5758
line1 = line2;
5859
}

0 commit comments

Comments
 (0)