From cac7e4ff2467ca722656af68e68b92195b0a2636 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Fri, 29 Jun 2012 19:21:49 +0000 Subject: [PATCH] [BUG_FIXED] (Author: John Burak) Fix xml syntax highlighting broken because of php preprocessor instruction inside. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@920 f5eea248-9336-0410-98b8-ebc06183d4e3 --- scintilla/lexers/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scintilla/lexers/LexHTML.cxx b/scintilla/lexers/LexHTML.cxx index 5be39664..b093e6ae 100644 --- a/scintilla/lexers/LexHTML.cxx +++ b/scintilla/lexers/LexHTML.cxx @@ -884,7 +884,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;