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 May 30, 2024
1 parent b01eb96 commit d5bac68
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 @@ -574,7 +574,7 @@ void ColouriseHyperTextDoc(Sci_PositionU startPos, Sci_Position length, int init

/////////////////////////////////////
// handle the start of PHP pre-processor = Non-HTML
else if ((state != SCE_H_ASPAT) &&
else if ((state != SCE_H_ASPAT && state != SCE_H_CDATA) &&
(ch == '<') &&
(chNext == '?') &&
!IsScriptCommentState(state)) {
Expand Down

0 comments on commit d5bac68

Please sign in to comment.