Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
d447dbf3
Commit
d447dbf3
authored
Nov 05, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle tabs after closing brace in first column with less indenting.
parent
158129be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/tools/pgindent/pgindent
src/tools/pgindent/pgindent
+4
-4
No files found.
src/tools/pgindent/pgindent
View file @
d447dbf3
...
...
@@ -1454,12 +1454,15 @@ do
cat
/tmp/
$$
fi
cat
/tmp/
$$
a |
# remove tabs and retab with four spaces
detab
-t8
-qc
|
entab
-t4
-qc
|
sed
's;^/\*\(DATA(.*\)\*/$;\1;'
|
sed
's;^/\*\(CATALOG(.*\)\*/$;\1;'
|
sed
's;/\*---X_X;/* ---;g'
|
# workaround indent bug
sed
's;^static[ ][ ]*;static ;g'
|
sed
's;^}
[ ][ ]
*;} ;'
|
sed
's;^}
*;} ;'
|
# pull in #endif comments
sed
's;^#endif[ ][ ]*/\*;#endif /*;'
|
# work around #else indenting next line if #ifdef defines variables at top
...
...
@@ -1473,9 +1476,6 @@ do
}
else print $0;
}'
|
# remove tabs and retab with four spaces
detab
-t8
-qc
|
entab
-t4
-qc
|
# add space after comments that start on tab stops
sed
's;\([^ ]\)\(/\*.*\*/\)$;\1 \2;'
|
# move trailing * in function return type
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment