summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-05-21 17:52:23 (GMT)
committerGitHub <noreply@github.com>2019-05-21 17:52:23 (GMT)
commit5c9d812083af06c9e683c9ff2e32f5839066863c (patch)
tree7ff5bacf7b93c6c6e37d164534784470481bcae7 /src/code.l
parentebefc53b60276e38270fe19251045b46b285e23d (diff)
parentfaafe83a69d2f3c27daca0974c9a063bdb81ecdc (diff)
downloadDoxygen-5c9d812083af06c9e683c9ff2e32f5839066863c.zip
Doxygen-5c9d812083af06c9e683c9ff2e32f5839066863c.tar.gz
Doxygen-5c9d812083af06c9e683c9ff2e32f5839066863c.tar.bz2
Merge pull request #6957 from cfriedt/feature/cfriedt/6955/allow-javadoc-style-comment-blocks-with-a-doxyfile-variable
Allow Javadoc-style comment blocks with a Doxyfile variable
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/code.l b/src/code.l
index cbcb560..ad39e0e 100644
--- a/src/code.l
+++ b/src/code.l
@@ -3553,6 +3553,24 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
BEGIN(SkipComment);
}
}
+<*>^{B}*"/**"[*]+/[^/] { // special C "banner" comment block at a new line
+ if (Config_getBool(JAVADOC_BANNER) && Config_getBool(STRIP_CODE_COMMENTS))
+ {
+ g_lastSpecialCContext = YY_START;
+ BEGIN(RemoveSpecialCComment);
+ }
+ else
+ {
+ // check is to prevent getting stuck in skipping C++ comments
+ if (YY_START != SkipCxxComment)
+ {
+ g_lastCContext = YY_START ;
+ }
+ startFontClass("comment");
+ g_code->codify(yytext);
+ BEGIN(SkipComment);
+ }
+ }
<*>^{B}*"/*"[!*]/[^/*] { // special C comment block at a new line
if (Config_getBool(STRIP_CODE_COMMENTS))
{