Fix parsing of unconventional Doxygen post comments for enum items.
Closes #1715
This commit is contained in:
parent
1cdeb458de
commit
24f75aa481
4 changed files with 76 additions and 2 deletions
|
|
@ -6489,6 +6489,17 @@ enumlist : enumlist_item {
|
|||
}
|
||||
$$ = $1;
|
||||
}
|
||||
| enumlist_item DOXYGENPOSTSTRING COMMA enumlist {
|
||||
if ($4) {
|
||||
set_nextSibling($1, $4);
|
||||
Setattr($1,"_last",Getattr($4,"_last"));
|
||||
Setattr($4,"_last",NULL);
|
||||
} else {
|
||||
Setattr($1,"_last",$1);
|
||||
}
|
||||
set_comment($1, $2);
|
||||
$$ = $1;
|
||||
}
|
||||
| enumlist_item COMMA DOXYGENPOSTSTRING enumlist {
|
||||
if ($4) {
|
||||
set_nextSibling($1, $4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue