From 2ff8dddb39f7ed4dfb51b8e7293a32a06c4d9cfe Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 5 Jul 2012 17:41:19 +0200 Subject: LexHTML: Fix folding of CDATA blocks when fold.html.preprocessor is off --- lexers/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers/LexHTML.cxx') diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx index 372a5b7b7..fe5e8c857 100644 --- a/lexers/LexHTML.cxx +++ b/lexers/LexHTML.cxx @@ -1089,7 +1089,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 || (state == SCE_H_COMMENT)) + if (foldHTMLPreprocessor || state == SCE_H_COMMENT || state == SCE_H_CDATA) levelCurrent++; continue; } -- cgit v1.2.3