aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2013-02-23 10:13:58 +1100
committernyamatongwe <unknown>2013-02-23 10:13:58 +1100
commit2c9df3b72495ced583b9ba55c833158b8a9dfd6e (patch)
tree3303f5e4ed63b7cf53905ae387b12429221d6d69 /lexers/LexHTML.cxx
parentff54288e939aa605e9d26bdcf21c3aa82cf10383 (diff)
downloadscintilla-mirror-2c9df3b72495ced583b9ba55c833158b8a9dfd6e.tar.gz
Bug: [#1447]. Interpret PHP within HTML comments.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index d7a1bb913..3793b1185 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -895,13 +895,12 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
!isPHPStringState(state) &&
(state != SCE_HPHP_COMMENT) &&
(state != SCE_HPHP_COMMENTLINE) &&
- (state != SCE_H_COMMENT) &&
(ch == '<') &&
(chNext == '?') &&
!IsScriptCommentState(state)) {
beforeLanguage = scriptLanguage;
scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP);
- if (scriptLanguage != eScriptPHP && isStringState(state)) continue;
+ if ((scriptLanguage != eScriptPHP) && (isStringState(state) || (state==SCE_H_COMMENT))) continue;
styler.ColourTo(i - 1, StateToPrint);
beforePreProc = state;
i++;