Commit 49bfb964 authored by Christian Kamm's avatar Christian Kamm
Browse files

C++ editor: Fix 'follow symbol' to work on several core Qt macros.

Task-number: QTCREATORBUG-2240
Reviewed-by: Erik Verbruggen
parent 1e4749d9
......@@ -1269,7 +1269,7 @@ CPPEditor::Link CPPEditor::findLinkAt(const QTextCursor &cursor,
}
}
if (tk.isNot(T_IDENTIFIER))
if (tk.isNot(T_IDENTIFIER) && tk.kind() < T_FIRST_QT_KEYWORD && tk.kind() > T_LAST_KEYWORD)
return link;
tc.setPosition(endOfToken);
......
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