File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -127,14 +127,18 @@ void Token::update_property_info()
127
127
tokType (eVariable);
128
128
else if (mTokensFrontBack .list .isKeyword (mStr )) {
129
129
tokType (eKeyword);
130
+ update_property_isStandardType ();
130
131
setFlag (fIsControlFlowKeyword , controlFlowKeywords.find (mStr ) != controlFlowKeywords.end ());
131
132
}
132
133
else if (mStr == " asm" ) { // TODO: not a keyword
133
134
tokType (eKeyword);
134
135
}
135
136
// TODO: remove condition? appears to be (no longer necessary) protection for reset of varids in Tokenizer::setVarId()
136
- else if (mTokType != eVariable && mTokType != eFunction && mTokType != eType && mTokType != eKeyword)
137
+ else if (mTokType != eVariable && mTokType != eFunction && mTokType != eType && mTokType != eKeyword) {
137
138
tokType (eName);
139
+ // some types are not being treated as keywords
140
+ update_property_isStandardType ();
141
+ }
138
142
} else if (simplecpp::Token::isNumberLike (mStr )) {
139
143
if ((MathLib::isInt (mStr ) || MathLib::isFloat (mStr )) && mStr .find (' _' ) == std::string::npos)
140
144
tokType (eNumber);
@@ -175,8 +179,6 @@ void Token::update_property_info()
175
179
tokType (eEllipsis);
176
180
else
177
181
tokType (eOther);
178
-
179
- update_property_isStandardType ();
180
182
} else {
181
183
tokType (eNone);
182
184
}
You can’t perform that action at this time.
0 commit comments