Re: [HACKERS] Running pgindent
Bruce Momjian <maillist@candle.pha.pa.us>
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: lockhart@alumni.caltech.edu (Thomas G. Lockhart)
Cc: hackers@postgreSQL.org
Date: 1998-02-22T02:04:49Z
Lists: pgsql-hackers
If I ever get to run pgindent. I will make these changes, Tom. > Well, *&^*^#$! I wasted hours cleaning up some of what I considered damage from > the last pass through. > Would it be possible to pass back through (i.e. pipe indent output to a filter) > and fix at least points (1) and (2)? _That_ would be pretty easy to automate > since the heuristics can be pretty simple: > > if (first char is nonwhitespace) && (next word is "*") && (next line starts with > word+paren) > then compress whitespace > > else if (first char is "}") && (next word is "/*") > then compress whitespace > > else > write line as-is > > I'll write the perl if you would be willing to use it? > > - Tom > > -- Bruce Momjian maillist@candle.pha.pa.us