[valadoc] gtkdoc-parser: Fix possible infinite loop
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] gtkdoc-parser: Fix possible infinite loop
- Date: Mon, 30 Jan 2012 02:59:14 +0000 (UTC)
commit 03fcfa5c77bad07ac29415a927db30be9cee47be
Author: Florian Brosch <flo brosch gmail com>
Date: Mon Jan 30 02:42:23 2012 +0100
gtkdoc-parser: Fix possible infinite loop
.../documentation/gtkdoccommentparser.vala | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/libvaladoc/documentation/gtkdoccommentparser.vala b/src/libvaladoc/documentation/gtkdoccommentparser.vala
index d73003a..36544c0 100644
--- a/src/libvaladoc/documentation/gtkdoccommentparser.vala
+++ b/src/libvaladoc/documentation/gtkdoccommentparser.vala
@@ -548,9 +548,7 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator {
ListItem item = factory.create_list_item ();
- while (current.type != TokenType.XML_CLOSE && current.type != TokenType.EOF) {
- item.content.add_all (parse_mixed_content ());
- }
+ item.content.add_all (parse_mixed_content ());
if (!check_xml_close_tag ("listitem")) {
this.report_unexpected_token (current, "</listitem>");
@@ -626,6 +624,12 @@ public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator {
Content.List list = factory.create_list ();
list.bullet = bullet_type;
+// if (current.type == TokenType.XML_OPEN && current.content == "title") {
+ // TODO
+// parse_docbook_title ();
+// parse_docbook_spaces ();
+// }
+
while (current.type == TokenType.XML_OPEN) {
if (current.content == "listitem") {
list.items.add (parse_docbook_listitem ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]