diff options
author | nyamatongwe <unknown> | 2011-01-05 19:49:01 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-01-05 19:49:01 +1100 |
commit | b5f28ae72e7d19b28bb190189ba78a54ad9976a0 (patch) | |
tree | 9fe5ad6d45968673ecd6a074cccd13d7d9b1e67b /lexers/LexCPP.cxx | |
parent | 8020f3c37bdca30e9fab860fa37d7b696ba3a2d9 (diff) | |
download | scintilla-mirror-b5f28ae72e7d19b28bb190189ba78a54ad9976a0.tar.gz |
Single quote strings with '\' to join lines now styled correctly. Bug #3150522.
Diffstat (limited to 'lexers/LexCPP.cxx')
-rw-r--r-- | lexers/LexCPP.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index 68859ec3b..8b0263a6e 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -485,10 +485,10 @@ void SCI_METHOD LexerCPP::Lex(unsigned int startPos, int length, int initStyle, for (; sc.More(); sc.Forward()) { if (sc.atLineStart) { - if (sc.state == SCE_C_STRING) { + if ((sc.state == SCE_C_STRING) || (sc.state == SCE_C_CHARACTER)) { // Prevent SCE_C_STRINGEOL from leaking back to previous line which // ends with a line continuation by locking in the state upto this position. - sc.SetState(SCE_C_STRING); + sc.SetState(sc.state); } // Reset states to begining of colourise so no surprises // if different sets of lines lexed. |