diff options
author | ActiveState <unknown> | 2016-04-23 09:19:39 +1000 |
---|---|---|
committer | ActiveState <unknown> | 2016-04-23 09:19:39 +1000 |
commit | 4a760c2f7d5263b030b1da845a4622244011e42d (patch) | |
tree | 1eabb6e3f07b5e946e89e3cf50c320aec4495985 /lexers/LexCPP.cxx | |
parent | 219e641af24ed4e4383c0a11164e26f6a3333778 (diff) | |
download | scintilla-mirror-4a760c2f7d5263b030b1da845a4622244011e42d.tar.gz |
Fix a bug with multi-line strings with line continuation where the string style
overflowed after an edit.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 76190002a..4261084d4 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -761,6 +761,9 @@ void SCI_METHOD LexerCPP::Lex(Sci_PositionU startPos, Sci_Position length, int i lineCurrent++; lineEndNext = styler.LineEnd(lineCurrent); vlls.Add(lineCurrent, preproc); + if (rawStringTerminator != "") { + rawSTNew.Set(lineCurrent-1, rawStringTerminator); + } sc.Forward(); if (sc.ch == '\r' && sc.chNext == '\n') { // Even in UTF-8, \r and \n are separate |