Skip to content

Commit f80f7dc

Browse files
committed
Wrong place in comment scanner of end summary tag
When having: ``` /// \file /// The namespace docu namespace Demo { /// <summary> /// The base class /// </summary> public class Base { /// <summary> /// The foo function /// </summary> /// <remarks> /// <param name="value">The foo parameter</param> /// <returns>foo Something</returns> /// </remarks> public virtual int foo(int value); } } ``` and we run this with `doxygen -d commentscan` we see that the `</summary>` is in the detailed part and not in the brief part: ``` CommentScanner: D:/speeltuin/issue_7356/bug_csharp_summary/Class1.cs:6 input=[ <summary> The base class </summary> ] ----------- CommentScanner: D:/speeltuin/issue_7356/bug_csharp_summary/Class1.cs:6 output=[ brief=[line=6 <summary> The base class ] docs=[line=6 </summary> ] inbody=[line=-1 ] ] ``` this happened between the versions 1.8.14(OK) and 1.8.15(wrong), most likely through an improvement in case there are multiple brief section. In case `</summary>` we should be already in the brief section so no need to switch again as the second switch would have no effect and we would land in the details.
1 parent bb379a3 commit f80f7dc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/commentscan.l

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,12 +592,10 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
592592
addOutput(yyscanner,yytext);
593593
}
594594
<Comment>"</summary>" { // start of a .NET XML style detailed description
595-
setOutput(yyscanner,OutputBrief);
596595
addOutput(yyscanner,yytext);
597596
setOutput(yyscanner,OutputDoc);
598597
}
599598
<Comment>"</remarks>" { // end of a brief or detailed description
600-
601599
setOutput(yyscanner,OutputDoc);
602600
addOutput(yyscanner,yytext);
603601
}

0 commit comments

Comments
 (0)