aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-02-16 16:38:28 +1100
committernyamatongwe <devnull@localhost>2012-02-16 16:38:28 +1100
commitc59c423ea27d35de5b7eae736862c47e1f748e43 (patch)
tree558ea8b36c2d43948330a05d1e0fc06b0f3cdec5
parente9f19dc73287d101d234ae12733a35d9e8a831ef (diff)
downloadscintilla-mirror-c59c423ea27d35de5b7eae736862c47e1f748e43.tar.gz
Avoid switching to PHP in XML unless explicit. Bug #3488060.
-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;