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

Bug 720046 - Document inline objective-C blocks

parent aa01d206
...@@ -1176,14 +1176,28 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP}) ...@@ -1176,14 +1176,28 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
} }
*/ */
<ObjCParams>"(" { <ObjCParams>"(" {
roundCount=0;
current->argList->getLast()->type.resize(0);
BEGIN( ObjCParamType ); BEGIN( ObjCParamType );
} }
<ObjCParamType>[^)]* { <ObjCParamType>"(" {
current->argList->getLast()->type=QCString(yytext).stripWhiteSpace(); roundCount++;
current->argList->getLast()->type+=yytext;
} }
<ObjCParamType>")"/{B}* { <ObjCParamType>")"/{B}* {
if (roundCount<=0)
{
BEGIN( ObjCParams ); 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())
{ {
......
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