summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-05-07 18:20:12 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-05-07 18:20:12 (GMT)
commit0674d909555d4b1fe1e000425195ef33b00fe1a5 (patch)
tree2d15670fa3b1c4279e9d9439de2606f91f865d8b /src/commentcnv.l
parent6f84cba4db755b69633ad66f6efbbaf94ca8df81 (diff)
downloadDoxygen-0674d909555d4b1fe1e000425195ef33b00fe1a5.zip
Doxygen-0674d909555d4b1fe1e000425195ef33b00fe1a5.tar.gz
Doxygen-0674d909555d4b1fe1e000425195ef33b00fe1a5.tar.bz2
Release-1.4.6-20060507
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index c60a137..cf22972 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -2,7 +2,7 @@
*
*
*
- * Copyright (C) 1997-2005 by Dimitri van Heesch.
+ * Copyright (C) 1997-2006 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
@@ -329,21 +329,24 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
g_blockName=&yytext[1];
BEGIN(VerbatimCode);
}
-<CComment,ReadLine>[\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"rtfonly"|"manonly"|"f$"|"f["|"f{"[a-z]*)/[^a-z_A-Z0-9] { /* start of a verbatim block */
+<CComment,ReadLine>[\\@]("f$"|"f["|"f{"[a-z]*) {
copyToOutput(yytext,yyleng);
- if (yytext[2]=='[')
- {
- g_blockName="f]";
- }
- else if (yytext[2]=='{')
+ g_blockName=&yytext[1];
+ if (g_blockName.at(1)=='[')
{
- g_blockName="f}";
+ g_blockName.at(1)=']';
}
- else
+ else if (g_blockName.at(1)=='{')
{
- g_blockName=&yytext[1];
+ g_blockName.at(1)='}';
}
g_lastCommentContext = YY_START;
+ BEGIN(Verbatim);
+ }
+<CComment,ReadLine>[\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"rtfonly"|"manonly")/[^a-z_A-Z0-9] { /* start of a verbatim block */
+ copyToOutput(yytext,yyleng);
+ g_blockName=&yytext[1];
+ g_lastCommentContext = YY_START;
BEGIN(Verbatim);
}
<Scan>. { /* any other character */