diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-08-11 13:06:22 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-08-11 13:06:22 (GMT) |
commit | 34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634 (patch) | |
tree | ad481e345a35820f0142bb774556afc6de0d00fa /src/commentcnv.l | |
parent | 3583a7c0bea47665a06d14a64b62376eee21c528 (diff) | |
download | Doxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.zip Doxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.tar.gz Doxygen-34cc61be7d0f6dafcaaa5fcdaa98ce4d31014634.tar.bz2 |
Release-1.8.2
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r-- | src/commentcnv.l | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l index 20744e1..6da02db 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -439,6 +439,23 @@ void replaceComment(int offset); { copyToOutput(yytext,(int)yyleng); } + else + { + int l=0; + while (yytext[l]==' ' || yytext[l]=='\t') + { + l++; + } + copyToOutput(yytext,l); + if (yyleng-l==3) // ends with //! or /// + { + copyToOutput(" * ",3); + } + else // ends with // + { + copyToOutput("//",2); + } + } } <Verbatim,VerbatimCode>[^@\/\\\n{}]* { /* any character not a backslash or new line or } */ copyToOutput(yytext,(int)yyleng); @@ -446,10 +463,16 @@ void replaceComment(int offset); <Verbatim,VerbatimCode>\n { /* new line in verbatim block */ copyToOutput(yytext,(int)yyleng); } -<Verbatim,VerbatimCode>^[ \t]*"///" { +<Verbatim>^[ \t]*"///" { if (g_blockName=="dot" || g_blockName=="msc" || g_blockName.at(0)=='f') { // see bug 487871, strip /// from dot images and formulas. + int l=0; + while (yytext[l]==' ' || yytext[l]=='\t') + { + l++; + } + copyToOutput(yytext,l); copyToOutput(" ",3); } else // even slashes are verbatim (e.g. \verbatim, \code) |