aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)