diff options
author | nyamatongwe <unknown> | 2013-02-23 10:13:58 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-02-23 10:13:58 +1100 |
commit | 2c9df3b72495ced583b9ba55c833158b8a9dfd6e (patch) | |
tree | 3303f5e4ed63b7cf53905ae387b12429221d6d69 /lexers/LexHTML.cxx | |
parent | ff54288e939aa605e9d26bdcf21c3aa82cf10383 (diff) | |
download | scintilla-mirror-2c9df3b72495ced583b9ba55c833158b8a9dfd6e.tar.gz |
Bug: [#1447]. Interpret PHP within HTML comments.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r-- | lexers/LexHTML.cxx | 3 |
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++; |