diff options
| author | nyamatongwe <devnull@localhost> | 2001-08-10 10:37:02 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-08-10 10:37:02 +0000 | 
| commit | f383f22afc060b66f9c57213144f06b8cae7ccd4 (patch) | |
| tree | f156846111ec1b26145f29678beb18e7d338292f /src/LexPython.cxx | |
| parent | 25cb98904f0fea217be8dc136eddd7bc3ddcbcd8 (diff) | |
| download | scintilla-mirror-f383f22afc060b66f9c57213144f06b8cae7ccd4.tar.gz | |
Folder processes last line of document now.
Comments in column 0 are never headers.
Diffstat (limited to 'src/LexPython.cxx')
| -rw-r--r-- | src/LexPython.cxx | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/LexPython.cxx b/src/LexPython.cxx index 6c5eed148..ddff03e94 100644 --- a/src/LexPython.cxx +++ b/src/LexPython.cxx @@ -366,7 +366,7 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse  	// Process all characters to end of requested range or end of any triple quote  	// or comment that hangs over the end of the range -	for (int i = startPos; i < lengthDoc && ((lineCurrent < maxLines) || prevQuote || prevComment); i++) { +	for (int i = startPos; i < lengthDoc && ((lineCurrent <= maxLines) || prevQuote || prevComment); i++) {  		// Next character  		char ch = chNext; @@ -384,7 +384,8 @@ static void FoldPyDoc(unsigned int startPos, int length, int /*initStyle - unuse  			int quote_start = (quote && !prevQuote);  			int quote_continue = (quote && prevQuote);  			int comment = IsCommentLine(lineCurrent, styler); -			int comment_start = (comment && !prevComment && IsCommentLine(lineNext, styler)); +			int comment_start = (comment && !prevComment &&  +				IsCommentLine(lineNext, styler) && (lev > SC_FOLDLEVELBASE));  			int comment_continue = (comment && prevComment);  			if (quote_start) { | 
