Skip to content

Commit

Permalink
[HTML, XML] Don't interpret <% inside CDATA section.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jun 10, 2024
1 parent b506a2c commit e33bc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexHTML.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e33bc13

Please # to comment.