From eb193634226ed778dbf5f27f21c6c459213f6158 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 20 May 2013 19:51:13 +0200 Subject: Bug 700709 - typedef warning when "using" some operator functions --- src/scanner.l | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/scanner.l b/src/scanner.l index 6bbf1c4..9a3d27f 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -624,6 +624,11 @@ IDLATTR ("["[^\]]*"]"){BN}* TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) RAWBEGIN (u|U|L|u8)?R\"[^ \t\(\)\\]{0,16}"(" RAWEND ")"[^ \t\(\)\\]{0,16}\" +ARITHOP "+"|"-"|"/"|"*"|"%"|"--"|"++" +ASSIGNOP "="|"*="|"/="|"%="|"+="|"-="|"<<="|">>="|"&="|"^="|"|=" +LOGICOP "=="|"!="|">"|"<"|">="|"<="|"&&"|"||"|"!" +BITOP "&"|"|"|"^"|"<<"|">>"|"~" +OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) %option noyywrap @@ -1938,7 +1943,7 @@ RAWEND ")"[^ \t\(\)\\]{0,16}\" BEGIN(Using); } "namespace"{BN}+ { lineCount(); BEGIN(UsingDirective); } -{ID}{BN}*({BN}*("::"|"."){BN}*{ID})* { +({ID}{BN}*("::"|"."){BN}*)*({ID}|{OPERATOR}) { lineCount(); current->name=yytext; current->fileName = yyFileName; -- cgit v0.12