Skip to content

Commit be6092c

Browse files
committed
issue #11107 PHP heredocs with double quotes stop doxygen
Creating possibility for double quoted here document in PHP.
1 parent 6e59935 commit be6092c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/scanner.l

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,6 +2183,11 @@ NONLopt [^\n]*
21832183
*yyextra->pCopyHereDocGString << yytext;
21842184
BEGIN(CopyHereDocEnd);
21852185
}
2186+
<CopyHereDoc>"\""{ID}/"\"" { // PHP quoted heredoc
2187+
yyextra->delimiter = &yytext[1];
2188+
*yyextra->pCopyHereDocGString << yytext;
2189+
BEGIN(CopyHereDocEnd);
2190+
}
21862191
<CopyHereDoc>"'"{ID}/"'" { // PHP nowdoc
21872192
yyextra->delimiter = &yytext[1];
21882193
*yyextra->pCopyHereDocGString << yytext;
@@ -2192,6 +2197,10 @@ NONLopt [^\n]*
21922197
yyextra->delimiter = yytext;
21932198
BEGIN(HereDocEnd);
21942199
}
2200+
<HereDoc>"\""{ID}/"\"" { // PHP quoted heredoc
2201+
yyextra->delimiter = &yytext[1];
2202+
BEGIN(HereDocEnd);
2203+
}
21952204
<HereDoc>"'"{ID}/"'" { // PHP nowdoc
21962205
yyextra->delimiter = &yytext[1];
21972206
BEGIN(HereDocEnd);

0 commit comments

Comments
 (0)