diff options
| author | nyamatongwe <unknown> | 2007-03-14 01:38:34 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-03-14 01:38:34 +0000 | 
| commit | cc6da151625658cb834587c7c7c19b3cf9944fb8 (patch) | |
| tree | 33d7256680ea5c192af318ff78dabd2bd2c9a081 /src/LexHTML.cxx | |
| parent | b7cfea281e94486612523b26d30d7a4858e0bd9b (diff) | |
| download | scintilla-mirror-cc6da151625658cb834587c7c7c19b3cf9944fb8.tar.gz | |
Fix bug #1680012 by not styling past range when PHP heredoc
end encountered.
Diffstat (limited to 'src/LexHTML.cxx')
| -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;  | 
