diff options
author | nyamatongwe <unknown> | 2002-10-26 05:26:20 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-10-26 05:26:20 +0000 |
commit | aa53e0eead83f8fee2a97a7193d53d88488df3bb (patch) | |
tree | a450db655d9a79d3586ed4038be1ff86242a2f7b | |
parent | 0609be20a99fc04d48e610204f673b02cce4f226 (diff) | |
download | scintilla-mirror-aa53e0eead83f8fee2a97a7193d53d88488df3bb.tar.gz |
Using unsigned ints because of change to StyleContext.
-rw-r--r-- | src/LexPython.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index b11fb2fb1..35872d255 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -1,7 +1,7 @@ // Scintilla source code edit control /** @file LexPython.cxx ** Lexer for Python. - **/ + **/ // Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. @@ -42,7 +42,7 @@ static bool IsPyStringStart(int ch, int chNext, int chNext2) { } /* Return the state to use for the string starting at i; *nextIndex will be set to the first index following the quote(s) */ -static int GetPyStringState(Accessor &styler, int i, int *nextIndex) { +static int GetPyStringState(Accessor &styler, int i, unsigned int *nextIndex) { char ch = styler.SafeGetCharAt(i); char chNext = styler.SafeGetCharAt(i + 1); @@ -263,7 +263,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, } else if (sc.ch == '#') { sc.SetState(sc.chNext == '#' ? SCE_P_COMMENTBLOCK : SCE_P_COMMENTLINE); } else if (IsPyStringStart(sc.ch, sc.chNext, sc.GetRelative(2))) { - int nextIndex = 0; + unsigned int nextIndex = 0; sc.SetState(GetPyStringState(styler, sc.currentPos, &nextIndex)); while (nextIndex > (sc.currentPos + 1)) { sc.Forward(); @@ -429,5 +429,5 @@ static const char * const pythonWordListDesc[] = { 0 }; -LexerModule lmPython(SCLEX_PYTHON, ColourisePyDoc, "python", FoldPyDoc, +LexerModule lmPython(SCLEX_PYTHON, ColourisePyDoc, "python", FoldPyDoc, pythonWordListDesc); |