Re: [HACKERS] Running pgindent - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] Running pgindent
Date
Msg-id 199802220204.VAA03955@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Running pgindent  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List 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

pgsql-hackers by date:

Previous
From: Oliver Giller
Date:
Subject: subscribe
Next
From: Bruce Momjian
Date:
Subject: Open 6.3 issues