From f3aeedf7b570c0c06af44a4f8bb66eba6b78c2f2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 16 May 2016 14:52:38 +0200 Subject: Bug 766464 - python: missing cross-links in sources (option SOURCE_BROWSER = YES) Linking first element after "self" or "cls" --- src/pycode.l | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/pycode.l b/src/pycode.l index 44adb3f..ef6c780 100644 --- a/src/pycode.l +++ b/src/pycode.l @@ -1007,18 +1007,34 @@ TARGET ({IDENTIFIER}|"("{TARGET_LIST}")"|"["{TARGET_LIST}"]"|{ATTRIBUT codify(yytext); endFontClass(); } + "self."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER}"(" { + codify("self."); + findMemberLink(*g_code,&yytext[5]); + } "self."{IDENTIFIER}/"(" { codify("self."); findMemberLink(*g_code,&yytext[5]); } + "self."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER} { + codify("self."); + findMemberLink(*g_code,&yytext[5]); + } "self."{IDENTIFIER} { codify("self."); findMemberLink(*g_code,&yytext[5]); } + "cls."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER}"(" { + codify("cls."); + findMemberLink(*g_code,&yytext[4]); + } "cls."{IDENTIFIER}/"(" { codify("cls."); findMemberLink(*g_code,&yytext[4]); } + "cls."{IDENTIFIER}/"."({IDENTIFIER}".")*{IDENTIFIER} { + codify("cls."); + findMemberLink(*g_code,&yytext[4]); + } "cls."{IDENTIFIER} { codify("cls."); findMemberLink(*g_code,&yytext[4]); -- cgit v0.12 From 36731bc9b573cdee6d699d0f66b4b34ad5b8f9ac Mon Sep 17 00:00:00 2001 From: albert-github Date: Sun, 5 Jun 2016 10:00:25 +0200 Subject: Bug 767171 - ALIASES stop working after verbatim with formula and /** */ A formula should not not end a "verbatim" type of block. A "verbatim" type of block should only stop at the corresponding end command. In case of a formula with an environment (i.e. f{) the name of the environment can be parsed separately. Corrected end condition for docbookonly. --- src/commentcnv.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commentcnv.l b/src/commentcnv.l index 169f66a..6409b0b 100644 --- a/src/commentcnv.l +++ b/src/commentcnv.l @@ -465,7 +465,7 @@ void replaceComment(int offset); } BEGIN(VerbatimCode); } -[\\@]("f$"|"f["|"f{"[a-z]*) { +[\\@]("f$"|"f["|"f{") { copyToOutput(yytext,(int)yyleng); g_blockName=&yytext[1]; if (g_blockName.at(1)=='[') @@ -488,9 +488,9 @@ void replaceComment(int offset); . { /* any ather character */ copyToOutput(yytext,(int)yyleng); } -[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"docbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}") { /* end of verbatim block */ +[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddocbookonly"|"endrtfonly"|"endmanonly"|"f$"|"f]"|"f}") { /* end of verbatim block */ copyToOutput(yytext,(int)yyleng); - if (yytext[1]=='f') // end of formula + if (&yytext[1]==g_blockName) // end of formula { BEGIN(g_lastCommentContext); } -- cgit v0.12 From 6ea76e0d89aff8399117e602a3eab1f7d93e466b Mon Sep 17 00:00:00 2001 From: Douman Date: Wed, 6 Jul 2016 19:52:45 +0300 Subject: Revert #291 See http://plantuml.com/salt.html for example HOW it supposed to work --- src/plantuml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plantuml.cpp b/src/plantuml.cpp index 288cbc0..169968e 100644 --- a/src/plantuml.cpp +++ b/src/plantuml.cpp @@ -43,7 +43,7 @@ QCString writePlantUMLSource(const QCString &outDir,const QCString &fileName,con { err("Could not open file %s for writing\n",baseName.data()); } - QCString text = "@startuml"; + QCString text = "@startuml\n"; text+=content; text+="@enduml\n"; file.writeBlock( text, text.length() ); -- cgit v0.12 From f075557bf207d67cf2638298cbdd843cc1a2f7d7 Mon Sep 17 00:00:00 2001 From: Filipe Alves Date: Thu, 14 Jul 2016 10:21:01 +0100 Subject: Add caption in verbatim blocks. --- src/perlmodgen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 38ebbb2..8683654 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -667,6 +667,14 @@ void PerlModDocVisitor::visit(DocVerbatim *s) case DocVerbatim::PlantUML: type = "plantuml"; break; } openItem(type); + if (s->hasCaption()) + { + openSubBlock("caption"); + QListIterator cli(s->children()); + DocNode *n; + for (cli.toFirst();(n=cli.current());++cli) n->accept(this); + closeSubBlock(); + } m_output.addFieldQuotedString("content", s->text()); closeItem(); } -- cgit v0.12 From 4530978dba88a0d6ccc369e480e6b9a98d29fa1e Mon Sep 17 00:00:00 2001 From: Filipe Alves Date: Thu, 14 Jul 2016 10:26:57 +0100 Subject: Allow verbatim code block to be placed on the output. --- src/perlmodgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 8683654..8d425a5 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -653,8 +653,8 @@ void PerlModDocVisitor::visit(DocVerbatim *s) m_output.add(""); parseCode(m_ci,s->context(),s->text(),FALSE,0); m_output.add(""); -#endif return; +#endif case DocVerbatim::Verbatim: type = "preformatted"; break; case DocVerbatim::HtmlOnly: type = "htmlonly"; break; case DocVerbatim::RtfOnly: type = "rtfonly"; break; -- cgit v0.12 From 989a0137df8f8e11df67de1a2ded73712b46a8fd Mon Sep 17 00:00:00 2001 From: Filipe Alves Date: Thu, 14 Jul 2016 10:27:47 +0100 Subject: Add section title to output. --- src/perlmodgen.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index 8d425a5..c7d562f 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -905,6 +905,7 @@ void PerlModDocVisitor::visitPre(DocSection *s) { QCString sect = QCString().sprintf("sect%d",s->level()); openItem(sect); + m_output.addFieldQuotedString("title", s->title()); openSubBlock("content"); } -- cgit v0.12 From 5592c705d8ac98f579e2675c12777330c4c322c9 Mon Sep 17 00:00:00 2001 From: Filipe Alves Date: Thu, 14 Jul 2016 10:30:29 +0100 Subject: Add parameter in/out specifiers to output. --- src/perlmodgen.cpp | 34 ++++++++++++++++++++++++++++++---- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/src/perlmodgen.cpp b/src/perlmodgen.cpp index c7d562f..09e1968 100644 --- a/src/perlmodgen.cpp +++ b/src/perlmodgen.cpp @@ -1269,17 +1269,43 @@ void PerlModDocVisitor::visitPre(DocParamList *pl) DocNode *param; for (li.toFirst();(param=li.current());++li) { - QCString s; + QCString name; if (param->kind()==DocNode::Kind_Word) { - s = ((DocWord*)param)->word(); + name = ((DocWord*)param)->word(); } else if (param->kind()==DocNode::Kind_LinkedWord) { - s = ((DocLinkedWord*)param)->word(); + name = ((DocLinkedWord*)param)->word(); } + + QCString dir = ""; + DocParamSect *sect = 0; + if (pl->parent()->kind()==DocNode::Kind_ParamSect) + { + sect=(DocParamSect*)pl->parent(); + } + if (sect && sect->hasInOutSpecifier()) + { + if (pl->direction()!=DocParamSect::Unspecified) + { + if (pl->direction()==DocParamSect::In) + { + dir = "in"; + } + else if (pl->direction()==DocParamSect::Out) + { + dir = "out"; + } + else if (pl->direction()==DocParamSect::InOut) + { + dir = "in,out"; + } + } + } + m_output.openHash() - .addFieldQuotedString("name", s) + .addFieldQuotedString("name", name).addFieldQuotedString("dir", dir) .closeHash(); } m_output.closeList() -- cgit v0.12 From 918cf6871359da9d14dd6d3e7c4d00d6ca9a496e Mon Sep 17 00:00:00 2001 From: Adrian Negreanu Date: Wed, 20 Jul 2016 15:17:36 +0300 Subject: sqlite3gen: export proper memberdef refid --- src/sqlite3gen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp index 670249e..bf2090c 100644 --- a/src/sqlite3gen.cpp +++ b/src/sqlite3gen.cpp @@ -741,7 +741,8 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def) //if (def->definitionType()!=Definition::TypeGroup && md->getGroupDef()) return; QCString memType; // memberdef - bindTextParameter(memberdef_insert,":refid",md->anchor().data(),FALSE); + QCString refid = md->getOutputFileBase() + "_1" + md->anchor(); + bindTextParameter(memberdef_insert,":refid", refid.data(),FALSE); bindIntParameter(memberdef_insert,":kind",md->memberType()); bindIntParameter(memberdef_insert,":prot",md->protection()); -- cgit v0.12