aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-03-14 01:38:34 +0000
committernyamatongwe <devnull@localhost>2007-03-14 01:38:34 +0000
commitbd3b8fd1c6cf94d59634a69e66cea4a732eb6724 (patch)
tree33d7256680ea5c192af318ff78dabd2bd2c9a081 /src
parentccf64b817b37e28610c11a28430f77b739c7c348 (diff)
downloadscintilla-mirror-bd3b8fd1c6cf94d59634a69e66cea4a732eb6724.tar.gz
Fix bug #1680012 by not styling past range when PHP heredoc
end encountered.
Diffstat (limited to 'src')
-rw-r--r--src/LexHTML.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index a89ce149a..f5be5fa2d 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -1602,7 +1602,7 @@ static void ColouriseHyperTextDoc(unsigned int startPos, int length, int initSty
styler.ColourTo(i - 1, StateToPrint);
state = SCE_HPHP_HSTRING_VARIABLE;
} else if (styler.Match(i, phpStringDelimiter)) {
- if (strlen(phpStringDelimiter) > 1)
+ if ((strlen(phpStringDelimiter) > 1) && (i + static_cast<int>(strlen(phpStringDelimiter)) < lengthDoc))
i += strlen(phpStringDelimiter) - 1;
styler.ColourTo(i, StateToPrint);
state = SCE_HPHP_DEFAULT;