Skip to content

Commit 0a79923

Browse files
authored
Merge pull request doxygen#11846 from albert-github/feature/bug_php_end_heredoc
Initial space with end of heredoc.
2 parents d28f414 + dd97834 commit 0a79923

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scanner.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2269,8 +2269,8 @@ NONLopt [^\n]*
22692269
yyextra->delimiter = &yytext[1];
22702270
BEGIN(HereDocEnd);
22712271
}
2272-
<HereDocEnd>^{ID} { // id at start of the line could mark the end of the block
2273-
if (yyextra->delimiter==yytext) // it is the end marker
2272+
<HereDocEnd>^{Bopt}{ID} { // id at start of the line could mark the end of the block
2273+
if (yyextra->delimiter==QCString(yytext).stripWhiteSpace()) // it is the end marker
22742274
{
22752275
BEGIN(yyextra->lastHereDocContext);
22762276
}

0 commit comments

Comments
 (0)