diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2003-11-03 18:04:43 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2003-11-03 18:04:43 (GMT) |
commit | bfaab3acda7ec81a51a45372673f5be07745773b (patch) | |
tree | 3d4fa775ba4ee12135f2ca20f59e2cb07f3efdf1 /src/scanner.l | |
parent | d5102e6fcbe7c5dcf5b285d39aaa33b85bf34314 (diff) | |
download | Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.zip Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.tar.gz Doxygen-bfaab3acda7ec81a51a45372673f5be07745773b.tar.bz2 |
Release-1.3.4-20031103
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index d70ad39..98a568a 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -672,6 +672,7 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] %x EnumDocArg1 %x FuncPtr %x EndFuncPtr +%x FuncPtrInit %x FuncFunc %x FuncFuncEnd %x FuncFuncType @@ -2643,8 +2644,32 @@ PHPKW ("require"|"require_once"|"include"|"include_once"|"echo")[^a-zA-Z0-9_;] lastCPPContext = YY_START; BEGIN(SkipCPP); } -<FuncQual>"=" { // typically a initialized function pointer +<FuncQual>"=" { // typically an initialized function pointer current->args += *yytext; + BEGIN(FuncPtrInit); + } +<FuncPtrInit>[{;] { + unput(*yytext); + BEGIN(FuncQual); + } +<FuncPtrInit>\" { + current->args += *yytext; + pCopyQuotedString=¤t->args; + lastStringContext=FuncPtrInit; + BEGIN(CopyString); + } +<FuncPtrInit>{CHARLIT} { + current->args += yytext; + } +<FuncPtrInit>{ID} { + current->args += yytext; + } +<FuncPtrInit>. { + current->args += *yytext; + } +<FuncPtrInit>\n { + current->args += *yytext; + yyLineNr++; } <FuncQual>{ID} { // typically a K&R style C function if (checkForKnRstyleC()) |