• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: auto syntax indenting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto syntax indenting


  • Subject: Re: auto syntax indenting
  • From: Philip Ershler <email@hidden>
  • Date: Thu, 7 Apr 2005 13:35:04 -0600

I think it would do better like this, (depending on whether you wanted blah is the outside loop or not).

Phil
On Apr 7, 2005, at 12:50 PM, Markian Hlynka wrote:

Here's something annoying. Is it just me, or does everyone see this?

I had:

for( i = 0; i < N; i++ )
{
		for( j = 0; j < N; j++ )
			if (aboard.board[i][j].colour != empty)
			{
				thekey ^= myZobrist[i][j][aboard.board[i][j]];
			}
            blah;
}


now, here are my issues. First off, blah is auto-indented to the wrong spot. Second, for some reason it's indented with spaces, while the other lines are tab-indented. I thought I'd had tabs turned OFF. Why is this happening? Could this be related to the "Tab indents: In leading white space" setting under prefs->indentation?

So, "blah" should actually be aligned with "thekey ^="

However, this works properly:
for( i = 0; i < N; i++ )
{
for( j = 0; j < N; j++ )
{
if (aboard.board[i][j].colour != empty)
{
//no assertion necessary because it's the loop bound by definition!
thekey ^= myZobrist[i][j][aboard.board[i][j]];
}
}
}
blah;


except once again 'blah' has spaces, and the others have tabs?!

so, 2 questions:

1. Why do I have tabs when "Editor uses tabs" is NOT checked in Text Editing prefs.
2. should I file a bug for the aberrant auto-indent behaviour?


Markian

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden

_______________________________________________ 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: 
 >auto syntax indenting (From: Markian Hlynka <email@hidden>)

  • Prev by Date: auto syntax indenting
  • Next by Date: Re: auto syntax indenting
  • Previous by thread: auto syntax indenting
  • Next by thread: Re: auto syntax indenting
  • Index(es):
    • Date
    • Thread