From 064d0cf6d931d5ac43c94e96ae2e62ed67b1a16c Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 6 Sep 2006 11:47:07 +0000 Subject: Fix for bug 1552707 where doc keywords in line comments caused incorrect folding levels. --- src/LexCPP.cxx | 4 ++-- 1 file 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--; } -- cgit v1.2.3