Skip to content

Commit

Permalink
Fix danmar#321 End of double #define not recognized
Browse files Browse the repository at this point in the history
  • Loading branch information
chrchr-github committed Sep 15, 2023
1 parent 62a8c7b commit 0405f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplecpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ void simplecpp::TokenList::combineOperators()
if (tok->previous && tok->previous->number && sameline(tok->previous, tok)) {
tok->setstr(tok->previous->str() + '.');
deleteToken(tok->previous);
if (isFloatSuffix(tok->next) || (tok->next && tok->next->startsWithOneOf("AaBbCcDdEeFfPp"))) {
if (sameline(tok, tok->next) && (isFloatSuffix(tok->next) || (tok->next && tok->next->startsWithOneOf("AaBbCcDdEeFfPp")))) {
tok->setstr(tok->str() + tok->next->str());
deleteToken(tok->next);
}
Expand Down

0 comments on commit 0405f53

Please sign in to comment.