From cae059ba5eadc305d407146984f1f6c22d140afe Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 25 Oct 2001 18:25:23 +0000 Subject: Add spacing for single-line comments with trailing semicolon _and_ comma, per Tom. --- src/tools/pgindent/pgindent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ' -- cgit v1.2.3