diff --git a/scintilla/lexers/LexHTML.cxx b/scintilla/lexers/LexHTML.cxx index b077c9156d..695f27ac0b 100644 --- a/scintilla/lexers/LexHTML.cxx +++ b/scintilla/lexers/LexHTML.cxx @@ -603,7 +603,7 @@ void ColouriseHyperTextDoc(Sci_PositionU startPos, Sci_Position length, int init } // handle the start of ASP pre-processor = Non-HTML - else if (!isCommentASPState(state) && (ch == '<') && (chNext == '%')) { + else if (state != SCE_H_CDATA && !isCommentASPState(state) && (ch == '<') && (chNext == '%')) { styler.ColorTo(i, StateToPrint); beforePreProc = state; if (inScriptType == eNonHtmlScript)