aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPython.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-01-24 11:39:44 +0000
committernyamatongwe <unknown>2006-01-24 11:39:44 +0000
commit868ce73d35bf04d9c7653ab7dab8223889a78971 (patch)
tree971b4a001a91db4cd119546c6bb1e9caf10270e7 /src/LexPython.cxx
parentc026d07b78b7916ace637378e181fd7845ba9b24 (diff)
downloadscintilla-mirror-868ce73d35bf04d9c7653ab7dab8223889a78971.tar.gz
Patch from Steven Johnson to style comments on decorators as comments
rather than decorators.
Diffstat (limited to 'src/LexPython.cxx')
-rw-r--r--src/LexPython.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexPython.cxx b/src/LexPython.cxx
index c1397b791..1bdebf6de 100644
--- a/src/LexPython.cxx
+++ b/src/LexPython.cxx
@@ -212,6 +212,8 @@ static void ColourisePyDoc(unsigned int startPos, int length, int initStyle,
} else if (sc.state == SCE_P_DECORATOR) {
if (sc.ch == '\r' || sc.ch == '\n') {
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 == '\\') {