From 0405f53548268e9a60fd01e645d1b040a0ebb52c Mon Sep 17 00:00:00 2001 From: chrchr Date: Fri, 15 Sep 2023 17:55:56 +0200 Subject: [PATCH] Fix #321 End of double #define not recognized --- simplecpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplecpp.cpp b/simplecpp.cpp index 7c4a6c4d..366a5f0b 100755 --- a/simplecpp.cpp +++ b/simplecpp.cpp @@ -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); }