summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-07-21 08:42:44 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-07-21 08:42:44 (GMT)
commite2bafacf8c0f6ef0dd7f9f4958a125761bda31ec (patch)
tree0d39615cce00be60a77b797babf9b09b9c6b2a09 /src/commentcnv.l
parent97589008c3ba05a8cc3ffe2dc47f118908c741b6 (diff)
downloadDoxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.zip
Doxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.tar.gz
Doxygen-e2bafacf8c0f6ef0dd7f9f4958a125761bda31ec.tar.bz2
Release-1.4.4
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l19
1 files changed, 15 insertions, 4 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 9e7f8a4..fa72e3f 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -320,18 +320,29 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^' \\\n]{1,4}"'"))
copyToOutput(yytext,yyleng);
BEGIN(CComment);
}
-<CComment>[\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"rtfonly"|"manonly"|"dot"|"code")/[ \r\t\n] { /* start of a verbatim block */
+<CComment>[\\@]("verbatim"|"latexonly"|"htmlonly"|"xmlonly"|"rtfonly"|"manonly"|"dot"|"code"|"f$"|"f[")/[ \r\t\n] { /* start of a verbatim block */
copyToOutput(yytext,yyleng);
- g_blockName=&yytext[1];
+ if (yytext[2]=='[')
+ {
+ g_blockName="f]";
+ }
+ else
+ {
+ g_blockName=&yytext[1];
+ }
g_lastCommentContext = YY_START;
BEGIN(Verbatim);
}
<Scan>. { /* any other character */
copyToOutput(yytext,yyleng);
}
-<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"endrtfonly"|"endmanonly"|"enddot"|"endcode") { /* end of verbatim block */
+<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"endrtfonly"|"endmanonly"|"enddot"|"endcode"|"f$"|"f]") { /* end of verbatim block */
copyToOutput(yytext,yyleng);
- if (&yytext[4]==g_blockName)
+ if (yytext[1]=='f') // end of formula
+ {
+ BEGIN(g_lastCommentContext);
+ }
+ else if (&yytext[4]==g_blockName)
{
BEGIN(g_lastCommentContext);
}