From 10821266a6e5f3e938ae9d7fcb0d59ea7ff81ee3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 23 Jun 2005 02:12:52 +0000 Subject: Patch from Jakub allows there to be a space after '<<<' in PHP. --- src/LexHTML.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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) -- cgit v1.2.3