Skip to content

Commit 4e28b08

Browse files
committed
Improve comment after 'else' handling of pgindent.
1 parent 0683a47 commit 4e28b08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/pgindent/pgindent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ do
3838
# mark some comments for special treatment later
3939
sed 's;/\* *---;/*---X_X;g' |
4040
# workaround for indent bug with 'else' handling
41-
sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\
42-
\2;g' |
41+
sed 's;\([} ]\)else\([ ]*\)\(/\*.*\)$;\1else\
42+
\2\3;g' |
4343
detab -t4 -qc |
4444
# work around bug where function that defines no local variables misindents
4545
# switch() case lines and line after #else. Do not do for struct/enum.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy