summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2002-12-24 19:52:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2002-12-24 19:52:54 (GMT)
commit04dd14e8f14f65481ef7ed7a29e79a30c5fe301d (patch)
tree74b9c804cdbc689945d204f1c854e9bfa1ec5c01 /src/commentcnv.l
parent1a8ff6f0e75b0db2a4ff1f5eb63631c94085b01e (diff)
downloadDoxygen-04dd14e8f14f65481ef7ed7a29e79a30c5fe301d.zip
Doxygen-04dd14e8f14f65481ef7ed7a29e79a30c5fe301d.tar.gz
Doxygen-04dd14e8f14f65481ef7ed7a29e79a30c5fe301d.tar.bz2
Release-1.3-rc2-20021224
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index b0fed8d..4e3e8e3 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -41,7 +41,7 @@ static void replaceCommentMarker(const char *s,int len)
p++;
}
// replace start of comment marker by spaces
- while ((c=*p) && (c=='/' || c=='!'))
+ while ((c=*p) && (c=='/' || c=='!' || c=='#'))
{
g_outBuf->addChar(' ');
p++;
@@ -109,6 +109,12 @@ static int yyread(char *buf,int max_size)
copyToOutput(yytext+i,yyleng-i);
BEGIN(SComment);
}
+<Scan>"//##Documentation".*\n { /* Start of Rational Rose ANSI C++ comment block */
+ int i=17; //=strlen("//##Documentation");
+ copyToOutput("/**",3);
+ copyToOutput(yytext+i,yyleng-i);
+ BEGIN(SComment);
+ }
<Scan>"//".*\n { /* one line C++ comment */
copyToOutput(yytext,yyleng);
}
@@ -180,6 +186,12 @@ static int yyread(char *buf,int max_size)
<SComment>\n[ \t]*"//!".*/\n {
replaceCommentMarker(yytext,yyleng);
}
+<SComment>^[ \t]*"//##".*/\n {
+ replaceCommentMarker(yytext,yyleng);
+ }
+<SComment>\n[ \t]*"//##".*/\n {
+ replaceCommentMarker(yytext,yyleng);
+ }
<SComment>\n { /* end of special comment */
copyToOutput(" */",3);
copyToOutput(yytext,yyleng);