diff options
| author | nyamatongwe <unknown> | 2004-03-19 21:44:53 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2004-03-19 21:44:53 +0000 | 
| commit | 4c438e8baf37e99b5c21c169718e35430738be66 (patch) | |
| tree | dc20575e34570f19d9d2eed797911d83e311ec94 /src/LexPython.cxx | |
| parent | 6e13c2734443a4c9ab000ac842830b17cd4b9cde (diff) | |
| download | scintilla-mirror-4c438e8baf37e99b5c21c169718e35430738be66.tar.gz | |
Patch from John Ehresman to prevent a hang when called to lex for 1
character from the start of a multi-character string start.
Diffstat (limited to 'src/LexPython.cxx')
| -rw-r--r-- | src/LexPython.cxx | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 47974d1bc..1db5669e1 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -265,8 +265,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,  			} else if (IsPyStringStart(sc.ch, sc.chNext, sc.GetRelative(2))) {  				unsigned int nextIndex = 0;  				sc.SetState(GetPyStringState(styler, sc.currentPos, &nextIndex)); -				while (nextIndex > (sc.currentPos + 1)) { -					sc.Forward(); +				while (nextIndex > (sc.currentPos + 1) && sc.More()) {
					sc.Forward();  				}  			} else if (IsAWordStart(sc.ch)) {  				sc.SetState(SCE_P_IDENTIFIER); | 
