We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5251e7b commit 158129bCopy full SHA for 158129b
src/tools/pgindent/pgindent
@@ -51,7 +51,7 @@ do
51
line1 !~ "^struct" &&
52
line1 !~ "^enum" &&
53
line1 !~ "^typedef" &&
54
- line1 !~ "extern[ ][ ]*\"C\"" &&
+ line1 !~ "^extern[ ][ ]*\"C\"" &&
55
line1 !~ "=" &&
56
line1 ~ ")")
57
print "int pgindent_func_no_var_fix;";
@@ -1477,7 +1477,7 @@ do
1477
detab -t8 -qc |
1478
entab -t4 -qc |
1479
# add space after comments that start on tab stops
1480
- sed 's:\([^ ]\)\(/\*.*\*/\)$:\1 \2:' |
+ sed 's;\([^ ]\)\(/\*.*\*/\)$;\1 \2;' |
1481
# move trailing * in function return type
1482
sed 's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;' |
1483
# remove un-needed braces around single statements
0 commit comments