From e33bc13d26aa9279ced1042c1c18436e608dbb03 Mon Sep 17 00:00:00 2001 From: zufuliu Date: Mon, 10 Jun 2024 16:52:22 +0800 Subject: [PATCH] [HTML, XML] Don't interpret `<%` inside CDATA section. See https://github.com/ScintillaOrg/lexilla/issues/252 --- scintilla/lexers/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)