diff options
Diffstat (limited to 'src/commentscan.l')
-rw-r--r-- | src/commentscan.l | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/commentscan.l b/src/commentscan.l index 56c0d08..c7e36a5 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -1101,6 +1101,15 @@ RCSTAG "$"{ID}":"[^\n$]+"$" } addOutput(yytext); } +<Comment>^{B}*([\-:|]{B}*)*("--"|"---")({B}*[\-:|])*{B}*/\n { // horizontal line (dashed) + addOutput(yytext); + } +<Comment>"---" { // mdash + addOutput("—"); + } +<Comment>"--" { // ndash + addOutput("–"); + } <Comment>("."+)[a-z_A-Z0-9\)] { // . at start or in the middle of a word, or ellipsis addOutput(yytext); } |