diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-01-28 18:16:38 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-01-28 18:16:38 (GMT) |
commit | 1426e2fbce1e3e4c8089b228c843042c90b2d1c4 (patch) | |
tree | 26b976ebd24f845a5cf88ab76f81f928c47c4548 /src/doc.l | |
parent | bf4bb2e1e1fb5e61fa5a7458f6354002994fa5ee (diff) | |
download | Doxygen-1426e2fbce1e3e4c8089b228c843042c90b2d1c4.zip Doxygen-1426e2fbce1e3e4c8089b228c843042c90b2d1c4.tar.gz Doxygen-1426e2fbce1e3e4c8089b228c843042c90b2d1c4.tar.bz2 |
Release-1.2.4-20010128
Diffstat (limited to 'src/doc.l')
-rw-r--r-- | src/doc.l | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -1514,6 +1514,10 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG}) outDoc->endSection(sec->label, sec->type==SectionInfo::Subsection); } + else + { + warn(yyFileName,yyLineNr,"Warning: reference to unknown section %s in the documentation of this entity!",yytext); + } } <DocScan>{CMD}"anchor "{ID}"\n" { QCString secName=&yytext[8]; @@ -1580,8 +1584,10 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG}) <DocRefName>{SCOPENAME}|{FILE} { QCString ref=yytext; SectionInfo *sec; + //printf(">>> ref `%s'\n",yytext); if ((sec=Doxygen::sectionDict[ref])) { + //printf("Is a section!\n"); QCString text; if (sec->title.isEmpty()) text=sec->label; @@ -1598,7 +1604,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG}) else { //printf(" ref sec=%p sec->fileName=%s text=%s\n",sec,sec->fileName.data(),text.data()); - outDoc->writeSectionRef(sec->fileName,sec->label,text,sec->ref); + outDoc->writeSectionRef(sec->ref,sec->fileName,sec->label,text); } } else if (!generateLink(*outDoc,className,yytext,TRUE,0)) @@ -1631,7 +1637,7 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG}) } else { - outDoc->writeSectionRef(sec->fileName,sec->label,text,sec->ref); + outDoc->writeSectionRef(sec->ref,sec->fileName,sec->label,text); } } else if (!generateLink(*outDoc,className,sectionRef,TRUE,text)) @@ -1744,18 +1750,12 @@ OPMASK ({B}*{OPNORM}({OPARG}?))|({OPCAST}{OPARG}) generateRef(*outDoc,className,yytext,inSeeBlock); BEGIN(DocScan); } -<DocScan,DocRefName>({SCOPEMASK}"::")?"operator()"("("[a-z_A-Z0-9,\<\> \t\*\&]*")")? { +<DocScan,DocRefName>({SCOPEMASK}"::")?"operator"{OPMASK} { QCString oName=yytext; generateRef(*outDoc,className, removeRedundantWhiteSpace(oName),inSeeBlock); BEGIN(DocScan); } -<DocScan,DocRefName>({SCOPEMASK}"::")?"operator"[^(\r\n.,]+("("[a-z_A-Z0-9,\<\> \t\*\&]*")")? { - QCString oName=yytext; - generateRef(*outDoc,className, - removeRedundantWhiteSpace(oName),inSeeBlock); - BEGIN(DocScan); - } <DocScan>("http:"|"https:"|"ftp:"|"file:"){URLMASK} { outDoc->writeHtmlLink(yytext,yytext); } <DocScan>[a-zA-Z_0-9\.\-]+"@"[0-9a-z_A-Z\.\-]+ { outDoc->writeMailLink(yytext); } <DocScan>{FILEMASK} { |