From 622d18637f9d633b184e43fd3594b661cf4e9375 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 24 Jan 2016 11:30:24 +0100 Subject: Bug 761007 - Spaces between the closing bracket of the typename and the opening bracket of the parameter list cause detection issues. Adding possibility to have spaces between ) and ( --- src/scanner.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scanner.l b/src/scanner.l index ea7d7ef..9ccd628 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -4234,7 +4234,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) . { current->type += *yytext; } -"("/{BN}*{ID}{BN}*"*"{BN}*{ID}*")(" { // for catching typedef void (__stdcall *f)() like definitions +"("/{BN}*{ID}{BN}*"*"{BN}*{ID}*")"{BN}*"(" { // for catching typedef void (__stdcall *f)() like definitions if (current->type.left(7)=="typedef" && current->bodyLine==-1) // the bodyLine check is to prevent this guard to be true more than once { -- cgit v0.12