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:
@@ -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\
|
||||
|
Reference in New Issue
Block a user