aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-10-29 22:29:12 +0000
committernyamatongwe <devnull@localhost>2004-10-29 22:29:12 +0000
commitfa13b66e4cb62dc480bab47924effe82710c09bf (patch)
treebe83e9475146a4e5c171dfcd2a550e2db6cc8f77
parent75882b9ddcae190a519aeb8fa390e3289bae8664 (diff)
downloadscintilla-mirror-fa13b66e4cb62dc480bab47924effe82710c09bf.tar.gz
Patch from Iago Rubio to allow <?xml to be included inside strings
without triggering xml recognition.
-rw-r--r--src/LexHTML.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index c7ba85b8d..e3546b436 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -637,9 +637,10 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
(state != SCE_HPHP_COMMENT) &&
(ch == '<') &&
(chNext == '?')) {
+ scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment() + 2, i + 10, eScriptPHP);
+ if (scriptLanguage != eScriptPHP && isStringState(state)) continue;
styler.ColourTo(i - 1, StateToPrint);
beforePreProc = state;
- scriptLanguage = segIsScriptingIndicator(styler, styler.GetStartSegment() + 2, i + 10, eScriptPHP);
i++;
visibleChars++;
i += PrintScriptingIndicatorOffset(styler, styler.GetStartSegment() + 2, i + 10);