1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Add spacing for single-line comments with trailing semicolon _and_

comma, per Tom.
This commit is contained in:
Bruce Momjian
2001-10-25 18:25:23 +00:00
parent b6b028c7b7
commit cae059ba5e
2 changed files with 46 additions and 29 deletions

View File

@ -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 '