aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-03-14 01:38:34 +0000
committernyamatongwe <unknown>2007-03-14 01:38:34 +0000
commitcc6da151625658cb834587c7c7c19b3cf9944fb8 (patch)
tree33d7256680ea5c192af318ff78dabd2bd2c9a081 /src
parentb7cfea281e94486612523b26d30d7a4858e0bd9b (diff)
downloadscintilla-mirror-cc6da151625658cb834587c7c7c19b3cf9944fb8.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;