diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-22 18:39:47 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2020-12-22 18:39:47 (GMT) |
commit | d590014ca419847f932fc7074794e0a1f1e18110 (patch) | |
tree | efa70569a94b31b0f75e12f0acabcf3d316616dc /src/doxygen.cpp | |
parent | c65daff57d905a2b89bde059e7ccf5ed26584116 (diff) | |
download | Doxygen-d590014ca419847f932fc7074794e0a1f1e18110.zip Doxygen-d590014ca419847f932fc7074794e0a1f1e18110.tar.gz Doxygen-d590014ca419847f932fc7074794e0a1f1e18110.tar.bz2 |
Fixed more issues handling Java nested generic classes (part 2)
Diffstat (limited to 'src/doxygen.cpp')
-rw-r--r-- | src/doxygen.cpp | 8 |
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; } } |