summaryrefslogtreecommitdiffstats
path: root/src/doctokenizer.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-09-01 09:21:08 (GMT)
committerGitHub <noreply@github.com>2018-09-01 09:21:08 (GMT)
commit8970cd397fdbce240878e88132c1bd7851637f13 (patch)
tree096cb0fc20b1535e7db9ab28c35f404f91104e7a /src/doctokenizer.l
parent3fdf6e52d2f54a5fc0ab0fade6201bc47c16ce9a (diff)
parent7e185a2e25e4bdbac422299f029a68d1c0c70d6e (diff)
downloadDoxygen-8970cd397fdbce240878e88132c1bd7851637f13.zip
Doxygen-8970cd397fdbce240878e88132c1bd7851637f13.tar.gz
Doxygen-8970cd397fdbce240878e88132c1bd7851637f13.tar.bz2
Merge pull request #6388 from albert-github/feature/bug_740046_regression
Section label with minus sign not recognized properly.
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 f5e074c..6c0f13d 100644
--- a/src/doctokenizer.l
+++ b/src/doctokenizer.l
@@ -388,7 +388,7 @@ LNKWORD3 ([0-9a-z_A-Z\-]+("/"|"\\"))*[0-9a-z_A-Z\-]+("."[0-9a-z_A-Z]+)+
CHARWORDQ [^ \t\n\r\\@<>()\[\]:;\?{}&%$#,."=']
ESCWORD ("%"{ID}(("::"|"."){ID})*)|("%'")
CHARWORDQ1 [^ \-+0-9\t\n\r\\@<>()\[\]:;\?{}&%$#,."=']
-WORD1 {ESCWORD}|{CHARWORDQ1}+|"{"|"}"|"'\"'"|("\""[^"\n]*\n?[^"\n]*"\"")
+WORD1 {ESCWORD}|{CHARWORDQ1}{CHARWORDQ}*|"{"|"}"|"'\"'"|("\""[^"\n]*\n?[^"\n]*"\"")
WORD2 "."|","|"("|")"|"["|"]"|":"|";"|"\?"|"="|"'"
WORD1NQ {ESCWORD}|{CHARWORDQ}+|"{"|"}"
WORD2NQ "."|","|"("|")"|"["|"]"|":"|";"|"\?"|"="|"'"