From c59c423ea27d35de5b7eae736862c47e1f748e43 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 16 Feb 2012 16:38:28 +1100 Subject: Avoid switching to PHP in XML unless explicit. Bug #3488060. --- lexers/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexers') 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; -- cgit v1.2.3