Re: Adding own languages
Re: Adding own languages
- Subject: Re: Adding own languages
- From: David Ewing <email@hidden>
- Date: Tue, 11 Nov 2003 15:25:24 -0700
On Nov 11, 2003, at 12:19 PM, Bjoern Knafla wrote:
Hello,
I am adding a scripting language my company has developed to XCode and
have some questions regarding the syntax and meaning of the pblangspec
file.
Is it possible to add keywords that are enclodes in "<" and ">" like
"<integer>"?
You could add < to IdentifierStartChars, and > to IdentifierChars. This
will also have the side effect of coloring < and <> as identifiers too,
and may not be what you want.
What is the meaning of "IdentifierChars" and "IdentifierStartChars"?
They each contain a list of characters used for as part of the sets
used to recognize identifiers. By default, both contain upper- and
lowercase alphanumeric (ASCII) characters. (There's no way to override
the simple rules to recognize identifiers, but hopefully there will be
some day. ;-)
If you want, you can send me an example of the source code that you're
trying to color, and I can give suggestions on what to try in the
.pblangspec to get it working better. (It would be good to send what
you currently have in your pblangspec as a starting point.)
Is there a way to tell XCode how to identify functions and data
structures to add them to the symbol viewer (?) ?
There's no way to do this right now. Currently our indexer is not
extensible past C/ObjC/C++/ObjC++/Java. Again, perhaps someday.... (no
promises.)
Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.