From 510f342b4d6f61f4ea6f0e7cab5531895bc86a20 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 10 Sep 2018 19:04:05 +0200 Subject: Changed state guard instead of adding pattern check+reject --- src/code.l | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/code.l b/src/code.l index 14a53ff..e5e0361 100644 --- a/src/code.l +++ b/src/code.l @@ -2596,14 +2596,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" generatePHPVariableLink(*g_code,yytext); g_name+=yytext+7; } -{SCOPENAME}{B}*"<"[^\n\/\-\.\{\"\>]*">"("::"{ID})*/{B}* { // A *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; - } +{SCOPENAME}{B}*"<"[^\n\/\-\.\{\"\>\(]*">"("::"{ID})*/{B}* { // A *pt; int i=QCString(yytext).find('<'); QCString kw = QCString(yytext).left(i).stripWhiteSpace(); if (kw.right(5)=="_cast" && YY_START==Body) -- cgit v0.12