Re: [HACKERS] Running pgindent
| От | Bruce Momjian |
|---|---|
| Тема | Re: [HACKERS] Running pgindent |
| Дата | |
| Msg-id | 199802220204.VAA03955@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Running pgindent ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>) |
| Список | 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 по дате отправления: