From 7e185a2e25e4bdbac422299f029a68d1c0c70d6e Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 10 Jul 2018 15:11:10 +0200 Subject: Section label with minus sign not recognized properly. This is a regression on: Bug 740046 - Negative sign in -Foo::Bar ruins hyperlink in generated output only the first character is has to be handled in the new way. (Reference to old github pull request #704 and issue #5677) --- src/doctokenizer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doctokenizer.l b/src/doctokenizer.l index e6b8865..590bbe1 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 "."|","|"("|")"|"["|"]"|":"|";"|"\?"|"="|"'" -- cgit v0.12