summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-05-18 11:13:48 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-05-18 11:13:48 (GMT)
commit59781ae4ee1937f51836c03bd7c67e1e7be13bfc (patch)
tree1d5931b2cd53306f9ad13f4413dec1225105b39b /src/commentscan.l
parentdf0d9c3df44dbce633c38e99d33be4de06706f7b (diff)
downloadDoxygen-59781ae4ee1937f51836c03bd7c67e1e7be13bfc.zip
Doxygen-59781ae4ee1937f51836c03bd7c67e1e7be13bfc.tar.gz
Doxygen-59781ae4ee1937f51836c03bd7c67e1e7be13bfc.tar.bz2
Bug 663297 - @todo in @param leads to strange confusing message
With the 1.8.14 version the message was: warning: unexpected token in comment block while parsing the argument of command param this is due to the fact that the @todo command is replaced by a \xrefitem command but it was joined directly with the parameter name, adding a space, in the code, solves the problem. In case there was another word (or doxygen command) in front of it the problem does not occur as it \xrefitem is not joined with the parameter name. Similar problem occured with the \endinternal (\internal) command.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index de31b2e..ebfaedb 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -582,7 +582,7 @@ static void addXRefItem(const char *listName,const char *itemTitle,
item->listAnchor = anchorLabel;
docEntry->addSpecialListItem(listName,itemId);
QCString cmdString;
- cmdString.sprintf("\\xrefitem %s %d.",listName,itemId);
+ cmdString.sprintf(" \\xrefitem %s %d.",listName,itemId);
if (inBody)
{
docEntry->inbodyDocs += cmdString;
@@ -1086,7 +1086,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
BEGIN(HtmlComment);
}
<Comment>{B}*{CMD}"endinternal"{B}* {
- addOutput("\\endinternal ");
+ addOutput(" \\endinternal ");
if (!inInternalDocs)
warn(yyFileName,yyLineNr,
"found \\endinternal without matching \\internal"
@@ -1704,7 +1704,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
/* ----- handle arguments of the section/subsection/.. commands ------- */
-<SectionLabel>{LABELID} { // first argyment
+<SectionLabel>{LABELID} { // first argument
g_sectionLabel=yytext;
addOutput(yytext);
g_sectionTitle.resize(0);
@@ -2038,7 +2038,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
}
}
<SkipInternal>[@\\]"endinternal"[ \t]* {
- addOutput("\\endinternal ");
+ addOutput(" \\endinternal ");
BEGIN(Comment);
}
<SkipInternal>[^ \\@\n]+ { // skip non-special characters
@@ -2209,7 +2209,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
/* ----- handle arguments of the cite command ------- */
-<CiteLabel>{CITEID} { // found argyment
+<CiteLabel>{CITEID} { // found argument
addCite();
addOutput(yytext);
BEGIN(Comment);
@@ -2770,7 +2770,7 @@ static bool handleInternal(const QCString &)
else
{
// re-enabled for bug640828
- addOutput("\\internal ");
+ addOutput(" \\internal ");
inInternalDocs = TRUE;
}
return FALSE;