diff --git a/src/libs/cplusplus/SimpleLexer.cpp b/src/libs/cplusplus/SimpleLexer.cpp index 26030ae09f7..8e539acb84a 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 tokens = tokenize(text, state); diff --git a/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp b/src/plugins/cppeditor/cppfollowsymbolundercursor.cpp index 0d7b40560ec..90af2bf06cd 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);