diff options
author | nyamatongwe <unknown> | 2007-06-22 05:43:44 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2007-06-22 05:43:44 +0000 |
commit | 935817402aac9cfc5acbed6ddc92d79fda9ed16d (patch) | |
tree | fecd619baf42bda44fe2196ff36cf2ada6e88df7 /src/LexPython.cxx | |
parent | 5b99638d90f76061bc7d2e6fe67ed76e76e209ad (diff) | |
download | scintilla-mirror-935817402aac9cfc5acbed6ddc92d79fda9ed16d.tar.gz |
Changed decorator style to just cover the decorator name.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r-- | src/LexPython.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 85fe7d658..01d406d0d 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -217,10 +217,8 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle, sc.SetState(SCE_P_DEFAULT); } } else if (sc.state == SCE_P_DECORATOR) { - if (sc.ch == '\r' || sc.ch == '\n') { + if (!IsAWordChar(sc.ch)) { sc.SetState(SCE_P_DEFAULT); - } else if (sc.ch == '#') { - sc.SetState((sc.chNext == '#') ? SCE_P_COMMENTBLOCK : SCE_P_COMMENTLINE); } } else if ((sc.state == SCE_P_STRING) || (sc.state == SCE_P_CHARACTER)) { if (sc.ch == '\\') { |