Skip to content

Commit 64f6dd3

Browse files
committed
Incorrect recognition as RCS tag
When we have a, stripped down, example like: ``` \mainpage the page <tt>$PATH:</tt>$x86$<tt>bin</tt> ``` we get the warning like: ``` aa.md:4: warning: end of comment block while expecting command </tt> ``` this is due to the fact that `$PATH:</tt>$` is seen as a RCS tag although `PATH` is not a RCS keyword. Limiting the number of allowed keywords to the real RCS tags (for CVS the list is the same). See also: - https://www.gnu.org/software/trans-coord/manual/cvs/cvs.html#Keyword-substitution - https://www.gnu.org/software/rcs/manual/rcs.html#Keywords
1 parent 21bc8b5 commit 64f6dd3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/doctokenizer.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ REFWORD4_NOCV (({SCOPEPRE}*"operator"{OPMASKOP2})|(("::"|"#"){SCOPEPRE}*"operat
439439
REFWORD4 {REFWORD4_NOCV}{CVSPEC}?
440440
REFWORD {FILEMASK}|{LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
441441
REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
442+
RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revision"|"Source"|"State")":"[^:\n$][^\n$]*"$"
442443

443444
%option noyywrap
444445
%option yylineno
@@ -681,7 +682,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
681682
g_token->name=yytext;
682683
return TK_WORD;
683684
}
684-
<St_Para>"$"{ID}":"[^:\n$][^\n$]*"$" { /* RCS tag */
685+
<St_Para>{RCSID} { /* RCS tag */
685686
QCString tagName(yytext+1);
686687
int index=tagName.find(':');
687688
g_token->name = tagName.left(index);

0 commit comments

Comments
 (0)