summaryrefslogtreecommitdiffstats
path: root/src/commentcnv.l
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-04-26 07:22:50 (GMT)
committerGitHub <noreply@github.com>2020-04-26 07:22:50 (GMT)
commitd52e170500d1f532b8c45fcf5947d4d1e805febb (patch)
tree40d680f8f4ea37bb3ab1bb1e5cee4fea75be47f4 /src/commentcnv.l
parent869f979013dab134ff5292fec21c7610516d514d (diff)
downloadDoxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.zip
Doxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.tar.gz
Doxygen-d52e170500d1f532b8c45fcf5947d4d1e805febb.tar.bz2
Inconsistent behavior between `///` and `//!` for formulas (#7726)
When we have code like: ``` //! //! \f$a \times //! c \f$ //! ``` this will throw a warning like: ``` warning: End of comment block while inside formula. ``` due to the fact that after the comment conversion the code is like: ``` /** * \f$a \times //! c \f$ * */ ``` Comparing to the `///` comments: ``` /// /// \f$a \times /// c \f$ /// ``` we get ``` /** * \f$a \times c \f$ * */ ``` This discrepancy has been removed.
Diffstat (limited to 'src/commentcnv.l')
-rw-r--r--src/commentcnv.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commentcnv.l b/src/commentcnv.l
index 59d1a8b..63ecaaf 100644
--- a/src/commentcnv.l
+++ b/src/commentcnv.l
@@ -488,7 +488,7 @@ MAILADR ("mailto:")?[a-z_A-Z0-9.+-]+"@"[a-z_A-Z0-9-]+("."[a-z_A-Z0-9\-]+)+[a-z
<Verbatim,VerbatimCode>\n { /* new line in verbatim block */
copyToOutput(yyscanner,yytext,(int)yyleng);
}
-<Verbatim>^[ \t]*"///" {
+<Verbatim>^[ \t]*"//"[/!] {
if (yyextra->blockName=="dot" || yyextra->blockName=="msc" || yyextra->blockName=="uml" || yyextra->blockName.at(0)=='f')
{
// see bug 487871, strip /// from dot images and formulas.