Re: pgindent and tabs in comments

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgindent and tabs in comments
Date: 2010-04-20 16:55:18
Message-ID: 1271782518.30147.0.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On mån, 2010-04-19 at 21:25 -0400, Bruce Momjian wrote:
> > > Oh, that is an interesting example. What the code does is if there are
> > > several spaces and the next word is on a tab stop, the spaces are
> > > convered to tabs, except if we are in a string. This conversion is done
> > > by 'entab' which we distribute in src/tools. I am unclear how to fix
> > > this _except_ to remove all tabs if the line starts with '*', but that
> > > isn't foolproof, e.g.:
> > >
> > > *var = 12;
> >
> > Yeah, that explains it. I don't have a good solution, unless entab
> > wants to keep track when it's inside a comment.
>
> I could add that code, but right now it isn't there.

If you want to, I would appreciate it. But it's not high priority.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2010-04-20 17:04:41 Re: should I post the patch as committed?
Previous Message Korry Douglas 2010-04-20 16:53:30 Re: Why does TRIM() expect an expr_list?