diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2012-06-28 12:09:15 +0200 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2012-06-28 13:50:36 +0200 |
commit | 04094c274e13e7416b7544a9183324c74714813b (patch) | |
tree | f35ef977c00bb0257f7839b470fb36e54e5fdff1 /src/plugins/cpptools/cpphighlightingsupportinternal.cpp | |
parent | 4557d586f62aac636402c4d93bfd462e03cad6fa (diff) | |
download | qt-creator-04094c274e13e7416b7544a9183324c74714813b.tar.gz |
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>
Diffstat (limited to 'src/plugins/cpptools/cpphighlightingsupportinternal.cpp')
-rw-r--r-- | src/plugins/cpptools/cpphighlightingsupportinternal.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp index 4b62a06999..76c292a0d2 100644 --- a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp +++ b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp @@ -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; |