diff options
-rw-r--r-- | doc/ScintillaHistory.html | 7 | ||||
-rw-r--r-- | lexers/LexCPP.cxx | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index e6569155f..2a97771f7 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -570,9 +570,10 @@ <a href="http://sourceforge.net/p/scintilla/bugs/1919/">Bug #1919</a>. </li> <li> - The C++ lexer improved preprocessor conformance. - Default value of 0 for undefined preprocessor symbols. - #define A is treated as #define A 1. + The C++ lexer improved preprocessor conformance.<br /> + Default value of 0 for undefined preprocessor symbols.<br /> + #define A is treated as #define A 1.<br /> + "defined A" removes "A" before replacing "defined" with value. <a href="http://sourceforge.net/p/scintilla/bugs/1966/">Bug #1966</a>. </li> <li> diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 5761d45f5..5a198d9e4 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -1522,6 +1522,7 @@ void LexerCPP::EvaluateTokens(std::vector<std::string> &tokens, const SymbolTabl if (it != preprocessorDefinitions.end()) { val = "1"; } + tokens.erase(tokens.begin() + i + 1, tokens.begin() + i + 2); } tokens[i] = val; } else { |