C++: Enable C++11 keywords in macro uses

Just in case compilers id defining such things.

Change-Id: Ica6af8462e90bfab2bfa883ec12d5e648d6d33db
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Leandro Melo
2012-06-28 12:09:15 +02:00
parent 4557d586f6
commit 04094c274e

View File

@@ -69,6 +69,7 @@ QFuture<CppHighlightingSupport::Use> CppHighlightingSupportInternal::highlightin
SimpleLexer tokenize;
tokenize.setQtMocRunEnabled(false);
tokenize.setObjCEnabled(false);
tokenize.setCxx0xEnabled(true);
const QList<Token> tokens = tokenize(name);
if (tokens.length() && (tokens.at(0).isKeyword() || tokens.at(0).isObjCAtKeyword()))
continue;