From f80f7dcce014b42adcbb5d6d6534fa766a0b9219 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 22 Jan 2021 13:24:41 +0100 Subject: Wrong place in comment scanner of end summary tag When having: ``` /// \file /// The namespace docu namespace Demo { /// /// The base class /// public class Base { /// /// The foo function /// /// /// The foo parameter /// foo Something /// public virtual int foo(int value); } } ``` and we run this with `doxygen -d commentscan` we see that the `` is in the detailed part and not in the brief part: ``` CommentScanner: D:/speeltuin/issue_7356/bug_csharp_summary/Class1.cs:6 input=[ The base class ] ----------- CommentScanner: D:/speeltuin/issue_7356/bug_csharp_summary/Class1.cs:6 output=[ brief=[line=6 The base class ] docs=[line=6 ] 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 `` 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. --- src/commentscan.l | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/commentscan.l b/src/commentscan.l index 767b964..faaa1fc 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -592,12 +592,10 @@ RCSTAG "$"{ID}":"[^\n$]+"$" addOutput(yyscanner,yytext); } "" { // start of a .NET XML style detailed description - setOutput(yyscanner,OutputBrief); addOutput(yyscanner,yytext); setOutput(yyscanner,OutputDoc); } "" { // end of a brief or detailed description - setOutput(yyscanner,OutputDoc); addOutput(yyscanner,yytext); } -- cgit v0.12