• 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: String syntax coloring is a mess
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String syntax coloring is a mess


  • Subject: Re: String syntax coloring is a mess
  • From: Steve Mills <email@hidden>
  • Date: Fri, 7 Dec 2007 14:27:01 -0600

On Dec 7, 2007, at 14:14:03, Chris Williams wrote:

I see this problem all the time. It is reproducible (at least in 2.5).

Me too. Many times a day. It's not a huge deal since it's just incorrect text color, so I've been hoping that some Xcode engineers would finally get sick of seeing the bug and fix it. A bad assumption, I know.


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.


I usually fix it by hitting page-up/down, page-down/up to force Xcode to render the entire page. So I would guess it's a dirty region bug, where closing the quote inside some other pair of () or [] or {} or whatever doesn't tell the trailing lines that they need an update. In fact, are there any cases where a quoted string *could* wrap to more than one line, past a line end character (not counting when a line wraps because the user has the pref set to wrap to the window width)? If not, then syntax coloring should never continue the string coloring past a line end character in the first place.

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ 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
  • Prev by Date: Re: Problems compiling OpenGL app with FBO extensions
  • Next by Date: Re: String syntax coloring is a mess
  • Previous by thread: Re: String syntax coloring is a mess
  • Next by thread: Interface Builder connection confusion (Xcode 3.0)
  • Index(es):
    • Date
    • Thread