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 c485ac4 commit ae3012fCopy full SHA for ae3012f
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