summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-02-12 17:24:01 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-02-12 17:24:01 (GMT)
commit3514452268bf860ac7516185adc0907817ccda97 (patch)
tree4c63d5b7a82a4e34cdd9d2d01dffb205951b74b2 /src/commentscan.l
parentb6f01ff09b17e5c2288f2418ef0a8f074456c357 (diff)
downloadDoxygen-3514452268bf860ac7516185adc0907817ccda97.zip
Doxygen-3514452268bf860ac7516185adc0907817ccda97.tar.gz
Doxygen-3514452268bf860ac7516185adc0907817ccda97.tar.bz2
Consistency for "group" commands
When a non-recognized character appears in a group-command id this is echoed to the console as the default (lex-)rule will be used. This patch ignores these characters, furthermore in case of a \ in the description this is shown in the output as well.
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 588d40a..a0f0361 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1517,14 +1517,16 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
if (*yytext=='\n') yyLineNr++;
BEGIN( Comment );
}
+<GroupDocArg1>. { // ignore other stuff
+ }
<GroupDocArg2>"\\"{B}*"\n" { // line continuation
yyLineNr++;
addOutput('\n');
}
-<GroupDocArg2>[^\n\\\*]+ { // title (stored in type)
+<GroupDocArg2>[^\n\*]+ { // title (stored in type)
current->type += yytext;
current->type = current->type.stripWhiteSpace();
- }
+ }
<GroupDocArg2>{DOCNL} {
if ( current->groupDocType==Entry::GROUPDOC_NORMAL &&
current->type.isEmpty()