summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-01 17:33:29 (GMT)
committerGitHub <noreply@github.com>2021-05-01 17:33:29 (GMT)
commit59edaeeed17cc8d7323e1c555c073786feab87db (patch)
tree488e82f28e06abdd001ae0b385c9e1f19db8fafe /src/commentcnv.l
parent77ee20e5b3ac5c8a6360f04f4d19fe681c3ada50 (diff)
parent200c31bf342c533de77fede161e18e395c5ce875 (diff)
downloadDoxygen-59edaeeed17cc8d7323e1c555c073786feab87db.zip
Doxygen-59edaeeed17cc8d7323e1c555c073786feab87db.tar.gz
Doxygen-59edaeeed17cc8d7323e1c555c073786feab87db.tar.bz2
Merge pull request #8509 from albert-github/feature/bug_formula_mj
Problems with some commands in MathJax
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 23611a9..d331fa4 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -438,7 +438,7 @@ SLASHopt [/]*
}
BEGIN(VerbatimCode);
}
-<CComment,ReadLine>[\\@]("f$"|"f["|"f{") {
+<CComment,ReadLine>[\\@]("f$"|"f["|"f{"|"f(") {
copyToOutput(yyscanner,yytext,(int)yyleng);
yyextra->blockName=&yytext[1];
if (yyextra->blockName.at(1)=='[')
@@ -449,6 +449,10 @@ SLASHopt [/]*
{
yyextra->blockName.at(1)='}';
}
+ else if (yyextra->blockName.at(1)=='(')
+ {
+ yyextra->blockName.at(1)=')';
+ }
yyextra->lastCommentContext = YY_START;
BEGIN(Verbatim);
}
@@ -467,7 +471,7 @@ SLASHopt [/]*
<Scan>. { /* any other character */
copyToOutput(yyscanner,yytext,(int)yyleng);
}
-<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}") { /* end of verbatim block */
+<Verbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}"|"f)") { /* end of verbatim block */
copyToOutput(yyscanner,yytext,(int)yyleng);
if (&yytext[1]==yyextra->blockName) // end of formula
{