Skip to content

Commit c611ec4

Browse files
authored
Merge pull request doxygen#9833 from albert-github/feature/issue_9831
issue doxygen#9831 @exception description paragraph does not accept @ref tag
2 parents a14d260 + 17c2942 commit c611ec4

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/commentcnv.l

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,25 @@ SLASHopt [/]*
221221
yyextra->commentStack.push(yyextra->lineNr);
222222
}
223223
}
224+
<Scan>"\"\"\"" { /* start of python long comment */
225+
if (yyextra->lang!=SrcLangExt_Python)
226+
{
227+
REJECT;
228+
}
229+
else if (Config_getBool(PYTHON_DOCSTRING))
230+
{
231+
REJECT;
232+
}
233+
else
234+
{ /* handle as if """! */
235+
yyextra->pythonDocString = TRUE;
236+
yyextra->nestingCount=1;
237+
clearCommentStack(yyscanner); /* to be on the save side */
238+
copyToOutput(yyscanner,yytext,(int)yyleng);
239+
BEGIN(CComment);
240+
yyextra->commentStack.push(yyextra->lineNr);
241+
}
242+
}
224243
<Scan>![><!]/.*\n {
225244
if (yyextra->lang!=SrcLangExt_Fortran)
226245
{

0 commit comments

Comments
 (0)