aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--doc/ScintillaHistory.html6
-rw-r--r--lexers/LexCPP.cxx4
2 files changed, 8 insertions, 2 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html
index 2cf412b22..a645bc066 100644
--- a/doc/ScintillaHistory.html
+++ b/doc/ScintillaHistory.html
@@ -513,6 +513,7 @@
<td>Baldur Karlsson</td>
</tr><tr>
<td>Martin Kleusberg</td>
+ <td>Jannick</td>
</tr>
</table>
<p>
@@ -532,6 +533,11 @@
Released 16 August 2017.
</li>
<li>
+ The C++ lexer improved preprocessor conformance.
+ Default value of 0 for undefined preprocessor symbols.
+ <a href="http://sourceforge.net/p/scintilla/bugs/1966/">Bug #1966</a>.
+ </li>
+ <li>
The SQL lexer uses sql.backslash.escapes for double quoted strings.
<a href="http://sourceforge.net/p/scintilla/bugs/1968/">Bug #1968</a>.
</li>
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index f28dba7aa..fbdbd77ca 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -1582,8 +1582,8 @@ void LexerCPP::EvaluateTokens(std::vector<std::string> &tokens, const SymbolTabl
tokens.insert(tokens.begin() + i, macroTokens.begin(), macroTokens.end());
}
} else {
- // Identifier not found
- tokens.erase(tokens.begin() + i);
+ // Identifier not found and value defaults to zero
+ tokens[i] = "0";
}
} else {
i++;