summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-10-04 10:05:52 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-10-04 10:05:52 (GMT)
commit64f6dd32f9c0d0d98bb70dac76af684c608d7dda (patch)
tree5757b30079d460776643b4d008a6532a67e55339 /src/doctokenizer.l
parent21bc8b5077ff95c823f9633f81c0738c271219bd (diff)
downloadDoxygen-64f6dd32f9c0d0d98bb70dac76af684c608d7dda.zip
Doxygen-64f6dd32f9c0d0d98bb70dac76af684c608d7dda.tar.gz
Doxygen-64f6dd32f9c0d0d98bb70dac76af684c608d7dda.tar.bz2
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
Diffstat (limited to 'src/doctokenizer.l')
-rw-r--r--src/doctokenizer.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index c20ae1a..c91b31e 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -439,6 +439,7 @@ REFWORD4_NOCV (({SCOPEPRE}*"operator"{OPMASKOP2})|(("::"|"#"){SCOPEPRE}*"operat
REFWORD4 {REFWORD4_NOCV}{CVSPEC}?
REFWORD {FILEMASK}|{LABELID}|{REFWORD2}|{REFWORD3}|{REFWORD4}
REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
+RCSID "$"("Author"|"Date"|"Header"|"Id"|"Locker"|"Log"|"Name"|"RCSfile"|"Revision"|"Source"|"State")":"[^:\n$][^\n$]*"$"
%option noyywrap
%option yylineno
@@ -681,7 +682,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
g_token->name=yytext;
return TK_WORD;
}
-<St_Para>"$"{ID}":"[^:\n$][^\n$]*"$" { /* RCS tag */
+<St_Para>{RCSID} { /* RCS tag */
QCString tagName(yytext+1);
int index=tagName.find(':');
g_token->name = tagName.left(index);