aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2009-02-15 05:00:15 +0000
committernyamatongwe <unknown>2009-02-15 05:00:15 +0000
commitf8b0c856171670cbd1c6e8bc94de754f02a6da5a (patch)
treec0a758663f6073647d6217ab950510a1c98d9b1a /src/LexHTML.cxx
parente8b2835c129ed63fa37e5588382195a6c794f426 (diff)
downloadscintilla-mirror-f8b0c856171670cbd1c6e8bc94de754f02a6da5a.tar.gz
Bug #2532774 Wrong folding of comments in HTML/XML lexer fixed.
Diffstat (limited to 'src/LexHTML.cxx')
-rw-r--r--src/LexHTML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index c324a1437..c244dff27 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -868,7 +868,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
state = SCE_H_SGML_COMMAND; // wait for a pending command
}
// fold whole tag (-- when closing the tag)
- if (foldHTMLPreprocessor)
+ if (foldHTMLPreprocessor || (state == SCE_H_COMMENT))
levelCurrent++;
continue;
}