summaryrefslogtreecommitdiffstats
path: root/src/commentscan.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-01-26 15:29:45 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-01-26 15:29:45 (GMT)
commite41ae81c3d3232111db340a7c11b7e8203e3bfce (patch)
tree37f31e6ab2e887932c8859b06cb716945c49f779 /src/commentscan.l
parentafc77213ab3662f3a7377af94d77ebee1f972bb7 (diff)
downloadDoxygen-e41ae81c3d3232111db340a7c11b7e8203e3bfce.zip
Doxygen-e41ae81c3d3232111db340a7c11b7e8203e3bfce.tar.gz
Doxygen-e41ae81c3d3232111db340a7c11b7e8203e3bfce.tar.bz2
issue #6796 Bad link to section, subsection if pointing at item past suspicious text
To escape `\` and `@` not only `\\` and `@@` should be possible but also `\@` and `@\`
Diffstat (limited to 'src/commentscan.l')
-rw-r--r--src/commentscan.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index c656c9e..0ca293c 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -1181,7 +1181,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
addOutput(yytext);
}
}
-<Comment>{B}*("\\\\"|"@@")"f"[$\[{] { // escaped formula command
+<Comment>{B}*({CMD}{CMD})"f"[$\[{] { // escaped formula command
addOutput(yytext);
}
<Comment>{B}*{CMD}"~"[a-z_A-Z-]* { // language switch command
@@ -1805,7 +1805,7 @@ RCSTAG "$"{ID}":"[^\n$]+"$"
g_sectionTitle+=yytext;
addOutput(yytext);
}
-<SectionTitle>("\\\\"|"@@"){ID} { // unescape escaped command
+<SectionTitle>({CMD}{CMD}){ID} { // unescape escaped command
g_sectionTitle+=&yytext[1];
addOutput(yytext);
}