aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-02-15 05:00:15 +0000
committernyamatongwe <devnull@localhost>2009-02-15 05:00:15 +0000
commita94a9d44a8955a20c86d9d7475c0eb407d789bf8 (patch)
treec0a758663f6073647d6217ab950510a1c98d9b1a
parent5b7029d0961b72dc529bf0d1c3970538836ade44 (diff)
downloadscintilla-mirror-a94a9d44a8955a20c86d9d7475c0eb407d789bf8.tar.gz
Bug #2532774 Wrong folding of comments in HTML/XML lexer fixed.
-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;
}