From: Martin S. <ma...@ly...> - 2003-11-24 15:58:53
|
Jake Colman <co...@pp...> wrote: > I just updated my cvs copy of cc-mode and I don't think I see font-lock > working for Qt access labels. Although they are fontified, they 'signal' is > not fontified like a regular access keyword and 'public slot' only fontifies > 'public' and does not fontify 'slot'. Really strange. Did you update from the development branch, i.e. 5.31? > class pqLineEdit : public QLineEdit > { > Q_OBJECT > Q_PROPERTY( bool MarkWholeLine READ markWholeLine WRITE setMarkWholeLine ) > Q_PROPERTY( int MinVisibleChars READ minVisibleChars WRITE setMinVisibleChars ) > Q_PROPERTY( int MaxVisibleChars READ maxVisibleChars WRITE setMaxVisibleChars ) > Q_PROPERTY( int FixedSizeChars READ fixedSizeChars WRITE setFixedSizeChars ) > Q_ENUMS( eEditable ) Ah yes, macros like that are a mess. It's a shame that C and C++ doesn't allow extra semicolons in class blocks. It's possible that CC Mode will get sophisticated enough in the next release so that such "implicit semicolon" macros can be customized with a user setting. Won't promise that yet, though. |