[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: C++ Parser, add your own macros here, no documentation? how to use?
From:       Matt Rogers <mattr () kde ! org>
Date:       2005-03-18 15:10:59
Message-ID: 200503180911.02397.mattr () kde ! org
[Download RAW message or body]

On Friday 18 March 2005 03:49 am, Tobias Erbsland wrote:
> Hello
>
> I wrote a serializer for a c++ project. The serializer requires two
> additions to the class definition:
>
> class X : public SerializableObject
> {
> 	SERIALIZABLE_OBJECT( X );
>
> public:
> 	(...)
>
> private:
> 	SERIALIZE int a;
> 	SERIALIZE int b;
> };
>
> But the syntax parser complains always about the "SERIALIZE" macro, that is
> defined as "#define SERIALIZE".
>

dunno about this part. We need to nail roberto down and get him to document 
it, since he's the only one who knows

> How can i teach the parser about the macro SERIALIZE. And btw, is there a
> easy way to add SERIALIZABLE_OBJECT and SERIALIZE as new "user keyword" to
> the syntax highlightling? Thats possible in many other IDE's.
>

You'll have to modify the kate syntax highlighting file to make the "user 
keyword" thing happen. KDevelop doesn't really have its own text editor 
(unless you count QEditor but it's horribly out of date).

Matt

[Attachment #3 (application/pgp-signature)]
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic