We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
update_property_info()
1 parent 714f30f commit d0b0be7Copy full SHA for d0b0be7
lib/token.cpp
@@ -128,7 +128,8 @@ void Token::update_property_info()
128
else if (mTokensFrontBack.list.isKeyword(mStr)) {
129
tokType(eKeyword);
130
update_property_isStandardType();
131
- setFlag(fIsControlFlowKeyword, controlFlowKeywords.find(mStr) != controlFlowKeywords.end());
+ if (mTokType != eType) // cannot be a control-float keyword when it is a type
132
+ setFlag(fIsControlFlowKeyword, controlFlowKeywords.find(mStr) != controlFlowKeywords.end());
133
}
134
else if (mStr == "asm") { // TODO: not a keyword
135
0 commit comments