From 3514452268bf860ac7516185adc0907817ccda97 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 12 Feb 2018 18:24:01 +0100 Subject: 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. --- src/commentscan.l | 6 ++++-- 1 file 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 ); } +. { // ignore other stuff + } "\\"{B}*"\n" { // line continuation yyLineNr++; addOutput('\n'); } -[^\n\\\*]+ { // title (stored in type) +[^\n\*]+ { // title (stored in type) current->type += yytext; current->type = current->type.stripWhiteSpace(); - } + } {DOCNL} { if ( current->groupDocType==Entry::GROUPDOC_NORMAL && current->type.isEmpty() -- cgit v0.12