forked from qt-creator/qt-creator
C++: Fix highlighting of "float" keyword for C files
... in the Classic Code Model.
Broken by 0d1fef41f7
Task-number: QTCREATORBUG-18879
Change-Id: I7d0222cc81e8847827af042e89d3b75c57f5d454
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
committed by
André Hartmann
parent
40e90cb8be
commit
201a09b5c5
4
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
4
src/libs/3rdparty/cplusplus/Keywords.cpp
vendored
@@ -255,8 +255,8 @@ static inline int classify5(const char *s, LanguageFeatures features)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (features.cxxEnabled && s[0] == 'f') {
|
else if (s[0] == 'f') {
|
||||||
if (s[1] == 'a') {
|
if (features.cxxEnabled && s[1] == 'a') {
|
||||||
if (s[2] == 'l') {
|
if (s[2] == 'l') {
|
||||||
if (s[3] == 's') {
|
if (s[3] == 's') {
|
||||||
if (s[4] == 'e') {
|
if (s[4] == 'e') {
|
||||||
|
|||||||
Reference in New Issue
Block a user