git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0683a47)
Improve comment after 'else' handling of pgindent.
Thu, 7 Oct 2004 02:32:06 +0000 (02:32 +0000)
Thu, 7 Oct 2004 02:32:06 +0000 (02:32 +0000)

diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent
index 539dac2750161591622c83aeed451f9fba4f7669..eb0ce1590b59557ed6981f3bb019455f6800de8b 100755 (executable)
--- a/src/tools/pgindent/pgindent
+++ b/src/tools/pgindent/pgindent
@@ -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[ ]*\(/\*.*\)$;1円else\
-2円;g' |
+ sed 's;\([} ]\)else\([ ]*\)\(/\*.*\)$;1円else\
+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.
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /