diff options
Diffstat (limited to 'src')
-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; } } |