[Qt-creator] [patch] C++ syntax highlighting and the (unused) 'style' format.
tbp
tbptbp at gmail.com
Tue Apr 6 11:10:50 CEST 2010
On Tue, Apr 6, 2010 at 10:42 AM, Oswald Buddenhagen
<oswald.buddenhagen at nokia.com> wrote:
>> It demotes some keywords (most of 7.1 [dcl.dcl]) and identifiers
>> ending with '_t' as types.
>>
> hmmm ...
> http://qt.gitorious.org/qt-creator/qt-creator/merge_requests/127
> http://qt.gitorious.org/qt-creator/qt-creator/merge_requests/123
Yes, my intent was also to catch stdint; having types end in '_t' is a
very common convention. But i agree, it's just that, a convention. So
that part of the patch is debatable, just like highlighting
^Q[_|t|A-Z].* is in the first place ;)
On the other hand char, int, float, double and, i'd argue, their
qualifiers and so on, are undeniably types. So the question is how can
you justify not to highlight them as such?
Would that patch be more acceptable if i dropped the *_t bits?
More information about the Qt-creator-old
mailing list