diff options
author | nyamatongwe <devnull@localhost> | 2006-01-24 11:39:44 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-01-24 11:39:44 +0000 |
commit | 96617020c3ba060792be38b3cbfae037e25dc4b4 (patch) | |
tree | 971b4a001a91db4cd119546c6bb1e9caf10270e7 /src/LexPython.cxx | |
parent | 4e4ac5eb9da2c1de60bca4694be39a059a9c4039 (diff) | |
download | scintilla-mirror-96617020c3ba060792be38b3cbfae037e25dc4b4.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.cxx | 2 |
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 == '\\') { |