Improve comment after 'else' handling of pgindent.
authorBruce Momjian <bruce@momjian.us>
Thu, 7 Oct 2004 02:32:06 +0000 (02:32 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 7 Oct 2004 02:32:06 +0000 (02:32 +0000)
src/tools/pgindent/pgindent

index 539dac2750161591622c83aeed451f9fba4f7669..eb0ce1590b59557ed6981f3bb019455f6800de8b 100755 (executable)
@@ -38,8 +38,8 @@ do
 # mark some comments for special treatment later
    sed 's;/\*  *---;/*---X_X;g' |
 # workaround for indent bug with 'else' handling
-   sed 's;\([}     ]\)else[    ]*\(/\*.*\)$;\1else\
-\2;g' | 
+   sed 's;\([}     ]\)else\([  ]*\)\(/\*.*\)$;\1else\
+\2\3;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.