diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2002-09-15 19:55:15 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2002-09-15 19:55:15 (GMT) |
commit | 1c72ffcbe310e13d7dda73fa78d6ea4f93636c3e (patch) | |
tree | 80bc5b8e1fe89bbf6bd2fbbf2c640eb73313f626 /src/scanner.l | |
parent | 228f1d8a76b93c592888a9c454ecf93983f1e4e3 (diff) | |
download | Doxygen-1c72ffcbe310e13d7dda73fa78d6ea4f93636c3e.zip Doxygen-1c72ffcbe310e13d7dda73fa78d6ea4f93636c3e.tar.gz Doxygen-1c72ffcbe310e13d7dda73fa78d6ea4f93636c3e.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 || |