summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian2001-10-25 18:25:23 +0000
committerBruce Momjian2001-10-25 18:25:23 +0000
commitcae059ba5eadc305d407146984f1f6c22d140afe (patch)
tree3dfb52301520b6b887f2bce4f1ad8f4fce93b779 /src
parentb6b028c7b7431f957878532f1032cb2cc29ee290 (diff)
Add spacing for single-line comments with trailing semicolon _and_
comma, per Tom.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tools/pgindent/pgindent2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent
index 9938f92241e..4f58d28bf3f 100755
--- a/src/tools/pgindent/pgindent
+++ b/src/tools/pgindent/pgindent
@@ -1292,7 +1292,7 @@ int pgindent_func_no_var_fix;\
# pull in #endif comments
sed 's;^#endif[ ][ ]*/\*;#endif /*;' |
# add space after comments that start on tab stops
- sed 's,;\(/\*.*\*/\)$,; \1,' |
+ sed 's:\([;,]\)/\*.*\*/\)$:\1 \2:' |
# work around #else indenting next line if #ifdef defines variables at top
# work around misindenting of function with no variables defined
awk '