diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp index 26030ae09f7c83a81199d4b935f3ea11d4f2043a..8e539acb84aa85b5211ac090ba7b0ff82d346381 100644 --- a/src/libs/cplusplus/SimpleLexer.cpp +++ b/src/libs/cplusplus/SimpleLexer.cpp @@ -133,6 +133,8 @@ Token SimpleLexer::tokenAt(const QString &text, features.qtMocRunEnabled = qtMocRunEnabled; features.qtEnabled = qtMocRunEnabled; features.qtKeywordsEnabled = qtMocRunEnabled; + features.objCEnabled = qtMocRunEnabled; + features.cxx11Enabled = qtMocRunEnabled; SimpleLexer tokenize; tokenize.setLanguageFeatures(features); const QList<Token> tokens = tokenize(text, state); diff --git a/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp b/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp index 0d7b40560ec23b009ae5efee7da3741cf516bb81..90af2bf06cd95ff346ef56303b252509e6649657 100644 --- a/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp +++ b/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp @@ -467,6 +467,8 @@ BaseTextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor & features.qtEnabled = true; features.qtKeywordsEnabled = true; features.qtMocRunEnabled = true; + features.objCEnabled = true; + features.cxx11Enabled = true; SimpleLexer tokenize; tokenize.setLanguageFeatures(features);