From a94a9d44a8955a20c86d9d7475c0eb407d789bf8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 15 Feb 2009 05:00:15 +0000 Subject: Bug #2532774 Wrong folding of comments in HTML/XML lexer fixed. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/LexHTML.cxx') 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; } -- cgit v1.2.3