summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2020-12-22 18:39:47 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2020-12-22 18:39:47 (GMT)
commitd590014ca419847f932fc7074794e0a1f1e18110 (patch)
treeefa70569a94b31b0f75e12f0acabcf3d316616dc
parentc65daff57d905a2b89bde059e7ccf5ed26584116 (diff)
downloadDoxygen-d590014ca419847f932fc7074794e0a1f1e18110.zip
Doxygen-d590014ca419847f932fc7074794e0a1f1e18110.tar.gz
Doxygen-d590014ca419847f932fc7074794e0a1f1e18110.tar.bz2
Fixed more issues handling Java nested generic classes (part 2)
-rw-r--r--src/doxygen.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/doxygen.cpp b/src/doxygen.cpp
index de1546f..f13a4a8 100644
--- a/src/doxygen.cpp
+++ b/src/doxygen.cpp
@@ -4232,8 +4232,12 @@ static int findTemplateSpecializationPosition(const char *name)
{
case '>': if (!insideQuote) count++; break;
case '<': if (!insideQuote) count--; break;
- case '\'': if (!insideQuote) insideQuote=c; else if (i<0 || name[i]!='\\') insideQuote=0; break;
- case '"': if (!insideQuote) insideQuote=c; else if (i<0 || name[i]!='\\') insideQuote=0; break;
+ case '\'': if (!insideQuote) insideQuote=c;
+ else if (insideQuote==c && (i<0 || name[i]!='\\')) insideQuote=0;
+ break;
+ case '"': if (!insideQuote) insideQuote=c;
+ else if (insideQuote==c && (i<0 || name[i]!='\\')) insideQuote=0;
+ break;
default: break;
}
}