Re: re-indent bug
Re: re-indent bug
- Subject: Re: re-indent bug
- From: David A Rowland <email@hidden>
- Date: Sat, 7 Oct 2006 08:21:27 -0700
At 3:27 PM +0200 10/7/06, Roger Persson wrote:
Hi,
I just tried re-indenting this piece of code containing a c-styled
commed (/**/):
/*1. Save this snippet as "reindent.c",
2. select all text, and
3. re-indent it via Format menu */
BOOL function(int value)
{
switch (something) {
case A:
result = findResult(parent,
NULL); /* remove this */
break;
case B:
break;
}
}
The comment "remove this" causes a "wild and crazy" behaviour for
reindent. If you remove the comment, reindent works as normal.
Note that the behaviour is other if you use c++ styled comments (//).
just for fun i added a blank space after the comment. No improvement.
I added two spaces -- things now look fine. It looks like a bug in
the re-indent parser.
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >re-indent bug (From: "Roger Persson" <email@hidden>) |