summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/code.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/code.l b/src/code.l
index 2c9b0ae..14a53ff 100644
--- a/src/code.l
+++ b/src/code.l
@@ -2597,6 +2597,13 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\"
g_name+=yytext+7;
}
<Body,TemplCast>{SCOPENAME}{B}*"<"[^\n\/\-\.\{\"\>]*">"("::"{ID})*/{B}* { // A<T> *pt;
+ if (YY_START==Body)
+ {
+ // check for special case that starts with: operator{B}*<[=]?{B}*(
+ static QRegExp re("operator[ \t]*<[=]?[ \t]*(");
+ QString qq = yytext;
+ if (qq.find(re) == 0) REJECT;
+ }
int i=QCString(yytext).find('<');
QCString kw = QCString(yytext).left(i).stripWhiteSpace();
if (kw.right(5)=="_cast" && YY_START==Body)