File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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#
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
You can’t perform that action at this time.
0 commit comments