summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-07-14 10:57:07 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-07-14 10:57:07 (GMT)
commit97c4c1178de1a2798e78790617cf4e1835c577db (patch)
treef8a46c53b97ae83ca6c476fbc10e62db7b209883 /src
parentb118de2f38cfcb91888db571b5d9fd1a85731cd5 (diff)
downloadDoxygen-97c4c1178de1a2798e78790617cf4e1835c577db.zip
Doxygen-97c4c1178de1a2798e78790617cf4e1835c577db.tar.gz
Doxygen-97c4c1178de1a2798e78790617cf4e1835c577db.tar.bz2
issue #7124: some code line are missed in the xml file for java
When already in a comment block don't reset the last comment type. Problem also occurs with e.g. C
Diffstat (limited to 'src')
-rw-r--r--src/code.l26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/code.l b/src/code.l
index ad39e0e..c677eb8 100644
--- a/src/code.l
+++ b/src/code.l
@@ -3454,14 +3454,14 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<*>\n{B}*"/*@"[{}] { // remove one-line group marker
if (Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
g_yyLineNr++;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3486,13 +3486,13 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<*>^{B}*"/*@"[{}] { // remove multi-line group marker
if (Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3537,14 +3537,14 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<*>\n{B}*"/*"[!*]/[^/*] {
if (Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
g_yyLineNr++;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3556,13 +3556,13 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<*>^{B}*"/**"[*]+/[^/] { // special C "banner" comment block at a new line
if (Config_getBool(JAVADOC_BANNER) && Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3574,13 +3574,13 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
<*>^{B}*"/*"[!*]/[^/*] { // special C comment block at a new line
if (Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3593,13 +3593,13 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
if (YY_START==SkipString) REJECT;
if (Config_getBool(STRIP_CODE_COMMENTS))
{
- g_lastSpecialCContext = YY_START;
+ if (YY_START != RemoveSpecialCComment) g_lastSpecialCContext = YY_START;
BEGIN(RemoveSpecialCComment);
}
else
{
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}
@@ -3624,7 +3624,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
startFontClass("comment");
g_code->codify(yytext);
// check is to prevent getting stuck in skipping C++ comments
- if (YY_START != SkipCxxComment)
+ if (YY_START != SkipComment && YY_START != SkipCxxComment)
{
g_lastCContext = YY_START ;
}