diff options
author | nyamatongwe <unknown> | 2006-09-06 11:47:07 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-09-06 11:47:07 +0000 |
commit | 6dfccdaa299169b8425267a93a336cf7b43debee (patch) | |
tree | 4e34754ee361f9e0f7464da283d22083406c44e6 /src | |
parent | ea49596aed536b2d779eb39c26eb04d9bf156ad8 (diff) | |
download | scintilla-mirror-6dfccdaa299169b8425267a93a336cf7b43debee.tar.gz |
Fix for bug 1552707 where doc keywords in line comments caused incorrect
folding levels.
Diffstat (limited to 'src')
-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--; } |