Skip to content

Commit f0ce901

Browse files
committed
Spurious asterisk after preprocessing when using macros
When having something like: ``` typedef PACK(enum { ENUMA, /**< @brief The asterisk character at the beginning of the next line is not removed, but * becomes part of the documentation. */ }) my_enum_t; ``` and a `PREDEFINED `PACK` this leads to an `*` in the output before the word "becomes. This is due to the, incorrect, joining of lines in case of a multi line block of comment.
1 parent 6d8bb9c commit f0ce901

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pre.l

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,8 @@ WSopt [ \t\r]*
928928
BEGIN(FindDefineArgs);
929929
}
930930
<ArgCopyCComment>\n {
931-
yyextra->defArgsStr+=' ';
931+
yyextra->defArgsStr+=yytext;
932932
yyextra->yyLineNr++;
933-
outputChar(yyscanner,'\n');
934933
}
935934
<ArgCopyCComment>. {
936935
yyextra->defArgsStr+=yytext;

0 commit comments

Comments
 (0)