summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.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/doctokenizer.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/doctokenizer.l')
-rw-r--r--src/doctokenizer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 90f9846..5cf5f02 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -1227,7 +1227,7 @@ REFWORD_NOCV {FILEMASK}|{LABELID}|{REFWORD2_NOCV}|{REFWORD3}|{REFWORD4_NOCV}
/* State for the pass used to find the anchors and sections */
<St_Sections>[^\n@\\<]+
-<St_Sections>"@@"|"\\\\"|"@<"|"\\<"
+<St_Sections>{CMD}("<"|{CMD})
<St_Sections>"<"{CAPTION}({WS}+{ATTRIB})*">" {
QCString tag=yytext;
int s=tag.find("id=");