1 diff -Naurb ./src/qt-creator-2.3.1-src/src/libs/3rdparty/cplusplus/Token.h ./src_patched/qt-creator-2.4.0-rc-src/src/libs/3rdparty/cplusplus/Token.h
2 --- ./src/qt-creator-2.3.1-src/src/libs/3rdparty/cplusplus/Token.h 2011-09-21 10:31:14.000000000 +0400
3 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/libs/3rdparty/cplusplus/Token.h 2011-11-16 20:25:28.400382335 +0400
6 T_ASM = T_FIRST_KEYWORD,
63 T_LAST_KEYWORD = T_Q_GADGET,
66 + T_BOOL = T_FIRST_POD,
77 + T_LAST_POD = T_WCHAR_T,
81 T_AND = T_AMPER_AMPER,
83 inline bool isKeyword() const
84 { return f.kind >= T_FIRST_KEYWORD && f.kind < T_FIRST_QT_KEYWORD; }
86 + inline bool isPodType() const
87 + { return f.kind >= T_FIRST_POD && f.kind <= T_LAST_POD; }
89 inline bool isComment() const
90 { return f.kind == T_COMMENT || f.kind == T_DOXY_COMMENT ||
91 f.kind == T_CPP_COMMENT || f.kind == T_CPP_DOXY_COMMENT; }
92 diff -Naurb ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditor.cpp ./src_patched/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditor.cpp
93 --- ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditor.cpp 2011-09-21 10:31:14.000000000 +0400
94 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/plugins/cppeditor/cppeditor.cpp 2011-11-16 21:37:11.576917776 +0400
96 if (categories.isEmpty()) {
97 categories << QLatin1String(TextEditor::Constants::C_NUMBER)
98 << QLatin1String(TextEditor::Constants::C_STRING)
99 + << QLatin1String(TextEditor::Constants::C_POD_TYPE)
100 << QLatin1String(TextEditor::Constants::C_TYPE)
101 << QLatin1String(TextEditor::Constants::C_KEYWORD)
102 << QLatin1String(TextEditor::Constants::C_OPERATOR)
103 diff -Naurb ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditorenums.h ./src_patched/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditorenums.h
104 --- ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cppeditorenums.h 2011-09-21 10:31:14.000000000 +0400
105 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/plugins/cppeditor/cppeditorenums.h 2011-11-16 20:25:28.393715669 +0400
114 diff -Naurb ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cpphighlighter.cpp ./src_patched/qt-creator-2.3.1-src/src/plugins/cppeditor/cpphighlighter.cpp
115 --- ./src/qt-creator-2.3.1-src/src/plugins/cppeditor/cpphighlighter.cpp 2011-09-21 10:31:14.000000000 +0400
116 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/plugins/cppeditor/cpphighlighter.cpp 2011-11-16 22:25:15.196829839 +0400
118 } else if (tk.isKeyword() || isQtKeyword(text.midRef(tk.begin(), tk.length())) || tk.isObjCAtKeyword())
119 setFormat(tk.begin(), tk.length(), m_formats[CppKeywordFormat]);
121 + else if (tk.isPodType())
122 + setFormat(tk.begin(), tk.length(), m_formats[CppPodTypeFormat]);
124 else if (tk.isOperator())
125 setFormat(tk.begin(), tk.length(), m_formats[CppOperatorFormat]);
127 diff -Naurb ./src/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorconstants.h ./src_patched/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorconstants.h
128 --- ./src/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorconstants.h 2011-09-21 10:31:14.000000000 +0400
129 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/plugins/texteditor/texteditorconstants.h 2011-11-16 21:37:11.580251109 +0400
132 const char * const C_NUMBER = "Number";
133 const char * const C_STRING = "String";
134 +const char * const C_POD_TYPE = "POD";
135 const char * const C_TYPE = "Type";
136 const char * const C_LOCAL = "Local";
137 const char * const C_FIELD = "Field";
138 diff -Naurb ./src/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorsettings.cpp ./src_patched/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorsettings.cpp
139 --- ./src/qt-creator-2.3.1-src/src/plugins/texteditor/texteditorsettings.cpp 2011-09-21 10:31:14.000000000 +0400
140 +++ ./src_patched/qt-creator-2.4.0-rc-src/src/plugins/texteditor/texteditorsettings.cpp 2011-11-16 22:24:37.580164320 +0400
142 // Standard categories
143 formatDescriptions.append(FormatDescription(QLatin1String(C_NUMBER), tr("Number"), Qt::darkBlue));
144 formatDescriptions.append(FormatDescription(QLatin1String(C_STRING), tr("String"), Qt::darkGreen));
145 + formatDescriptions.append(FormatDescription(QLatin1String(C_POD_TYPE), tr("POD Type"), Qt::darkYellow));
146 formatDescriptions.append(FormatDescription(QLatin1String(C_TYPE), tr("Type"), Qt::darkMagenta));
147 formatDescriptions.append(FormatDescription(QLatin1String(C_LOCAL), tr("Local")));
148 formatDescriptions.append(FormatDescription(QLatin1String(C_FIELD), tr("Field"), Qt::darkRed));
150 virtualMethodFormatDescriptor.format().setItalic(true);
151 formatDescriptions.append(virtualMethodFormatDescriptor);
153 - formatDescriptions.append(FormatDescription(QLatin1String(C_KEYWORD), tr("Keyword"), Qt::darkYellow));
154 + FormatDescription keywordFormatDescriptor(QLatin1String(C_KEYWORD), tr("Keyword"), Qt::black);
155 + keywordFormatDescriptor.format().setBold(true);
156 + formatDescriptions.append(keywordFormatDescriptor);
158 formatDescriptions.append(FormatDescription(QLatin1String(C_OPERATOR), tr("Operator")));
159 formatDescriptions.append(FormatDescription(QLatin1String(C_PREPROCESSOR), tr("Preprocessor"), Qt::darkBlue));
160 formatDescriptions.append(FormatDescription(QLatin1String(C_LABEL), tr("Label"), Qt::darkRed));