From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | lockhart(at)alumni(dot)caltech(dot)edu (Thomas G(dot) Lockhart) |
Cc: | hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Running pgindent |
Date: | 1998-02-22 02:04:49 |
Message-ID: | 199802220204.VAA03955@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
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(at)candle(dot)pha(dot)pa(dot)us
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-02-22 02:17:32 | Open 6.3 issues |
Previous Message | Oliver Giller | 1998-02-22 00:10:00 | subscribe |