aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-10-08 00:50:32 +0000
committernyamatongwe <devnull@localhost>2005-10-08 00:50:32 +0000
commit3b7376243552e1803aab0dd0fc91c01e5127bab9 (patch)
tree36b8c7133118ff715682eac184cabfdb03107e97
parentb890a0cb888eaf59fa9c766fc82d0d8046557684 (diff)
downloadscintilla-mirror-3b7376243552e1803aab0dd0fc91c01e5127bab9.tar.gz
Terminate ASP scripting when a ?> is seen outside a string. This allows use
with the Kid template language.
-rw-r--r--src/LexHTML.cxx2
1 files changed, 1 insertions, 1 deletions
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) {