Commit 96efae32 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 720046 - Document inline objective-C blocks

parent aa01d206
...@@ -1176,13 +1176,27 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) ...@@ -1176,13 +1176,27 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
} }
*/ */
<ObjCParams>"(" { <ObjCParams>"(" {
BEGIN( ObjCParamType ); roundCount=0;
} current->argList->getLast()->type.resize(0);
<ObjCParamType>[^)]* { BEGIN( ObjCParamType );
current->argList->getLast()->type=QCString(yytext).stripWhiteSpace(); }
} <ObjCParamType>"(" {
roundCount++;
current->argList->getLast()->type+=yytext;
}
<ObjCParamType>")"/{B}* { <ObjCParamType>")"/{B}* {
BEGIN( ObjCParams ); if (roundCount<=0)
{
BEGIN( ObjCParams );
}
else
{
current->argList->getLast()->type+=yytext;
roundCount--;
}
}
<ObjCParamType>[^()]* {
current->argList->getLast()->type+=QCString(yytext).stripWhiteSpace();
} }
<ObjCMethod,ObjCParams>";" { // end of method declaration <ObjCMethod,ObjCParams>";" { // end of method declaration
if (current->argList->getLast() && current->argList->getLast()->type.isEmpty()) if (current->argList->getLast() && current->argList->getLast()->type.isEmpty())
...@@ -1193,7 +1207,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) ...@@ -1193,7 +1207,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
//printf("argList=%s\n",current->args.data()); //printf("argList=%s\n",current->args.data());
unput(';'); unput(';');
BEGIN( Function ); BEGIN( Function );
} }
<ObjCMethod,ObjCParams>(";"{BN}+)?"{" { // start of a method body <ObjCMethod,ObjCParams>(";"{BN}+)?"{" { // start of a method body
lineCount(); lineCount();
//printf("Type=%s Name=%s args=%s\n", //printf("Type=%s Name=%s args=%s\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment