Skip to content

Commit d6fda1b

Browse files
committed
Better guard token used by pgindent.
1 parent 5f0bf6c commit d6fda1b

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 before PGMV 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-
\2 PGMV\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)
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