summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-07-12 15:32:41 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-07-12 15:32:41 (GMT)
commita9862d8487c3abbf3edccc78e177874f4186c822 (patch)
tree84ec1ff38937e82a2dfe563fc2d140bc337ffd7f /src/commentcnv.l
parentf397aa6aa3e425c97c7bff085ea1aff7b479d7e8 (diff)
downloadDoxygen-a9862d8487c3abbf3edccc78e177874f4186c822.zip
Doxygen-a9862d8487c3abbf3edccc78e177874f4186c822.tar.gz
Doxygen-a9862d8487c3abbf3edccc78e177874f4186c822.tar.bz2
Release-1.8.1.2
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l60
1 files changed, 2 insertions, 58 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 689c274..869b122 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -195,64 +195,6 @@ static void endCondSection()
}
}
-#if 0
-/** remove and executes cond and endcond commands in \a s */
-static QCString handleCondCmdInAliases(const QCString &s)
-{
- QCString result;
- //printf("handleCondCmdInAliases(%s)\n",s.data());
- static QRegExp cmdPat("[\\\\@][a-z_A-Z][a-z_A-Z0-9]*");
- int p=0,i,l;
- while ((i=cmdPat.match(s,p,&l))!=-1)
- {
- result+=s.mid(p,i-p);
- QCString cmd = s.mid(i+1,l-1);
- //printf("Found command %s\n",cmd.data());
- if (cmd=="cond")
- {
- int sp=i+l,ep;
- const char *arg=s.data()+sp;
- char c;
- // skip spaces
- while ((c=*arg) && (c==' ' || c=='\t')) arg++,sp++;
- // read argument
- if (*arg=='\n') // no arg
- {
- startCondSection(" ");
- ep=sp;
- }
- else // get argument
- {
- ep=sp;
- while ((c=*arg) && isId(c)) arg++,ep++;
- if (ep>sp)
- {
- QCString id = s.mid(sp,ep-sp);
- //printf("Found conditional section id %s\n",id.data());
- startCondSection(id);
- }
- else // invalid identifier
- {
- }
- }
- p=ep;
- }
- else if (cmd=="endcond")
- {
- endCondSection();
- p=i+l;
- }
- else
- {
- result+=s.mid(i,l);
- p=i+l;
- }
- }
- result+=s.right(s.length()-p);
- return result;
-}
-#endif
-
/** copies string \a s with length \a len to the output, while
* replacing any alias commands found in the string.
*/
@@ -608,6 +550,7 @@ void replaceComment(int offset);
BEGIN(Scan);
}
}
+ /* removed for bug 674842 (bug was introduced in rev 768)
<CComment>"'" {
g_charContext = YY_START;
copyToOutput(yytext,(int)yyleng);
@@ -618,6 +561,7 @@ void replaceComment(int offset);
copyToOutput(yytext,(int)yyleng);
BEGIN(SkipString);
}
+ */
<CComment>. {
copyToOutput(yytext,(int)yyleng);
}