diff options
author | albert-github <albert.tests@gmail.com> | 2021-01-22 12:24:41 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2021-01-22 12:24:41 (GMT) |
commit | f80f7dcce014b42adcbb5d6d6534fa766a0b9219 (patch) | |
tree | a555410662ddbef220a3d741ac0c645149a28ab4 | |
parent | bb379a38de9fd6afac1fa32e93f2ca2e90433a9d (diff) | |
download | Doxygen-f80f7dcce014b42adcbb5d6d6534fa766a0b9219.zip Doxygen-f80f7dcce014b42adcbb5d6d6534fa766a0b9219.tar.gz Doxygen-f80f7dcce014b42adcbb5d6d6534fa766a0b9219.tar.bz2 |
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.
-rw-r--r-- | src/commentscan.l | 2 |
1 files changed, 0 insertions, 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); } <Comment>"</summary>" { // start of a .NET XML style detailed description - setOutput(yyscanner,OutputBrief); addOutput(yyscanner,yytext); setOutput(yyscanner,OutputDoc); } <Comment>"</remarks>" { // end of a brief or detailed description - setOutput(yyscanner,OutputDoc); addOutput(yyscanner,yytext); } |