Skip to content

Commit 26b5403

Browse files
committed
Small consistency improvement
Small consistency improvement
1 parent 33a89a6 commit 26b5403

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/commentscan.l

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ STopt [^\n@\\]*
14991499
15001500
/* --------- handle arguments of {def,add,weak}group commands --------- */
15011501
1502-
<GroupDocArg1>{LABELID}(".html"?) { // group name
1502+
<GroupDocArg1>{LABELID}(".html"|".xhtml")? { // group name
15031503
yyextra->current->name = yytext;
15041504
//lastDefGroup.groupname = yytext;
15051505
//lastDefGroup.pri = yyextra->current->groupingPri();
@@ -1508,6 +1508,10 @@ STopt [^\n@\\]*
15081508
{
15091509
yyextra->current->name=yyextra->current->name.left(yyextra->current->name.length()-5);
15101510
}
1511+
else if (yyextra->current->name.endsWith(".xhtml"))
1512+
{
1513+
yyextra->current->name=yyextra->current->name.left(yyextra->current->name.length()-6);
1514+
}
15111515
yyextra->current->type.clear();
15121516
BEGIN(GroupDocArg2);
15131517
}

0 commit comments

Comments
 (0)