forked from qt-creator/qt-creator
CppEditor: Fix condition for Obj-C keyword highlighting
Change-Id: I3fb8bf46fffbb0b41ef532996a21f03d2d48a9c1 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -210,7 +210,7 @@ void CppHighlighter::highlightBlock(const QString &text)
|
||||
} else if (tk.isKeyword()
|
||||
|| (m_languageFeatures.qtKeywordsEnabled
|
||||
&& CppTools::isQtKeyword(text.midRef(tk.utf16charsBegin(), tk.utf16chars())))
|
||||
|| tk.isObjCAtKeyword()) {
|
||||
|| (m_languageFeatures.objCEnabled && tk.isObjCAtKeyword())) {
|
||||
setFormat(tk.utf16charsBegin(), tk.utf16chars(), formatForCategory(CppKeywordFormat));
|
||||
} else if (tk.isPrimitiveType()) {
|
||||
setFormat(tk.utf16charsBegin(), tk.utf16chars(),
|
||||
|
||||
Reference in New Issue
Block a user