Commit ee200a7b authored by Erik Verbruggen's avatar Erik Verbruggen

C++: fix follow-symbol-under-cursor for #import <xyz>

Task-number: QTCREATORBUG-12254
Change-Id: I4179c78f3ce6bf2236f8375da1765122a974118c
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
parent a1e4efe2
...@@ -133,6 +133,8 @@ Token SimpleLexer::tokenAt(const QString &text, ...@@ -133,6 +133,8 @@ Token SimpleLexer::tokenAt(const QString &text,
features.qtMocRunEnabled = qtMocRunEnabled; features.qtMocRunEnabled = qtMocRunEnabled;
features.qtEnabled = qtMocRunEnabled; features.qtEnabled = qtMocRunEnabled;
features.qtKeywordsEnabled = qtMocRunEnabled; features.qtKeywordsEnabled = qtMocRunEnabled;
features.objCEnabled = qtMocRunEnabled;
features.cxx11Enabled = qtMocRunEnabled;
SimpleLexer tokenize; SimpleLexer tokenize;
tokenize.setLanguageFeatures(features); tokenize.setLanguageFeatures(features);
const QList<Token> tokens = tokenize(text, state); const QList<Token> tokens = tokenize(text, state);
......
...@@ -467,6 +467,8 @@ BaseTextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor & ...@@ -467,6 +467,8 @@ BaseTextEditorWidget::Link FollowSymbolUnderCursor::findLink(const QTextCursor &
features.qtEnabled = true; features.qtEnabled = true;
features.qtKeywordsEnabled = true; features.qtKeywordsEnabled = true;
features.qtMocRunEnabled = true; features.qtMocRunEnabled = true;
features.objCEnabled = true;
features.cxx11Enabled = true;
SimpleLexer tokenize; SimpleLexer tokenize;
tokenize.setLanguageFeatures(features); tokenize.setLanguageFeatures(features);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment