Skip to content

Commit ff2900c

Browse files
committed
issue doxygen#11454 Since version 1.12.0 alias tags cause tables to break
The handling of the `\xrefitem` should also end at the end of a table element (start / end of a row / cell / header row / table)
1 parent d2de4b5 commit ff2900c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/commentscan.l

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ static inline const char *getLexerFILE() {return __FILE__;}
572572
CMD ("\\"|"@")
573573
PRE ("pre"|"PRE")
574574
TABLE ("table"|"TABLE")
575+
TABLEDEL ("table"|"tr"|"th"|"td"|"TABLE"|"TR"|"TH"|"TD")
575576
P [pP]
576577
UL ("ul"|"UL")
577578
OL ("ol"|"OL")
@@ -1213,6 +1214,17 @@ STopt [^\n@\\]*
12131214
addOutput(yyscanner,yytext);
12141215
if (*yytext == '\n') yyextra->lineNr++;
12151216
}
1217+
<Comment>"<"[/]?{TABLEDEL}">" { // In case in xrefitem type some special handling is required
1218+
if (yyextra->inContext==OutputXRef)
1219+
{
1220+
setOutput(yyscanner,OutputDoc);
1221+
addOutput(yyscanner,yytext);
1222+
}
1223+
else
1224+
{
1225+
REJECT;
1226+
}
1227+
}
12161228
<Comment>. { // catch-all for anything else
12171229
addOutput(yyscanner,*yytext);
12181230
}

0 commit comments

Comments
 (0)