diff options
author | Christopher Friedt <chrisfriedt@gmail.com> | 2019-05-09 01:46:48 (GMT) |
---|---|---|
committer | Christopher Friedt <chrisfriedt@gmail.com> | 2019-05-09 01:46:48 (GMT) |
commit | 77dae25c166c71a57d9ecd64b765bcc616d435ec (patch) | |
tree | 5c0fa329099c685169e7164b67c4d4d50ba96a3d /src/code.l | |
parent | 0de0ecb26b4c53a6b2603cfc6cfb64194131824e (diff) | |
download | Doxygen-77dae25c166c71a57d9ecd64b765bcc616d435ec.zip Doxygen-77dae25c166c71a57d9ecd64b765bcc616d435ec.tar.gz Doxygen-77dae25c166c71a57d9ecd64b765bcc616d435ec.tar.bz2 |
make similar javadoc banner change for stripping special comments from code
Diffstat (limited to 'src/code.l')
-rw-r--r-- | src/code.l | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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)) { |