Re: String syntax coloring is a mess
Re: String syntax coloring is a mess
- Subject: Re: String syntax coloring is a mess
- From: Chris Williams <email@hidden>
- Date: Fri, 07 Dec 2007 12:00:22 -0800
- Thread-topic: String syntax coloring is a mess
I see this problem all the time. It is reproducible (at least in 2.5).
When I see it is if I type:
[class method];
And then go back and put in the parameter:
[class mothod:@"string"];
When I type the first quote, the rest of the file goes red. When I type the
second quote, it stays red. No amount of adding and deleting the last quote
fixes it.
However, if I delete the trailing bracket (the ] ), and put it back in, all
gets cleared up.
If you type it as:
[class method:@"string"
In that order, as you would naturally type, and later put in the ], it works
fine. Apparently the closing ] has some involvement in this.
It has driven me nuts, until I realized the ] trick, so now I do that (type
in the right order, or delete/read the ] ), and it's just something I live
with.
I'm not yet running 3.0, so I can't tell if it's a problem there, and I
don't think filing a bug on 2.5 makes sense... So I've done nothing about
it.
HTH,
Chris
> From: j o a r <email@hidden>
> Date: Fri, 7 Dec 2007 11:36:46 -0800
> To: kwiley <email@hidden>
> Cc: Xcode Users <email@hidden>
> Subject: Re: String syntax coloring is a mess
>
>
> On Dec 7, 2007, at 10:59 AM, kwiley wrote:
>
>> The problem is that when opening or closing string constants with a
>> double quote character, the syntax coloring often gets screwed up.
>> The most common symptom is that code below the string constant is
>> all turned string color when the string is opened (fair enough), but
>> is left string colored with the string is closed.
>
>
> I never see that problem. Yes, with an open string constant the
> remainder of the file is colored using string color, but as soon as I
> close the string constant, syntax coloring is immediately and
> automatically restored.
>
> If you can reproduce this problem in a small sample project, using a
> specific set of steps, I think that you should file a bug report to
> Apple.
>
> j o a r
>
>
> _______________________________________________
> 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
_______________________________________________
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