Re: pgindent complaint of the day

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgindent complaint of the day
Дата
Msg-id 23446.1097119161@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgindent complaint of the day  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pgindent complaint of the day  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> If it were "the else's indent plus one more tab" it would be reasonably
>> sane; it'd match the indentation of what comes next.

> OK, I can do that but consider:
> [ other case ]

Just out of curiosity, what will pgindent do when re-run on the file
with the comment already split to the next line?  My experience with
it so far is that it will not move a comment that starts in column 1,
but it will feel free to re-indent a comment that has some indentation.
A reasonable goal here would be that running pgindent a second time does
not create immediate further changes.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgindent complaint of the day
Следующее
От: Gavin Sherry
Дата:
Сообщение: Re: initdb crash