diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-09-15 19:55:15 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2002-09-15 19:55:15 (GMT) |
commit | 8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105 (patch) | |
tree | 80bc5b8e1fe89bbf6bd2fbbf2c640eb73313f626 /src/scanner.l | |
parent | 0503d26ad7375502459a05a3bb6ff67f1223a77f (diff) | |
download | Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.zip Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.tar.gz Doxygen-8d986f5d3a2a40e40d2c9f584f921ed4cc4dd105.tar.bz2 |
Release-1.2.17-20020915
Diffstat (limited to 'src/scanner.l')
-rw-r--r-- | src/scanner.l | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/scanner.l b/src/scanner.l index c2710e4..d4754fa 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -282,10 +282,10 @@ static void addSection() { //printf("New section pageName=%s label=%s title=%s\n", // current->name.data(),sectionLabel.data(),sectionTitle.data()); - if (current->name.isEmpty() || current->section != Entry::PAGEDOC_SEC) + if (current->name.isEmpty() /*|| current->section != Entry::PAGEDOC_SEC */) { - warn(yyFileName,yyLineNr,"Warning: found section or anchor with label `%s' " - "outside of \\page context!\n",sectionLabel.data()); + //warn(yyFileName,yyLineNr,"Warning: found section or anchor with label `%s' " + // "outside of \\page context!\n",sectionLabel.data()); return; } if (sectionLabel.isEmpty()) return; @@ -453,6 +453,7 @@ static void addSpecialItem(const char *listName) ASSERT(item!=0); item->text += " <p>"; item->text += current->brief; + //printf("%s: text +=%s\n",listName,item->text.data()); } else // new item { @@ -473,6 +474,7 @@ static void addSpecialItem(const char *listName) sectionLabel=anchorLabel; addSection(); current->name = tmpName; + //printf("%s: text %s doc %s\n",listName,item->text.data(),cmdString.data()); } current->brief = slString.copy(); // restore orginial brief desc. } @@ -3223,6 +3225,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) current->section = Entry::MAINPAGEDOC_SEC; current->fileName = yyFileName; current->startLine = yyLineNr; + current->name = "mainpage"; BEGIN( PageDocArg2 ); } <Doc,JavaDoc>{B}*{CMD}"file"{B}* { @@ -3517,6 +3520,14 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) sectionType=SectionInfo::Subsection; BEGIN(SectionLabel); } +<PageDoc>{CMD}"subsubsection"{B}+ { + sectionType=SectionInfo::Subsubsection; + BEGIN(SectionLabel); + } +<PageDoc>{CMD}"paragraph"{B}+ { + sectionType=SectionInfo::Paragraph; + BEGIN(SectionLabel); + } <GroupHeader>. { memberGroupHeader+=*yytext; } <GroupHeader>"*/" { unput('/');unput('*'); @@ -3970,7 +3981,7 @@ CHARLIT (("'"\\[0-7]{1,3}"'")|("'"\\."'")|("'"[^'\\\n]{1,4}"'")) <DocBaseClass>\n { yyLineNr++; BEGIN( ClassDoc ); } <ClassDocBrief>{BS}({BL}|"\\n\\n") { current->brief=current->brief.stripWhiteSpace(); - if (!current->doc.isEmpty()) current->doc+=" <p>"; + //if (!current->doc.isEmpty()) current->doc+=" <p>"; if (lastBriefContext==TodoParam || lastBriefContext==TestParam || lastBriefContext==BugParam || |