summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-11-03 18:04:43 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-11-03 18:04:43 (GMT)
commitbfaab3acda7ec81a51a45372673f5be07745773b (patch)
tree3d4fa775ba4ee12135f2ca20f59e2cb07f3efdf1 /src/scanner.l
parentd5102e6fcbe7c5dcf5b285d39aaa33b85bf34314 (diff)
downloadDoxygen-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.l27
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=&current->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())