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

Commitd6fda1b

Browse files
committed
Better guard token used by pgindent.
1 parent5f0bf6c commitd6fda1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/tools/pgindent/pgindent

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.95 2007/11/16 01:11:04 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/pgindent/pgindent,v 1.96 2007/11/16 01:25:15 momjian Exp $
44

55
# Known bugs:
66
#
@@ -46,10 +46,10 @@ do
4646
# 'else' followed by a single-line comment, followed by
4747
# a brace on the next line confuses BSD indent, so we push
4848
# the comment down to the next line, then later pull it
49-
# back up again. Add space beforePGMV or indent will add
49+
# back up again. Add space before_PGMV or indent will add
5050
# it for us.
5151
sed's;\([} ]\)else[ ]*\(/\*\)\(.*\*/\)[ ]*$;\1else\
52-
\2PGMV\3;g'|
52+
\2_PGMV\3;g'|
5353

5454
# Indent multi-line after-'else' comment so BSD indent will move it properly.
5555
# We already moved down single-line comments above. Check for '*' to make
@@ -2244,10 +2244,10 @@ do
22442244
{
22452245
if (NR != 1)
22462246
{
2247-
if ($0 ~ "/\*PGMV")
2247+
if ($0 ~ "/\*_PGMV")
22482248
{
22492249
# remove tag
2250-
sub("PGMV", "", $0);
2250+
sub("_PGMV", "", $0);
22512251
# remove leading whitespace
22522252
sub("^[ ]*", "", $0);
22532253
# add comment with single tab prefix

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp