aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-12-13 23:43:30 +1100
committernyamatongwe <devnull@localhost>2011-12-13 23:43:30 +1100
commitf8e5188bacb77be060bf116c0cfc44193e9b0200 (patch)
tree576605c822d7f55cf494fd6547c434f08805268e
parent2c97478eb29ac10a3e6774be8b89acbe398ec847 (diff)
downloadscintilla-mirror-f8e5188bacb77be060bf116c0cfc44193e9b0200.tar.gz
Bug #3458508. Fixed preprocessor structure messed up by continuation lines.
-rw-r--r--lexers/LexCPP.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx
index 1b56519c2..b92f279d3 100644
--- a/lexers/LexCPP.cxx
+++ b/lexers/LexCPP.cxx
@@ -554,6 +554,8 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle,
// Handle line continuation generically.
if (sc.ch == '\\') {
if (sc.chNext == '\n' || sc.chNext == '\r') {
+ lineCurrent++;
+ vlls.Add(lineCurrent, preproc);
sc.Forward();
if (sc.ch == '\r' && sc.chNext == '\n') {
sc.Forward();