summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-09-07 12:29:53 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-09-07 12:29:53 (GMT)
commit81da20ff839843634ee6db5f517bfcb7ef87d4b9 (patch)
treed74c1430a9fe17868f8ff3cccf1783c1b366895a
parent4908c39f8bd18556f868bcc70d3f2f6ff0296c8e (diff)
downloadDoxygen-81da20ff839843634ee6db5f517bfcb7ef87d4b9.zip
Doxygen-81da20ff839843634ee6db5f517bfcb7ef87d4b9.tar.gz
Doxygen-81da20ff839843634ee6db5f517bfcb7ef87d4b9.tar.bz2
issue #6715: Errorneous matching of the immediately following block command after @ref (try 2)
-rw-r--r--src/commentscan.l5
-rw-r--r--src/doctokenizer.l4
2 files changed, 2 insertions, 7 deletions
diff --git a/src/commentscan.l b/src/commentscan.l
index 027f000..a495c5e 100644
--- a/src/commentscan.l
+++ b/src/commentscan.l
@@ -2720,11 +2720,6 @@ static bool handleCite(const QCString &s, const QCStringList &)
static bool handleFormatBlock(const QCString &s, const QCStringList &optList)
{
- if (!g_spaceBeforeCmd.isEmpty())
- {
- addOutput(g_spaceBeforeCmd);
- g_spaceBeforeCmd.resize(0);
- }
if (optList.isEmpty())
{
addOutput("@"+s+" ");
diff --git a/src/doctokenizer.l b/src/doctokenizer.l
index 6c02bcf..311e445 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -353,8 +353,8 @@ ATTRNAME [a-z_A-Z\x80-\xFF][a-z_A-Z0-9\x80-\xFF\-]*
ATTRIB {ATTRNAME}{WS}*("="{WS}*(("\""[^\"]*"\"")|("'"[^\']*"'")|[^ \t\r\n'"><]+))?
URLCHAR [a-z_A-Z0-9\!\~\,\:\;\'\$\?\@\&\%\#\.\-\+\/\=]
URLMASK ({URLCHAR}+([({]{URLCHAR}*[)}])?)+
-FILESCHAR [a-z_A-Z0-9\\:\\\/\-\+@&#]
-FILEECHAR [a-z_A-Z0-9\-\+@&#]
+FILESCHAR [a-z_A-Z0-9\\:\\\/\-\+&#]
+FILEECHAR [a-z_A-Z0-9\-\+&#]
HFILEMASK ("."{FILESCHAR}*{FILEECHAR}+)+
FILEMASK ({FILESCHAR}*{FILEECHAR}+("."{FILESCHAR}*{FILEECHAR}+)*)|{HFILEMASK}
LINKMASK [^ \t\n\r\\@<&${}]+("("[^\n)]*")")?({BLANK}*("const"|"volatile"){BLANK}+)?