diff options
| author | Bruce Momjian | 2004-10-07 14:15:50 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2004-10-07 14:15:50 +0000 |
| commit | cdc84adbdb2449f954d15494745bd517d876e71a (patch) | |
| tree | a0670fa84c59e0a22c5827f7836184fb59c2ac95 /src/tools | |
| parent | 914ff1ea3cb03841069e69eea3aacfca59061b60 (diff) | |
Indent comment pushed to new line by else so it is indented by BSD
indent.
Diffstat (limited to 'src/tools')
| -rwxr-xr-x | src/tools/pgindent/pgindent | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index e85a6723b72..3e69bd16969 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -38,10 +38,9 @@ do # mark some comments for special treatment later sed 's;/\* *---;/*---X_X;g' | # workaround for indent bug with 'else' handling - sed 's;\([ ]*\)else[ ]*\(/\*.*\)$;\1else\ -\1\2;g' | - sed 's;\([ ]*\)\(}[ ]\)else[ ]*\(/\*.*\)$;\1\2else\ -\1\3;g' | +# indent comment so BSD indent will move it + sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\ + \2;g' | detab -t4 -qc | # work around bug where function that defines no local variables misindents # switch() case lines and line after #else. Do not do for struct/enum. |
