diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-09-10 17:04:05 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2018-09-10 17:04:05 (GMT) |
commit | 510f342b4d6f61f4ea6f0e7cab5531895bc86a20 (patch) | |
tree | 01997997d64dfe11353193d1a2ac3009cf9aa2f5 | |
parent | 4a2c647d3baa599772f9f7008174d99a80cea876 (diff) | |
download | Doxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.zip Doxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.tar.gz Doxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.tar.bz2 |
Changed state guard instead of adding pattern check+reject
-rw-r--r-- | src/code.l | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -2596,14 +2596,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" generatePHPVariableLink(*g_code,yytext); 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; - } +<Body,TemplCast>{SCOPENAME}{B}*"<"[^\n\/\-\.\{\"\>\(]*">"("::"{ID})*/{B}* { // A<T> *pt; int i=QCString(yytext).find('<'); QCString kw = QCString(yytext).left(i).stripWhiteSpace(); if (kw.right(5)=="_cast" && YY_START==Body) |