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

Bug 720046 - Document inline objective-C blocks

parent aa01d206
Loading
Loading
Loading
Loading
+21 −7
Original line number Original line Diff line number Diff line
@@ -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())
					  {
					  {