diff options
author | nyamatongwe <unknown> | 2002-02-11 02:15:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-11 02:15:56 +0000 |
commit | 059b5ea7391a9879a96921b256a185165e8ab2db (patch) | |
tree | 8fccbc9b0127de0aa755ebbef0a78b4ca1609bad /src/LexPython.cxx | |
parent | 537e81b993a0118c5c51018f5697ae4f5c1cc3bc (diff) | |
download | scintilla-mirror-059b5ea7391a9879a96921b256a185165e8ab2db.tar.gz |
Changes to tighten up styling beyond the bounds of the document.
May not be permanent.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 35a5a92be..4af4ca225 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -156,6 +156,8 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, sc.ChangeState(SCE_P_STRINGEOL); sc.ForwardSetState(SCE_P_DEFAULT); } + if (!sc.More()) + break; } // Check for a state end @@ -166,7 +168,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_P_DEFAULT); } - } else if (sc.state == SCE_P_WORD) { + } else if (sc.state == SCE_P_IDENTIFIER) { if ((sc.ch == '.') || (!IsAWordChar(sc.ch))) { char s[100]; sc.GetCurrent(s, sizeof(s)); @@ -245,7 +247,7 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, sc.Forward(); } } else if (IsAWordStart(sc.ch)) { - sc.SetState(SCE_P_WORD); + sc.SetState(SCE_P_IDENTIFIER); } } } |