diff options
-rw-r--r-- | lexers/LexCPP.cxx | 2 |
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(); |