diff --git a/scintilla/lexers/LexHTML.cxx b/scintilla/lexers/LexHTML.cxx
index 56e51d2467..b077c9156d 100644
--- a/scintilla/lexers/LexHTML.cxx
+++ b/scintilla/lexers/LexHTML.cxx
@@ -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)) {