summaryrefslogtreecommitdiffstats
path: root/src/code.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2018-09-10 17:04:05 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2018-09-10 17:04:05 (GMT)
commit510f342b4d6f61f4ea6f0e7cab5531895bc86a20 (patch)
tree01997997d64dfe11353193d1a2ac3009cf9aa2f5 /src/code.l
parent4a2c647d3baa599772f9f7008174d99a80cea876 (diff)
downloadDoxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.zip
Doxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.tar.gz
Doxygen-510f342b4d6f61f4ea6f0e7cab5531895bc86a20.tar.bz2
Changed state guard instead of adding pattern check+reject
Diffstat (limited to 'src/code.l')
-rw-r--r--src/code.l9
1 files changed, 1 insertions, 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;
}
-<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)