Fix syntax error parsing of Doxygen comments after last enum item
It is unconventional to have a doxygen comment after an enum item. It is attached to the previous, that is, the enum item to match Doxygen behaviour. Closes #1609
This commit is contained in:
parent
24f75aa481
commit
f7b4127310
4 changed files with 32 additions and 0 deletions
|
|
@ -6479,6 +6479,11 @@ enumlist : enumlist_item {
|
|||
set_comment($1, $2);
|
||||
$$ = $1;
|
||||
}
|
||||
| enumlist_item DOXYGENSTRING {
|
||||
Setattr($1, "_last", $1);
|
||||
set_comment($1, $2);
|
||||
$$ = $1;
|
||||
}
|
||||
| enumlist_item COMMA enumlist {
|
||||
if ($3) {
|
||||
set_nextSibling($1, $3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue