Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit505b925

Browse files
committed
Fix #elif spacing too.
1 parentfaea3db commit505b925

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/tools/pgindent/pgindent

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,14 +1648,15 @@ do
16481648
print line1;
16491649
}
16501650
}'|
1651-
# remove blank line before #else and #endif
1651+
# remove blank line before #else, #elif, and #endif
16521652
awk'BEGIN{line1 = ""; line2 = ""; skips = 0}
16531653
{
16541654
line2 = $0;
16551655
if (skips > 0)
16561656
skips--;
16571657
if (line1 ~ /^$/ &&
16581658
(line2 ~ /^#else/ ||
1659+
line2 ~ /^#elif/ ||
16591660
line2 ~ /^#endif/))
16601661
{
16611662
print line2;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp