I would hope that there's come Cocoa class for parsing source text into tokens etc, but don't know of anything.

For what it's worth, this may help:

http://zathras.de/sourcecode.htm#UKSyntaxColoredTextDocument

It shows you how to re-examine only the parts that actually changed, and not the entire file each time. It also uses custom attributes to indicate ranges of syntax-specific stuff, so you can detect whether you just chopped the ending indicator of a quoted string or whatever.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to