1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00

Add // -> /* */ mapping to pgindent.

This commit is contained in:
Bruce Momjian
2001-02-12 18:30:53 +00:00
parent 97aa5fcd5e
commit 281b7d84fc
3 changed files with 13 additions and 10 deletions

View File

@@ -25,6 +25,9 @@ fi
for FILE
do
cat $FILE |
# convert // comments to /* */
sed 's;^\([ ]*\)//\(.*\)$;\1/* \2 */;g' |
# mark some comments for special treatment later
sed 's;/\* *---;/*---X_X;g' |
# workaround for indent bug with 'else' handling
sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\