Skip to content

Commit

Permalink
Consistency for "group" commands
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
albert-github committed Feb 12, 2018
1 parent b6f01ff commit 3514452
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/commentscan.l
Expand Up @@ -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()
Expand Down

0 comments on commit 3514452

Please sign in to comment.