aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-06-22 05:43:44 +0000
committernyamatongwe <unknown>2007-06-22 05:43:44 +0000
commit935817402aac9cfc5acbed6ddc92d79fda9ed16d (patch)
treefecd619baf42bda44fe2196ff36cf2ada6e88df7 /src/LexPython.cxx
parent5b99638d90f76061bc7d2e6fe67ed76e76e209ad (diff)
downloadscintilla-mirror-935817402aac9cfc5acbed6ddc92d79fda9ed16d.tar.gz
Changed decorator style to just cover the decorator name.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx4
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 == '\\') {