[Qt-creator] [patch] C++ syntax highlighting and the (unused) 'style' format.

tbp tbptbp at gmail.com
Fri Apr 2 15:23:56 CEST 2010


Hello,
this patch tries to address the fact the 'type' syntax highlighting
format isn't used in any version of QtCreator i've tried but for Qt
specific stuff.
It demotes some keywords (most of 7.1 [dcl.dcl])  and identifiers
ending with '_t' as types.

Given this is my first tentative to contribute to this project, being
not quite sure about which set of features of C++ were allowed, i've
tried to restrain myself (ie i haven't added __m128 & co) yet i
couldn't resist removing some of the string matching spaghetti. Sorry.
If more aggressive preprocessor tricks are allowed, i'd like to
tighten it some more (but i feared even basic variadic macros would
already be too much).

This patch is against v1.2.1 mostly because i haven't found out how to
statically build Qt 4.7 and trunk.

PS: I've seen signs of semantic highlighting in v2.0, which i'm
interested in, but couldn't quite figure how/what it was supposed to
effect.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpphighlighter.diff
Type: text/x-patch
Size: 7514 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100402/4e55c845/attachment.bin 


More information about the Qt-creator-old mailing list