diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-04-13 09:33:52 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-04-13 09:33:52 (GMT) |
commit | 385b87e08c23b1392d0e6d6fbdb6ef463fa28477 (patch) | |
tree | 33f9e024a69a755aaf7d3c2cec778648f6f4009a /src/commentscan.l | |
parent | 4ccfb9efa8382de50dfc5b176cb147fd1b05870c (diff) | |
download | Doxygen-385b87e08c23b1392d0e6d6fbdb6ef463fa28477.zip Doxygen-385b87e08c23b1392d0e6d6fbdb6ef463fa28477.tar.gz Doxygen-385b87e08c23b1392d0e6d6fbdb6ef463fa28477.tar.bz2 |
Added support for \-- and \--- to prevent interpretation as ndash and mdash
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 4b25dff..bd20bf0 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1200,6 +1200,12 @@ RCSTAG "$"{ID}":"[^\n$]+"$" <Comment>^{B}*([\-:|]{B}*)*("--"|"---")({B}*[\-:|])*{B}*/\n { // horizontal line (dashed) addOutput(yytext); } +<Comment>{CMD}"---" { // escaped mdash + addOutput(yytext); + } +<Comment>{CMD}"--" { // escaped mdash + addOutput(yytext); + } <Comment>"---" { // mdash addOutput(insidePre || Doxygen::markdownSupport ? yytext : "—"); } |