diff options
| -rw-r--r-- | src/LexCPP.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 1db0c7c6f..ee24c8765 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -396,9 +396,9 @@ static void FoldNoBoxCppDoc(unsigned int startPos, int length, int initStyle,  		styleNext = styler.StyleAt(i + 1);  		bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n');  		if (foldComment && IsStreamCommentStyle(style)) { -			if (!IsStreamCommentStyle(stylePrev)) { +			if (!IsStreamCommentStyle(stylePrev) && (stylePrev != SCE_C_COMMENTLINEDOC)) {  				levelNext++; -			} else if (!IsStreamCommentStyle(styleNext) && !atEOL) { +			} else if (!IsStreamCommentStyle(styleNext) && (styleNext != SCE_C_COMMENTLINEDOC) && !atEOL) {  				// Comments don't end at end of line and the next character may be unstyled.  				levelNext--;  			} | 
