diff options
| author | nyamatongwe <unknown> | 2006-01-24 11:39:44 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2006-01-24 11:39:44 +0000 | 
| commit | 868ce73d35bf04d9c7653ab7dab8223889a78971 (patch) | |
| tree | 971b4a001a91db4cd119546c6bb1e9caf10270e7 | |
| parent | c026d07b78b7916ace637378e181fd7845ba9b24 (diff) | |
| download | scintilla-mirror-868ce73d35bf04d9c7653ab7dab8223889a78971.tar.gz | |
Patch from Steven Johnson to style comments on decorators as comments
rather than decorators.
| -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 == '\\') { | 
