From e336f9d17ea3f29180e12d6787dc9a0ea14d14ed Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 8 Oct 2005 00:50:32 +0000 Subject: Terminate ASP scripting when a ?> is seen outside a string. This allows use with the Kid template language. --- src/LexHTML.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx index 616b3acfd..8feaea769 100644 --- a/src/LexHTML.cxx +++ b/src/LexHTML.cxx @@ -751,7 +751,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty || (inScriptType == eNonHtmlScriptPreProc)) && ( ((scriptLanguage == eScriptPHP) && (ch == '?') && !isPHPStringState(state) && (state != SCE_HPHP_COMMENT)) || ((scriptLanguage != eScriptNone) && !isStringState(state) && - (ch == '%')) + ((ch == '%') || (ch == '?'))) ) && (chNext == '>')) || ((scriptLanguage == eScriptSGML) && (ch == '>') && (state != SCE_H_SGML_COMMENT))) { if (state == SCE_H_ASPAT) { -- cgit v1.2.3