aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexers/LexHTML.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-02-16 16:38:28 +1100
committernyamatongwe <unknown>2012-02-16 16:38:28 +1100
commit187d614d7203271ee2db1c0028acfe1ddd88a644 (patch)
tree7bd49d5e3b7e7c75e539ce6926c2eabbba03cc9e /lexers/LexHTML.cxx
parente3ffedd71550455afedb886cbfd4d5ef080d18c7 (diff)
downloadscintilla-mirror-187d614d7203271ee2db1c0028acfe1ddd88a644.tar.gz
Avoid switching to PHP in XML unless explicit. Bug #3488060.
Diffstat (limited to 'lexers/LexHTML.cxx')
-rw-r--r--lexers/LexHTML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexers/LexHTML.cxx b/lexers/LexHTML.cxx
index d8d4d2e9c..a22a675a5 100644
--- a/lexers/LexHTML.cxx
+++ b/lexers/LexHTML.cxx
@@ -903,7 +903,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
(chNext == '?') &&
!IsScriptCommentState(state)) {
beforeLanguage = scriptLanguage;
- scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, eScriptPHP);
+ scriptLanguage = segIsScriptingIndicator(styler, i + 2, i + 6, isXml ? eScriptXML : eScriptPHP);
if (scriptLanguage != eScriptPHP && isStringState(state)) continue;
styler.ColourTo(i - 1, StateToPrint);
beforePreProc = state;