I've been playing around with GEdit's syntax highlighting. I love the way that Visual Studio highlight's user created types. I would like to do this for my user created types in C/C++ (eg. typedef's/classes). For example (in C):
typedef struct Node *pNode;
And an example in C++:
class BigNumber
{
// Class stuff here.
};
See the way Node is highlighted differntly from typedef struct (keywords) and *pNode isn't highlighted at all. How can I write a regex to detect that, and highlight all occurrences of Node and BigNumber throughout my current document?