Commit 808b6174 authored by Dimitri van Heesch's avatar Dimitri van Heesch
Browse files

Merge pull request #217 from albert-github/feature/bug_735745

Bug 735745 - Spurious ASSERT message
parents df276369 fff03ab9
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -4671,12 +4671,15 @@ int DocParamList::parse(const QCString &cmdName)
  DBG(("DocParamList::parse() start\n"));
  DBG(("DocParamList::parse() start\n"));
  g_nodeStack.push(this);
  g_nodeStack.push(this);
  DocPara *par=0;
  DocPara *par=0;
  QCString saveCmdName = cmdName;


  int tok=doctokenizerYYlex();
  int tok=doctokenizerYYlex();
  if (tok!=TK_WHITESPACE)
  if (tok!=TK_WHITESPACE)
  {
  {
    warn_doc_error(g_fileName,doctokenizerYYlineno,"expected whitespace after %s command",
    warn_doc_error(g_fileName,doctokenizerYYlineno,"expected whitespace after %s command",
        qPrint(cmdName));
        qPrint(cmdName));
    retval=0;
    goto endparamlist;
  }
  }
  doctokenizerYYsetStateParam();
  doctokenizerYYsetStateParam();
  tok=doctokenizerYYlex();
  tok=doctokenizerYYlex();
@@ -4716,7 +4719,13 @@ int DocParamList::parse(const QCString &cmdName)
    retval=0;
    retval=0;
    goto endparamlist;
    goto endparamlist;
  }
  }
  ASSERT(tok==TK_WHITESPACE);
  if (tok!=TK_WHITESPACE) /* premature end of comment block */
  {
    warn_doc_error(g_fileName,doctokenizerYYlineno,"unexpected token in comment block while parsing the "
        "argument of command %s",qPrint(saveCmdName));
    retval=0;
    goto endparamlist;
  }


  par = new DocPara(this);
  par = new DocPara(this);
  m_paragraphs.append(par);
  m_paragraphs.append(par);