diff options
| author | nyamatongwe <devnull@localhost> | 2011-01-05 19:49:01 +1100 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-01-05 19:49:01 +1100 | 
| commit | 940db5f84237af4ed2cd33345b626ed7095089fb (patch) | |
| tree | 9d066e3d0e1a82b4c7ef812847989fcb308b046f /lexers/LexCPP.cxx | |
| parent | 502d4bbe5e80deac3813b2b5abeff297c1cdc6fd (diff) | |
| download | scintilla-mirror-940db5f84237af4ed2cd33345b626ed7095089fb.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. | 
