aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-06-23 02:12:52 +0000
committernyamatongwe <unknown>2005-06-23 02:12:52 +0000
commite4ca95b63e9bcd5c07dca052710994614a100b87 (patch)
tree2300f087ef2c6ab89069918d69bf20c113ef7354
parent0c0f19a34b7303ba2cf9737a6f636f357ce8fc67 (diff)
downloadscintilla-mirror-e4ca95b63e9bcd5c07dca052710994614a100b87.tar.gz
Patch from Jakub allows there to be a space after '<<<' in PHP.
-rw-r--r--src/LexHTML.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/LexHTML.cxx b/src/LexHTML.cxx
index 372effdc7..6c4dc241b 100644
--- a/src/LexHTML.cxx
+++ b/src/LexHTML.cxx
@@ -424,6 +424,8 @@ static bool isPHPStringState(int state) {
static int FindPhpStringDelimiter(char *phpStringDelimiter, const int phpStringDelimiterSize, int i, const int lengthDoc, Accessor &styler) {
int j;
+ while (i < lengthDoc && (styler[i] == ' ' || styler[i] == '\t'))
+ i++;
phpStringDelimiter[0] = '\n';
for (j = i; j < lengthDoc && styler[j] != '\n' && styler[j] != '\r'; j++) {
if (j - i < phpStringDelimiterSize - 2)