diff options
author | nyamatongwe <devnull@localhost> | 2007-03-14 01:38:34 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-03-14 01:38:34 +0000 |
commit | bd3b8fd1c6cf94d59634a69e66cea4a732eb6724 (patch) | |
tree | 33d7256680ea5c192af318ff78dabd2bd2c9a081 /src | |
parent | ccf64b817b37e28610c11a28430f77b739c7c348 (diff) | |
download | scintilla-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.cxx | 2 |
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; |